JeppeTarp Posted December 30, 2015 Share Posted December 30, 2015 Hi,So I downloaded autoit for one simple 4 line script. However after messing with it for a few hours I'm not able to get it to work. I suppose its so simple that one of you can see the solution in seconds. What I need is the following:A script that runs in the background, that does this:When I click my leftmouse it sends the commandsstrokes: A, LeftMouseClick (at cursor position), Space.Thats all I need. So basically my left mousebutton now functions as three buttons that are clicked almost at once (it's important that A comes before LeftMouseClick). Thank you!Best RegardsJeppeTarp Link to comment Share on other sites More sharing options...
InunoTaishou Posted December 30, 2015 Share Posted December 30, 2015 (edited) There are a few ways to do this but the simplest method for you to be would to use _IsPressed("01) (_IsPressed) "01" is the Left Mouse ButtonBase your script off the help file one. You'll want to use _IsPressed to first check and see if the button is pressed, once you have pressed and released Mouse 1 then you'll want to do the rest of your stuff. Edited December 30, 2015 by InunoTaishou Link to comment Share on other sites More sharing options...
Developers Jos Posted December 31, 2015 Developers Share Posted December 31, 2015 I downloaded autoit for one simple 4 line script. However after messing with it for a few hours I'm not able to get it to work. I suppose its so simple that one of you can see the solution in seconds.You forgot to post the script that isn't working.Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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