It is currently Tue Jan 19, 2021 6:54 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Key and mouse recording
PostPosted: Thu Nov 12, 2020 8:37 am 
Offline
Enthusiast
Enthusiast

Joined: Fri Jul 14, 2006 8:53 pm
Posts: 707
Location: Malta
I am trying to capture keyboard and mouse movement to record them for AutoIt much like au3record..for those who use autoit; mainly as I wish to add the timer delay capability
Are there any examples on how I can intercept keystrokes and mouse clicks, without disrupting a running program?

_________________
I may not help with your coding
Just ask about mental issues!

http://www.lulu.com/spotlight/kingwolf
http://www.sen3.net


Top
 Profile  
Reply with quote  
 Post subject: Re: Key and mouse recording
PostPosted: Fri Dec 04, 2020 12:41 pm 
Offline
User
User
User avatar

Joined: Tue Dec 01, 2020 8:33 pm
Posts: 60
Take a look at the UDF Autoit uses to capture keypresses and mouse locations:

Misc.au3 -> _IsPressed ( $sHexKey [, $vDLL = "user32.dll"] )

If you open that file you'll get plenty of info to work with :)

Now for capturing mouse movement, i would take this kind of approach if you want tot mimic every little move.
Pseudocode:

Code:
procedure record_mouse()
   repeat
      if mouse X or Y changes
         save time from timer + mouse X and mouse Y
      endif
   until ispressed(stopbutton)
endprocedure

hope that helps!

Regards


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: skywalk and 67 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye