AutoHotkey Community

It is currently May 27th, 2012, 3:29 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: October 28th, 2005, 12:15 am 
Hot keys where you have to hold down a key (alt/control/shift) and press another key will stop working after the first one, if you are trying to hold down the alt/control/shift throughout. For example, if I want to do control-1, then control-2, I would normally hold down control, then press 1, and then 2 while still holding down the control key. The control-1 would trigger but not control-2. For some reason, the fact that the control key is still held down is lost to AHK once that first hotkey is registered. Not a major bug but it doesn't conform to normal keying habits and definitely a convenience issue. Thanks.


Report this post
Top
  
Reply with quote  
 Post subject: sample
PostPosted: October 28th, 2005, 12:18 am 
Oh, here's a quick sample script to illustrate the problem using wordpad:
Quote:
^1::ControlSend, RICHEDIT50W1, test1{return}, Document
^2::ControlSend, RICHEDIT50W1, test2{return}, Document


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: October 28th, 2005, 1:49 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Try adding #InstallKeybdHook near the top of the script. For an explanation for why this helps, see #HotkeyModifierTimeout. You can also use #HotkeyModifierTimeout itself if you're running Win9x.


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

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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