| View previous topic :: View next topic |
| Author |
Message |
matt911
Joined: 23 May 2005 Posts: 2
|
Posted: Mon May 23, 2005 2:49 am Post subject: joystick button hotkey stops working at end of auto-execute |
|
|
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. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Mon May 23, 2005 11:49 pm Post subject: |
|
|
| This definitely seems to be a bug. Thanks for providing all the details, which should help get it fixed for the next release. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
|
| Back to top |
|
 |
Guest
|
Posted: Fri May 27, 2005 6:48 am Post subject: |
|
|
Thanks Chris! I just got the new version and tested my broken scripts and they seem to work properly now. I'm very happy to see that an integer division symbol was been added in this release too. It was very inconvenient having to do something like this
| Code: | tempvar := x + 2
tempvar /= 2
MyFunction(tempvar)
|
instead of just
| Code: | MyFunction((x+2)//2)
|
|
|
| Back to top |
|
 |
|