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 

Block Some specific Key

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



Joined: 24 Feb 2005
Posts: 233

PostPosted: Sun Mar 27, 2005 1:46 am    Post subject: Block Some specific Key Reply with quote

is it possible to Block some specific key or key's unlike BlockInput...
Back to top
View user's profile Send private message Send e-mail MSN Messenger
lost



Joined: 08 Mar 2005
Posts: 10

PostPosted: Sun Mar 27, 2005 5:09 am    Post subject: Reply with quote

Hi

try this
Code:

;block a

a::
return


I hope that helps!
Back to top
View user's profile Send private message
lost



Joined: 08 Mar 2005
Posts: 10

PostPosted: Sun Mar 27, 2005 5:24 am    Post subject: Reply with quote

what about replacing any key by another!! Wink

try this

Quote:

;replace a by s !! Smile

a::
gosub ba
return

ba:
send s
return


Smile
Back to top
View user's profile Send private message
sosaited



Joined: 24 Feb 2005
Posts: 233

PostPosted: Mon Mar 28, 2005 12:57 am    Post subject: Reply with quote

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 :
Code:
#::
return

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
View user's profile Send private message Send e-mail MSN Messenger
invidious



Joined: 03 Sep 2004
Posts: 13

PostPosted: Mon Mar 28, 2005 1:54 am    Post subject: Reply with quote

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
View user's profile Send private message
lost



Joined: 08 Mar 2005
Posts: 10

PostPosted: Mon Mar 28, 2005 4:55 am    Post subject: Reply with quote

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. Embarassed

btw:If you're using win 98 !
you'll need also to add this line

Quote:

Lwin::
send {esc}
return
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10480

PostPosted: Mon Mar 28, 2005 2:19 pm    Post subject: Reply with quote

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
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