Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
279 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Suggested Courses

730 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