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 Problem

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
stretch65



Joined: 23 Feb 2005
Posts: 17

PostPosted: Wed Feb 23, 2005 7:38 am    Post subject: ALT Key Problem Reply with quote

Hi,

I imagine you've heard this all before, but I'm having
problems with the ALT key.

In the following code, when I hold the ALT key down and
tap the 'f' key, the menu that is supposed to appear, only
flashes on and then off for a split second. Maybe I've
missed something, but how do I solve this problem?? I've
tried defining '!f' separately but I still get the same
problem.


David.


; Example script:

*f::
GetKeyState, altState, Alt
if altState = D
{
Send, !f
}
else
{
Send, f
}
return
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Wed Feb 23, 2005 7:49 am    Post subject: Reply with quote

Due to interactions between hotkeys and the Send command, the ALT key sometimes causes unwanted side-effects. In this case, try the following workaround:
Code:
$!f::
Send {Alt down}f
return
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help 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