hmRaggy Posted February 1, 2006 Posted February 1, 2006 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?
greenmachine Posted February 1, 2006 Posted February 1, 2006 (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 February 1, 2006 by greenmachine
blizzedout Posted February 1, 2006 Posted February 1, 2006 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
greenmachine Posted February 1, 2006 Posted February 1, 2006 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?
hmRaggy Posted February 1, 2006 Author Posted February 1, 2006 DUH! lol, I don't know why I didn't think of doing it that way! lol, thank you guys! I really appreciate it!
jaenster Posted February 1, 2006 Posted February 1, 2006 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 -jaenster
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now