Jump to content

Recommended Posts

Posted

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?

Posted (edited)

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
Posted

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

Posted

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?
Posted

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

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