Sign in to follow this  
Followers 0
eEniquEe

How To Set A Key State?

3 posts in this topic

Hi,

Is there any way that I can set the state of a key, to make all programme "sees" it? Using Help, I find the _IsPressed() function, but this only gets the key state, not setting it. I did do a scan in Misc.au3, but found nothing.. :(

Can anybody help me out with this? :(

Btw, if I'm not being clear enough. I'm looking for a function, which works like MouseDown (to press a mouse button), but not with a mouse, it's the key.

Thanks very much in advance. >_<

Share this post


Link to post
Share on other sites



You can use the Send() function. If you send {LEFT DOWN} it should be reflected to any program invoking the left key state (not 100% sure though).

If you want more control over the input stream, try search for SendInput, you will probably come up with some mouse/keyboard related scripts.

Share this post


Link to post
Share on other sites

You can use the Send() function. If you send {LEFT DOWN} it should be reflected to any program invoking the left key state (not 100% sure though).

If you want more control over the input stream, try search for SendInput, you will probably come up with some mouse/keyboard related scripts.

Yes, it just works like a charm.. Thanks a lot.. >_<

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