Hello,
Looking for soultion,
want to prepare 1 Hotkey with 2 different options which would work one after one.
For example
HotKeySet('{F4}', 'functions')
Func functions() ;// Pressing F4 1st time
sleep(50)
send("FirstPulse")
EndFunc
Func functions() ;// Pressing F4 2nd time
sleep(50)
send("SecondPulse")
EndFunc
and 3rd time is again 1st,
4th -> 2nd
Here's a way for you to do sequential actions through a single hotkey, expandable to more than just 2 options:
HotKeySet('\', 'fc') ; Keep in mind that Send can trigger hotkeys, so using '1' is a bad idea if you're Sending a 1 in your function
While True
Sleep(10)
WEnd
Func fc()
Local Static $iCount = 0
Local Const $iCountMax = 5
Switch $iCount
Case 0 ; Keep in mind if you're starting at 0 or 1, and what you reset it to&