Jump to content

Shift+Click(left mouse)


Recommended Posts

I can't seem to figure out how to get a mouseclick and a keystroke to happen at the same time. Here is my best attempt I have made so far.

$mouse = MouseClick("left")

$key = Send("{SHIFT}")

Send("$mouse$key", 0)

But its still not workin'. Can someone pretty please 0 =) give me an example on how to preform a mouseclick and a keystroke at the same time? such as Shift+Click?

Link to post
Share on other sites

Send ("{SHIFT DOWN}")

MouseClick ("primary") ; I prefer primary so it accounts for switched mouse buttons

Send ("{SHIFT UP}")

There might not be a space in there... might just be SHIFTDOWN and SHIFTUP. Or it might work either way...

Edited by greenmachine
Link to post
Share on other sites

Send ("{SHIFT DOWN}")

MouseClick ("primary") ; I prefer primary so it accounts for switched mouse buttons

Send ("{SHIFT UP}")

There might not be a space in there... might just be SHIFTDOWN and SHIFTUP. Or it might work either way...

hmm

Func LeftClick()
Send("{SHIFT DOWN}")
MouseClick("LEFT")
Send("{SHIFT UP}")
EndFunc

Then you can just call the function

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

    No registered users viewing this page.

×
×
  • Create New...