The following is my rough intention:
Code: Select all
hotkey1:: (action)
hotkey2:: (action)
hotkey3:: (action)
hotkey4:: (action) and also if conditionA, call hotkey1, else if conditionB, call hotkey2, else call hotkey3
Code: Select all
hotkey1:: (action)
hotkey2:: (action)
hotkey3:: (action)
hotkey4:: (action) and also if conditionA, call hotkey1, else if conditionB, call hotkey2, else call hotkey3
Code: Select all
1::MsgBox, 1
2::MsgBox, 2
3::MsgBox, 3
4::
IF A_PriorHotkey between 1 and 3
Goto,% A_PriorHotkey
Return
Code: Select all
Label1:
hotkey1:: (action)
Label2:
hotkey2:: (action)
Label3:
hotkey3:: (action)
Label4:
hotkey4:: (action) and also if conditionA, goto Label1, else if conditionB, goto Label2, else goto Label3
Users browsing this forum: Bing [Bot], hasantr and 229 guests