Kaspar Posted May 21, 2012 Share Posted May 21, 2012 I've searched through the forums and haven't found the answer I need for this so: How can I controlsend or controlclick a mousedown (left) with no end? What code do I need? I can get it to work with just a mousedown (left), but that requires the screen to be active, and I want to be able to do other things on my computer while it's being held down. Link to comment Share on other sites More sharing options...
ileandros Posted May 22, 2012 Share Posted May 22, 2012 (edited) While 1 ...blah blah blah... WEnd If you would like to build a reproducer then maybe u could get some more help... Edited May 22, 2012 by ileandros I feel nothing.It feels great. Link to comment Share on other sites More sharing options...
JohnOne Posted May 22, 2012 Share Posted May 22, 2012 Kaspar. There are no native functions for what you want. You could however achieve it, using either PostMessage or SendMessage functions. It will not be a walk in the park if you are beginner. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Kaspar Posted May 22, 2012 Author Share Posted May 22, 2012 (edited) local $i = 0 Do ControlSend("Window Name", "", "", "{-}") Until $i = 1 Is what I've got right now, But I need it to be a controlclick but when I run the window info tool, no controlID's come up. I've messed w/ this stuff a tiny bit in the past but I'd figure that it shouldn't be that hard to say I want a mousedown left in this window while it's the inactive window. The code works when I swap the key that I use from my mouse to be - Edited May 22, 2012 by Kaspar Link to comment Share on other sites More sharing options...
Kaspar Posted May 22, 2012 Author Share Posted May 22, 2012 local $i = 0 Do ControlClick("Window Name", "", "", "") Until $i = 1 Seemed to finally work even though I've tried it who knows how many times... -.- Don't know what changed from all the times previous. 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