Jump to content

Simple script please help!


Xallisto
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • Moderators

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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