Jump to content

blockinput()


Recommended Posts

hi!

im using ControlSend() to send keystrokes to a *minimized* process without control_ID (no control_ID because its a d3d game) ---> ControlSend("windowname", "", 0, $msg)

the problem now is that i need to send ctrl-keys like select-all, ctrl+A ---> $msg = "^a"

what happens is that this keystroke gets sent globally and interfear with my other programs.

my question is how can i stop this from happening?

i tried blockinput() but this also disables mouse movents completly which is no option

thanks in advance,

strikeout

Link to comment
Share on other sites

nope, it seems at least the CTRL key is sent globally!

example:

im typing a text in eg. firefox and im about to press the letter P, CTRL comes by globally via the ControlSend() and ..whoops! im in firefox' print-screen menu.

as almost every key is somehow mapped to a ctrl+key function in most programs i try to manually stop typing right to prevent weird accidents, so thats how i came to blockinput()

Link to comment
Share on other sites

nope, it seems at least the CTRL key is sent globally!

example:

im typing a text in eg. firefox and im about to press the letter P, CTRL comes by globally via the ControlSend() and ..whoops! im in firefox' print-screen menu.

as almost every key is somehow mapped to a ctrl+key function in most programs i try to manually stop typing right to prevent weird accidents, so thats how i came to blockinput()

So it will work, block it for a millisecond you won't even notice or do you?

Link to comment
Share on other sites

  • 2 weeks later...

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