Xallisto Posted February 16, 2018 Posted February 16, 2018 hello there, i am very n00b at this, can someone show me how to make a very simple script, what i want is script that for every time i press right click on the mouse the script will then press the keys shift + left click a fraction of a second later.
TheWizEd Posted February 16, 2018 Posted February 16, 2018 49 minutes ago, Xallisto said: hello there, i am very n00b at this, can someone show me how to make a very simple script, what i want is script that for every time i press right click on the mouse the script will then press the keys shift + left click a fraction of a second later. Look at UDF _IsPressed
Moderators JLogan3o13 Posted February 16, 2018 Moderators Posted February 16, 2018 @Xallisto what application are you trying to automate, and what exactly are you trying to accomplish with your button presses? There is bound to be a better way. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
JohnOne Posted February 16, 2018 Posted February 16, 2018 Should get you started #include <Misc.au3> While 3 If _IsPressed("02") Then _ShiftClick() EndIf Sleep(10) WEnd Func _ShiftClick() Sleep(200) ; fraction of a second Send("{SHIFTDOWN}") MouseClick("left") Send("{SHIFTUP}") EndFunc AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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