Jump to content

How to do a very very simple Hotkey?


Recommended Posts

Umm, offhand guess -

AutoItSetOption("SendKeyDelay", "5") ;You can tweak this for slower or faster keypresses
AutoItSetOption("SendKeyDownDelay", "5") ;You can tweak this for length of time the key is "held down"

HotKeySet("{F1}", "Fthis")

While 1
    Sleep(10000)
Wend

Func Fthis()
    Send("{F2}{F3}{F4}{F5}{F6}{F7}{F8}{F9}{F10}{F11}{F12}")
EndFunc
Edited by Quinch
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...