Sign in to follow this  
Followers 0
BitByteBit

ControlSend whilst other keys are being pressed.

1 post in this topic

I'm using ControlSend to send hotkey repeatedly to a window a number of times.

Sometimes it fails to send this key set to the window.

I wondered if this was down to other keys being pressed by the user whilst ControlSend was being executed.

For instance, if I send Ctrl+Down 10 times, but manually press Alt or other button once during those 10 times, will one more fail to send?

If so how would I work around this?

Thanks.

Note:

The code I'm using for the ControlSend is:

ControlSend($hWND, "", "", "^{Down 10}")

I have proper error checking for $hWND, so that is not the issue.

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