Sign in to follow this  
Followers 0
boogieoompa

Windows 8 start key

3 posts in this topic

OK so for like the 50th time I died playing a video game because I accidentally hit the windows start screen button (in windows 8) instead of Alt.  I almost took a screw driver and ripped out the key but than it occurred to me I could block it very easy using Autoit.  Does anyone know how I "Hotkeyset" the windows 8 button?

Thanks

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Hi,

Here you go :

#Include <HotKey.au3> ;http://www.autoitscript.com/forum/topic/90492-hotkey-udf/
#Include <vkConstants.au3>
 
_HotKey_Assign($VK_LWIN, "_MyFunc")
 
While 1
    Sleep(1000)
WEnd
 
Func _MyFunc()
    ;
EndFunc   ;==>_MyFunc
Important notes :

-You need to edit the UDF to block the Windows' key: at the line 566 you should have this: "Case 0x5B, 0x5C", add this "Return -1" in the Case statement.

-It will block any Windows' key combination, not the key itself.

-The HotKey assigned in the script has no importance, the modified Case will always be called in spite of the keys assigned (when you press one of the Windows' key).

Br, FireFox.

Edited by FireFox

 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Excellent!  Thank you so much for your help.  I decided to do a winwaitactive thing so I can put it as part of my boot menu and have it disable the key whenever the "World of Warcraft" window is open.

My arena team thanks you ;-)

Edited by boogieoompa

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