| View previous topic :: View next topic |
| Author |
Message |
sosaited
Joined: 24 Feb 2005 Posts: 233
|
Posted: Sun Mar 27, 2005 1:46 am Post subject: Block Some specific Key |
|
|
| is it possible to Block some specific key or key's unlike BlockInput... |
|
| Back to top |
|
 |
lost
Joined: 08 Mar 2005 Posts: 10
|
Posted: Sun Mar 27, 2005 5:09 am Post subject: |
|
|
Hi
try this
| Code: |
;block a
a::
return
|
I hope that helps! |
|
| Back to top |
|
 |
lost
Joined: 08 Mar 2005 Posts: 10
|
Posted: Sun Mar 27, 2005 5:24 am Post subject: |
|
|
what about replacing any key by another!!
try this
| Quote: |
;replace a by s !!
a::
gosub ba
return
ba:
send s
return
|
 |
|
| Back to top |
|
 |
sosaited
Joined: 24 Feb 2005 Posts: 233
|
Posted: Mon Mar 28, 2005 12:57 am Post subject: |
|
|
it works on "a" .. but i want to use it on "Win Key" .. so i can block Win Key at the begining of the script .. and then unblock it when the script ends... but when i entered :
it said thati cant use this key like that... i must use it like ( +3 )... so i added it... but still the Win Key works.. |
|
| Back to top |
|
 |
invidious
Joined: 03 Sep 2004 Posts: 13
|
Posted: Mon Mar 28, 2005 1:54 am Post subject: |
|
|
You need to use the actual key name for it to work:
LWin::return
-or-
RWin::return
Obviously L = Left and R = Right Windows keys. |
|
| Back to top |
|
 |
lost
Joined: 08 Mar 2005 Posts: 10
|
Posted: Mon Mar 28, 2005 4:55 am Post subject: |
|
|
Hi,
yes, you have to use the name of the key according to the "Key list"
you can find it all in the help file
sorry, I should say that in the 1st post.
btw:If you're using win 98 !
you'll need also to add this line
| Quote: |
Lwin::
send {esc}
return
|
|
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10480
|
Posted: Mon Mar 28, 2005 2:19 pm Post subject: |
|
|
| lost wrote: | If you're using win 98 you'll need also to add this line
Lwin::
send {esc}
return |
Here is another trick that works to disable LWin and RWin on Windows 9x:
LWin::
RWin::
Send {Control} ; Suppress the Start Menu (this is necessary only on Win9x).
return |
|
| Back to top |
|
 |
|