Jump to content

Recommended Posts

Posted

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!

Posted (edited)

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

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
  • Recently Browsing   0 members

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