yablo2004 Posted May 18, 2012 Posted May 18, 2012 How do i write a script that will simulate hitting the 2 and 3 key consecutively whenever I press the left click of the mouse? Id like to be able to do the same with right click and have it simulate hitting the 4 and 5 key consecutively. So ideally if i press left click then right click in any window its gonna type out 2345. Any help would be appreciated thank you
Slang Posted May 18, 2012 Posted May 18, 2012 #include <Misc.au3> While 1 If _IsPressed(0x01, "user32.dll") Then Send("23") If _IsPressed(0x02, "user32.dll") Then Send("45") Sleep(25) ; Reduce CPU usage WEnd
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now