Jump to content
Sign in to follow this  
Xallisto

Simple script please help!

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.

Share this post


Link to post
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

Share this post


Link to post
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

 

Share this post


Link to post
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
Sign in to follow this  

×
×
  • Create New...