Jump to content
Sign in to follow this  
hmRaggy

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?

Share this post


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

Share this post


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

Share this post


Link to post
Share on other sites

hmm

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

Then you can just call the function

Good call. But in that case, wouldn't you want to name the function ShiftLeftClick() to keep it from being mistaken for a simple left click?

Share this post


Link to post
Share on other sites

No , I make bots for diablo II , i know this problem , i has checked it out , Its

send("{Shiftdown}")
mouseclick("left")
send("{Shiftup}")

By me it works :lmao:


-jaenster

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...