block a key that's hold down

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
bigdeal
Posts: 66
Joined: 13 Feb 2017, 06:31

block a key that's hold down

22 Feb 2017, 06:48

hey guys
does anyone know if I can block a key while hold down? what I need is to block a persons input, but also while he's holding a key like if he's pressing W ingame, I tried something with GetKeyState, like : if (!GetKeyState("w", "P")), but I wanted to know if it's possible while w is pressed down
4GForce
Posts: 553
Joined: 25 Jan 2017, 03:18
Contact:

Re: block a key that's hold down

23 Feb 2017, 03:17

bigdeal wrote:does anyone know if I can block a key while hold down?
I do, answer is yes ! :trollface:
bigdeal
Posts: 66
Joined: 13 Feb 2017, 06:31

Re: block a key that's hold down

23 Feb 2017, 09:01

oh great great you know how to block it! ok send me that piece of code before i snap you head of you neck I mean tell me than please kind sir kind sir...
4GForce
Posts: 553
Joined: 25 Jan 2017, 03:18
Contact:

Re: block a key that's hold down

23 Feb 2017, 12:49

bigdeal wrote:oh great great you know how to block it! ok send me that piece of code before i snap you head of you neck I mean tell me than please kind sir kind sir...
Sorry, was a bit drunk when I typed that ...

BlockInput might do what you need.

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], peter_ahk, Spawnova and 344 guests