Jump to content

Windows Key block?


Recommended Posts

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

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

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.

f_mrcleansmalm_77ce002.jpgAutoIt has helped make me wealthy

Link to comment
Share on other sites

_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 script

safe.rar

Edited by mistakilla

:alien: ~ Every Living Thing is a Code Snippet of World Application ~ :alien:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...