| View previous topic :: View next topic |
| Author |
Message |
s Guest
|
Posted: Sun Oct 11, 2009 8:40 pm Post subject: How do i make Ralt:: to fire only when it's pressed alone? |
|
|
| 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
|
Posted: Sun Oct 11, 2009 8:54 pm Post subject: |
|
|
does this do what you want ? | Code: | RAlt::
KeyWait RAlt
msgbox |
|
|
| Back to top |
|
 |
s Guest
|
Posted: Mon Oct 12, 2009 9:38 am Post subject: |
|
|
| no, it doesn't. |
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 942 Location: Germany - Deutschland
|
Posted: Mon Oct 12, 2009 10:16 am Post subject: |
|
|
So what does it do?
| Code: |
RAlt::
KeyWait RAlt
if Errorlevel
return
msgbox here
Return
|
|
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 942 Location: Germany - Deutschland
|
Posted: Mon Oct 12, 2009 10:20 am Post subject: |
|
|
Sorry, try this:
| Code: |
<Alt::
msgbox here
Return
|
|
|
| Back to top |
|
 |
s Guest
|
Posted: Mon Oct 12, 2009 11:27 am Post subject: |
|
|
| 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
|
Posted: Mon Oct 12, 2009 11:29 am Post subject: |
|
|
Sorry, it must be the other side:
| Code: |
>Alt::
MsgBox here
Return
|
|
|
| Back to top |
|
 |
aaffe
Joined: 17 May 2007 Posts: 942 Location: Germany - Deutschland
|
Posted: Mon Oct 12, 2009 12:11 pm Post subject: |
|
|
Ok I tried it again and see what you mean:
>Alt is triggered with Right Alt AND Left Alt.. |
|
| Back to top |
|
 |
|