Sign in to follow this  
Followers 0
this-is-me

Impossible task...

2 posts in this topic

#1 ·  Posted (edited)

I need to have a key (down) be recognised by an autoit script (I am using Larry's _IsPressed) and then I need to immediately stop that key from being repeated to the application, but still know when the key is unpressed. In other words:

We will use the "a" key as and notepad as examples.

While in notepad, someone begins to hold down the "a" key

the autoit script takes over

stops the key from being repeated over and over in notepad

the key is still being held down, and the autoit script does a function during this time

the key is unpressed, and the script stops doing the function

I have tried blockinput after ispressed, but it also blocks the un-press.

Is there any way to do this?

Edited by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites



Is there no way to "hook" the key after keydown using dllcall?


Who else would I be?

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