Sign in to follow this  
Followers 0
Arterie

Block Keyboard but reciieve input

6 posts in this topic

Hi!

I need something for my script. I used the blockinput udf for blocking the keyboard.

The problem is that my script should recieve input from the keyboard, but if i press

"a" there shouldnt appear an "a" on the screen.

Share this post


Link to post
Share on other sites



Yashied's excellent UDF allows you to block input to all but your own program. Unfortunately once Ctrl-Alt-Del is pressed, game is over on Win 7 - the hook is lost completely.

Share this post


Link to post
Share on other sites

You could always use a "IF" statement, and do something like:

If WinActive("title of your program window here") Then
   ;turn off block key input...
Else
   ;block key input...
EndIf

Thanks,

Ilmaestro.


Hello, World!... LAME lol

Share this post


Link to post
Share on other sites

Have a look at

Share this post


Link to post
Share on other sites

Ok, i tryed the blockinput, but it blocks all the input.

as i said, i want only my script to recieve input from the keyboard.

the hotkeys could be possible, but i dont want to assign every single letter

on its own.

@ maestro: i meant the scripts "interior". like if my active window is notepad,

and if you type something, my programm should block it, but also recieve the pressed

keys.

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