I have created two hotkeys, each one triggering a different loop as long as their keys are kept pressed. The problem is that both loops dont work simultaneously if both hotkeys are kept pressed at the same time. the active loop is interrupted and the other starts, when I press the second key.
How can I code it so that both loops are active together even when both hotkeys are kept pressed simultaneously?
Code: Select all
KeyA::
while KeyA is pressed {
loop1
}
return
KeyB::
while KeyB is pressed {
loop2
}
return