What I am trying to accomplish is have the script cycle through F1-F5 as long as the y button is held down. For example, when I hold down the y button, I want the computer to Push F1, wait one second, push F2, wait one second, push F3, etc. I realize it's rather basic, but I was hoping someone could offer some sort of advice or help. Thanks in advance!
HotKeySet('y', 'action'); start of script
While 1
Sleep(100)
WEnd
Func action()
Send('{F1}');Push F1
Sleep(1000)
Send('{F2}');Push F2
Sleep(1000)
Send('{F3}');Push F3
Sleep(1000)
Send('{F4}');Push F4
Sleep(1000)
Send('{F5}');Push F5
Sleep(1000)
EndFunc; end of script