10-18-2009 10:34 PM
I want LabVIEW to record the my mouse clicks and then play it back. Now the mouse clicks may not be in LabVIEW. Say for example I am google.com and then I click on maps, then on images and then books. I want labview to record it and play it back as an it open google and click on maps then images and so on. Is this possible with LabVIEW or is there any other NI software that does that.
Thanks in advance
;lab
Solved! Go to Solution.
10-18-2009 10:41 PM
10-18-2009 10:57 PM
10-19-2009 03:03 AM
You can do this by using the input VIs to record and making calls into the windows API (SetCursorPos and Mouse_Event) to replay and I know because I've done something similar myself, but as the others said, there are probably other programs you can use for this, so it's not worth spending time on.
P.S. No, I can't share the code.
10-19-2009 11:49 AM
Aha
Thanks guys!
10-21-2009 09:35 AM
Hey Lab,
As mentioned above you can do that using windows library functions. Attached you will find two VIs Record Cursor Position.vi will record the position of the mouse cursor. You will need to modify the Simulate Mouse Clicks.vi in order to playback the clicks. I hope this helps.
Cheers
NI-khil
10-21-2009 09:36 AM
Wow, That's exactly what I wanted ! !
Thanks
lab