eEniquEe Posted July 25, 2009 Share Posted July 25, 2009 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. >_< Link to comment Share on other sites More sharing options...
Authenticity Posted July 25, 2009 Share Posted July 25, 2009 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. Link to comment Share on other sites More sharing options...
eEniquEe Posted July 25, 2009 Author Share Posted July 25, 2009 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.. >_< Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now