Edited Topic is solved
Re: Same button but different functions each time? Topic is solved
Code: Select all
F1::
If on := !on {
Send a
} Else {
Send b
}
Return
Re: Same button but different functions each time?
Edited
Last edited by fivefive on 12 Mar 2023, 10:46, edited 1 time in total.
Re: Same button but different functions each time?
Surely it is possible. To get more states, just increment the initial value of the State variable and add the needed cases.
Code: Select all
F1::
State := (State = 3) ? 1 : !State ? (State := 1) : ++State
Switch State {
case 1: Send, A
case 2: Send, B
case 3: Send, C
}
return