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 

Turn off key

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



Joined: 19 Aug 2004
Posts: 334

PostPosted: Wed Feb 07, 2007 3:18 am    Post subject: Turn off key Reply with quote

I'm trying to disable the windows keys but not having much luck?
This does not seem to work and now sure why .
#Persistent
Hotkey, {LWin}, Off
Gives me error about

Error: Nonexistent hotkey. The current thread will exit.

Specifically: {LWin}

Line#
---> 002: Hotkey,{LWin},Off
What do I have wrong?
Thanks for the help guys.

````````
I happen to find LWin::Return and that stops it from worling but now I need to stop if a click on it.
_________________
Autohotkey Just drives me crazy ..
Back to top
View user's profile Send private message
badmojo



Joined: 11 Nov 2005
Posts: 142

PostPosted: Wed Feb 07, 2007 4:15 am    Post subject: Reply with quote

i'm no expert but i found this on the forums and it works for me..

Code:
LWin::
RWin::
   ;Disable Win key & show a traytip instead.
   TrayTip, , Win key is disabled., 1
   SetTimer, RemoveTrayTip, 500
Return

RemoveTrayTip:
SetTimer, RemoveTrayTip, Off
TrayTip
Return

edit: changed to your situation..


Last edited by badmojo on Wed Feb 07, 2007 4:20 am; edited 1 time in total
Back to top
View user's profile Send private message
Candle



Joined: 19 Aug 2004
Posts: 334

PostPosted: Wed Feb 07, 2007 4:18 am    Post subject: Reply with quote

Ok thanks man.. give it a try.
_________________
Autohotkey Just drives me crazy ..
Back to top
View user's profile Send private message
Helpy
Guest





PostPosted: Wed Feb 07, 2007 12:42 pm    Post subject: Reply with quote

In a simpler way:
Code:
LWin::Return
RWin::Return
Back to top
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