Jump to content

ControlSend whilst other keys are being pressed.


Recommended Posts

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.

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...