~LWin Up:: return ~RWin Up:: return
This seems to work on both XP and 7. Haven't tried Vista, but I don't see any reason it wouldn't work.
Posted 18 March 2010 - 05:51 PM
~LWin Up:: return ~RWin Up:: return
Posted 05 April 2010 - 03:46 PM
Posted 05 April 2010 - 03:58 PM
Found here: Hotkeys (Mouse, Joystick and Keyboard Shortcuts)A key or key-combination can be disabled for the entire system by having it do nothing. The following example disables the right-side Windows key:
RWin::return
Posted 05 April 2010 - 04:29 PM
Actually, jspenguin's code is very different from the sample code in the FAQ. It does not disable win-key shortcuts - it just disables the key itself if you don't hit any shortcut, but only the winkey itself. The only thing that happens if you hit the winkey itself is that the start menu comes up and steals focus, but you can already get that using ctrl+esc.instead of making it a waste of space, you should give it a new function, not just a blank key. if you want it to be blank, just pop the key off the keyboard. but ya know, that's 1 less modifier for you to use as a hotkey. or 1 less shortcut menu or w/e you could do.
Posted 12 April 2010 - 03:31 PM
if (~LWin == return)
{
~LWin::#
}
else
{
~LWin::return
}
Posted 13 April 2010 - 02:30 AM
Posted 13 April 2010 - 08:40 AM
#SingleInstance force
If (A_PriorHotkey = ~LWin)
{
~LWin::#
}
Else
{
~LWin::return
}
Posted 13 April 2010 - 12:53 PM
Gui, [color=brown]99[/color]:+Owner Gui, [color=brown]99[/color]:Show, y-9999 NoActivate, [color=darkred]WinKeyShouldDoNothing[/color] #UseHook ; Start the script and use [color=red]F1[/color] to toggle. Change this if desired. [color=red]F1[/color]:: Gui, % "[color=brown]99[/color]:" ( varToggle:=!varToggle ? "Show" : "Cancel" ), NoActivate #IfWinExist, [color=darkred]WinKeyShouldDoNothing[/color] ~LWin:: Return #IfWinExist
Posted 13 April 2010 - 03:11 PM
Gui, [color=brown]99[/color]:+Owner Gui, [color=brown]99[/color]:Show, y-9999 NoActivate, [color=darkred]WinKeyShouldDoNothing[/color] #UseHook ; Start the script and use [color=red]F1[/color] to toggle. Change this if desired. [color=red]F1[/color]:: Gui, % "[color=brown]99[/color]:" ( varToggle:=!varToggle ? "Show" : "Cancel" ), NoActivate #IfWinExist, [color=darkred]WinKeyShouldDoNothing[/color] ~LWin:: Return #IfWinExist
Posted 13 April 2010 - 07:46 PM
Gui, 99:+Owner Gui, 99:Show, y-9999 NoActivate, WinKeyShouldDoNothing varToggle := 0 ; Start script with 0, which doesn't block LWin. #UseHook #IfWinExist, WinKeyShouldDoNothing ~LWin Up:: Return [color=red]#IfWinExist[/color] ; Start the script and use [color=red]F12[/color] to toggle. Change this if desired. [color=red]F12[/color]:: Gui, % "99:" ( [color=darkred](varToggle:=!varToggle)[/color] ? "Show" : "Hide" ), NoActivate
Posted 14 April 2010 - 08:29 AM
Posted 12 May 2010 - 06:44 AM
Posted 11 September 2010 - 06:08 PM
Posted 11 September 2010 - 06:55 PM
there isn“t such a menu.not one line helped me find the **** menu to turn off the start menu hotkey
Posted 06 January 2011 - 01:32 AM
I wanted to find a way to disable the start menu popup but still leave shortcuts like Win+R and Win+L enabled. I messed around for 2 hours trying to figure out a solution and finally stumbled on a 2-line solution:
~LWin Up:: return ~RWin Up:: return
This seems to work on both XP and 7. Haven't tried Vista, but I don't see any reason it wouldn't work.