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 

How do i make Ralt:: to fire only when it's pressed alone?

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





PostPosted: Sun Oct 11, 2009 8:40 pm    Post subject: How do i make Ralt:: to fire only when it's pressed alone? Reply with quote

In my script i use "Ralt UP::" trigger, which for some reason blocks all key combinations with it (except alt-tab so far). I want the trigger to work *only* when Ralt is pressed and released alone. And I want all the other key combinations work as they usually do. Is there a way to achieve this?
Back to top
Leef_me



Joined: 08 Apr 2009
Posts: 1158
Location: San Diego, California

PostPosted: Sun Oct 11, 2009 8:54 pm    Post subject: Reply with quote

does this do what you want ?
Code:
RAlt::
 KeyWait RAlt
 msgbox
Back to top
View user's profile Send private message
s
Guest





PostPosted: Mon Oct 12, 2009 9:38 am    Post subject: Reply with quote

no, it doesn't.
Back to top
aaffe



Joined: 17 May 2007
Posts: 942
Location: Germany - Deutschland

PostPosted: Mon Oct 12, 2009 10:16 am    Post subject: Reply with quote

So what does it do?
Code:

RAlt::
 KeyWait RAlt
 if Errorlevel
   return
 msgbox here
Return
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 942
Location: Germany - Deutschland

PostPosted: Mon Oct 12, 2009 10:20 am    Post subject: Reply with quote

Sorry, try this:
Code:

<Alt::
 msgbox here
Return
Back to top
View user's profile Send private message
s
Guest





PostPosted: Mon Oct 12, 2009 11:27 am    Post subject: Reply with quote

Code:
<Alt::
 msgbox here
Return


this gets ignored, the trigger doesn't work at all
Back to top
aaffe



Joined: 17 May 2007
Posts: 942
Location: Germany - Deutschland

PostPosted: Mon Oct 12, 2009 11:29 am    Post subject: Reply with quote

Sorry, it must be the other side:
Code:

>Alt::
  MsgBox here
Return
Back to top
View user's profile Send private message
aaffe



Joined: 17 May 2007
Posts: 942
Location: Germany - Deutschland

PostPosted: Mon Oct 12, 2009 12:11 pm    Post subject: Reply with quote

Ok I tried it again and see what you mean:
>Alt is triggered with Right Alt AND Left Alt..
Back to top
View user's profile Send private message
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