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 

Alt key remains down

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





PostPosted: Thu Mar 23, 2006 10:40 pm    Post subject: Alt key remains down Reply with quote

To demonstrate the problem, I've stripped down one of my files to create TEST.AHK, which consists of the following two lines:

Code:
; RIGHT ALT, number combinations
>!6:: Send, ¼


If you run this in v1.0.42.07 and press RIGHT ALT+6 in Microsoft Word, for example, AutoHotkey enters "¼", but the Alt key remains in the down position. If you type F, the File menu pops down, instead of an F being typed. You can press and release the left Alt key to free the Alt key condition. In v1.0.42.03 (my prior version) the script behaves correctly. I am using Windows 2000.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Fri Mar 24, 2006 12:03 am    Post subject: Reply with quote

Although I can't reproduce it, it might be something that I've already fixed in the version under development. When the next version is released (hopefully tomorrow), perhaps you could try it again with that version and post the results.

Thanks.
Back to top
View user's profile Send private message Send e-mail
halweg



Joined: 27 Jan 2005
Posts: 102
Location: Germany, Dresden

PostPosted: Fri Mar 24, 2006 8:59 am    Post subject: Reply with quote

The "Alt key remains down"-issue happens even with my german keyboard (without right alt key). In some cases the (left) alt key remains down after some hotkey action and changes the keyboard behavior until I press the Alt key again.
Considering this may not be an individual problem I'll examine this more closely.
_________________
Back to top
View user's profile Send private message
JHoward
Guest





PostPosted: Mon Apr 03, 2006 11:22 pm    Post subject: Reply with quote

I installed v1.0.43, and the unmodified script still acts as though the Alt key in the down position. However, I think this has become a moot point. I found that if I substitute the SendInput command for the Send command, the script acts fine.
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Tue Apr 04, 2006 1:24 am    Post subject: Reply with quote

Thanks for the follow-up. I was never able to reproduce the problem using the traditional Send command (SendEvent). And I just tried it again and couldn't reproduce it, even when holding down the hotkey to auto-repeat it:
>!6:: Send, ¼

It could be some kind of conflict with other keyboard software you may be running, or the keyboard driver itself. Alternatively, if you have any other scripts running simultaneously, it's possible they could interfere with each other's hotkeys.

But I'm glad you found a work-around. If anyone else sees behavior similar to this, please let me know.
Back to top
View user's profile Send private message Send e-mail
paleden
Guest





PostPosted: Sat Jan 19, 2008 6:44 pm    Post subject: I am having the same problem with Alt key remains down Reply with quote

I am experiencing the ALT down problem as well.

I am running windows 2000 as well. Could there be a problem with autohotkey on windows 2000?

I am using version 1.0.47.05

This is what I have in my script

F10::å
+F10::Å

F11::ä
+F11::Ä

F12::ö
+F12::Ö


Anyone have a solution to this problem?

Thanks.
Back to top
paleden
Guest





PostPosted: Sat Jan 19, 2008 7:05 pm    Post subject: I am having the same problem with Alt key remains down Reply with quote

Changing

F10::å
+F10::Å

F11::ä
+F11::Ä

F12::ö
+F12::Ö


to


F10::Send å
+F10::Send Å

F11::Send ä
+F11::Send Ä

F12::Send ö
+F12::Send Ö


avoided the problem for me.
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