tk5801 Posted July 7, 2017 Posted July 7, 2017 (edited) I need help with a macro. I want a macro that when i press one button, such as lets say F (but it could be any button) it automatically sends another button such as G, then it can wait in between (such at sleep735) for example, then sends another button such as H.Then if i press F again the whole thing repeats itsself again. I dont know exactly how to make it but it might look something like:Whilesomehow an activation key so when you press F it sendsGsleep(735)send ("h")wend To make it simple, Press F sends : G ------> waits .735 seconds -------> Sends H. Edited July 7, 2017 by tk5801
Floops Posted July 7, 2017 Posted July 7, 2017 HotKeySet is your friend. This should work, otherwise report back here HotKeySet("f", "send_keys") HotKeySet("{ESC}", "exit_script") While 1 Sleep(50) WEnd Func send_keys() Send("G") Sleep(735) Send("H") EndFunc Func exit_script() Exit EndFunc
tk5801 Posted July 7, 2017 Author Posted July 7, 2017 (edited) edit: Nevermind and it worked thank you! Edited July 7, 2017 by tk5801
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