AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

joystick button hotkey stops working at end of auto-execute

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
matt911



Joined: 23 May 2005
Posts: 2

PostPosted: Mon May 23, 2005 2:49 am    Post subject: joystick button hotkey stops working at end of auto-execute Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon May 23, 2005 11:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Wed May 25, 2005 10:07 pm    Post subject: Reply with quote

I believe this and the other joystick issue at http://www.autohotkey.com/forum/viewtopic.php?t=3692 have been fixed in today's release. Thanks for reporting them. If you have more problems, please let me know.
Back to top
View user's profile Send private message Send e-mail
Guest






PostPosted: Fri May 27, 2005 6:48 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Bug Reports All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group