AutoHotkey Community

It is currently May 26th, 2012, 11:43 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: May 23rd, 2005, 3:49 am 
Offline

Joined: May 23rd, 2005, 3:28 am
Posts: 2
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 24th, 2005, 12:49 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
This definitely seems to be a bug. Thanks for providing all the details, which should help get it fixed for the next release.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 25th, 2005, 11:07 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: May 27th, 2005, 7:48 am 
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)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group