Jump to content
Sign in to follow this  
Xallisto

Simple script please help!

Recommended Posts

Xallisto

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
TheWizEd
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
JLogan3o13

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


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
JohnOne

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.

Share this post


Link to post
Share on other sites
Xallisto

Thank you very much guys.

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  

×