webxt Posted June 9, 2008 Share Posted June 9, 2008 (edited) Is it possible? Thanks in advance, webxt Edited June 9, 2008 by webxt Link to comment Share on other sites More sharing options...
k3v Posted June 9, 2008 Share Posted June 9, 2008 it would help to know more details, but you might try: if not _ispressed(the key you want to block) then do stuff endif check the help file for a list of key values Link to comment Share on other sites More sharing options...
webxt Posted June 9, 2008 Author Share Posted June 9, 2008 (edited) Hello k3v, I mean the windows key Edited June 9, 2008 by webxt Link to comment Share on other sites More sharing options...
k3v Posted June 9, 2008 Share Posted June 9, 2008 (edited) 5B Left Windows key 5C Right Windows key (they're also in the help file) not sure how to do what you want though Edited June 9, 2008 by k3v Link to comment Share on other sites More sharing options...
webxt Posted June 9, 2008 Author Share Posted June 9, 2008 is_pressed gives me some error, unknown function. Link to comment Share on other sites More sharing options...
k3v Posted June 9, 2008 Share Posted June 9, 2008 is_pressed gives me some error, unknown function.the function is _IsPressed()but I'm not sure in this case it'll do what you want. there's probably a Windows configurable setting somewhere that will do that... if you can find it, you can likely modify that setting with AutoIt... google a reg setting for disabling the windows key. (come to think of it, I'd like to know, so I'll google it too) Link to comment Share on other sites More sharing options...
webxt Posted June 9, 2008 Author Share Posted June 9, 2008 I need to block this key temporarely so I don't want to edit the registry files. Thanks for your time anyway. Link to comment Share on other sites More sharing options...
LarryDalooza Posted June 10, 2008 Share Posted June 10, 2008 If you set a keyboard hook and a callback function... return -1 in the callback when you get a "Windows Key" code. Depending on the callback implementation... it may work.... who knows until you try it.Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
webxt Posted June 10, 2008 Author Share Posted June 10, 2008 Hi Larry, could you please explain? ___ For example (does not work): HotKeySet("{5B}", "nothing") func nothing() Endfunc Link to comment Share on other sites More sharing options...
LarryDalooza Posted June 10, 2008 Share Posted June 10, 2008 No... it is quite a bit harrier. You will need to research the forum for +keyboard +hook and look for a WH_KEYBOARD_LL hook example ... download it and play with it, then change the logic in the callback function to return -1 when the keycode of the "Windows Key" arrives. Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
aNewLyfe Posted June 10, 2008 Share Posted June 10, 2008 (edited) _ispressed needs #include <misc.au3> try to send an esc if win key pressed. also here i have a little proggy made in vc it blocks a few keys, like win key alt+f4 alt+tab as i remember. just run it with scriptsafe.rar Edited June 10, 2008 by mistakilla ~ Every Living Thing is a Code Snippet of World Application ~ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now