Jump to content
Sign in to follow this  
derneue

How to do a very very simple Hotkey?

Recommended Posts

Hello Guys,

all I need is this:

When I hit F1 then F2-F12 should be executed one after the other.

How would the code look like, please?

Thank you!

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...