Jump to content

Recommended Posts

Posted

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.

Posted
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
Posted

@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!

Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...