Sign in to follow this  
Followers 0
Meatball

{LWIN} & {RWIN} Commands not working

4 posts in this topic

First: I'm fairly new to autoit, but I have been working with it for a few weeks. This isn't anything big, but it's suposed to work.

I recently wanted to make a simple program used to disable the windows key (left and right) for when you're in a first person shooter (how annoying).

Here's my code:

HotKeySet("{RWIN}", "_Nothing")
HotKeySet("{LWIN}", "_Nothing")

While 1
   Sleep(500)
WEnd

Func _Nothing()
 ; Nothing
EndFunc

Here's the problem I've found: The command {LWIN} & {RWIN} don't work.

Any sugestions? :whistle:

Share this post


Link to post
Share on other sites



Do a search for exactly what your looking (Disabling the Win keys) for and you'll see a few things on it, it's been brought up in the past week even I believe.


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I've read 6 pages total trying to find this command. 4 being of one search, and 2 being of another search. Neither of which I found my solution.

Sorry for not saying I have searched previously.

Edit: Spelling

Edited by Meatball

Share this post


Link to post
Share on other sites

I've read 6 pages total trying to find this command. 4 being of one search, and 2 being of another search. Neither of which I found my solution.

Sorry for not saying I have searched previously.

Edit: Spelling

1 Search = http://www.autoitscript.com/forum/index.ph...=Disable+WinKey

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0