In the following code snippet the joystick button hotkey stops working as soon as the auto-execute section reaches the end. The script persists properly since it sees that there is a hotkey, but the hotkey is disabled. If I use a keyboard hotkey instead of a joystick button, it continues to work properly after the end of the auto-execute section.
Code:
Hotkey,Joy1,Press
return
Press:
Tooltip,This joystick hotkey doesn't work
return
If I keep the script from reaching the end of the auto-execute section using a loop like this then the hotkey will stay working.
Code:
Hotkey,Joy1,Press
Loop
{
}
return
Press:
Tooltip,This joystick hotkey works because the auto-execute doesn't end
return
If I use a keyboard hotkey instead of a joystick button hotkey then it continues to work properly after the end of the auto-execute section.