Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

a 'recorder' type program detecting and replaying mouse events and keyboard events while program is minimized

Posted on 2006-10-30
2
Medium Priority
?
281 Views
Last Modified: 2010-04-16
Hello,

Remember that really old program that came with windows 3.1 called 'recorder'?  Well I'm trying to recreate it in C# for help with software testing.  My goal is (preferably without help of the windows api) to have a program minimize itself, then record everything that I do (with regard to keyboard presses and mouse clicks and moves) until I click on the minimized taskbar button of my recorder application.  Then write all that stuff to a script so I can replay it later.  I don't really know where to get started, but it would be helpful first of all to know how to detect keyboard presses, and mouse moves and clicks while my application is minimized.  Can anyone help?

Thanks
0
Comment
Question by:prosh0t
2 Comments
 
LVL 86

Accepted Solution

by:
Mike Tomlinson earned 2000 total points
ID: 17836043
(preferably without help of the windows api)

You won't be able to accomplish this without the use of APIs...not unless you find a DLL/Control that someone else has already written that can do all this for you!

What you need is a low level keyboard/mouse hook to detect keypresses/mouse movements while your app is minimized.

See TheLearnedOne's example here:
http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_21475143.html

Then to later "replay" those events (after storing them somehow...that's a whole different ball of wax) you would need some more APIs.  SendInput() is one way:
http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_20641926.html
0
 
LVL 7

Author Comment

by:prosh0t
ID: 17836130
Thanks!



0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

971 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question