Moderators SmOke_N Posted November 28, 2005 Moderators Posted November 28, 2005 (edited) You really should pay attention to what people put. $coord = PixelSearch( $left, $top, $right, $bottom, $monster, 10, 10) If Not @error Then If IsArray($coord) Then mouseclick("left", $coord[0], $coord[1], 1) EndIf ;MsgBox(4, "coord[0]", $coord[0], .5) ;MsgBox(4, "coord[1]", $coord[1], .5) mouseclick("left", $coord[0], $coord[1], 1) ^^^^ Should be: $coord = PixelSearch( $left, $top, $right, $bottom, $monster, 10, 10) If Not @error Then If IsArray($coord) Then mouseclick("left", $coord[0], $coord[1], 1) EndIf Without the stuff from ;MsgBox down! Edit: Removed old from code. Edited November 28, 2005 by ronsrules Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Golbez Posted November 28, 2005 Author Posted November 28, 2005 yea thats nice... it works but how am i soppost 2 move the mouse n click?with out this line? mouseclick("left", $coord[0], $coord[1], 1) $coord = PixelSearch( $left, $top, $right, $bottom, $monster, 10, 10) If Not @error Then If IsArray($coord) Then mouseclick("left", $coord[0], $coord[1], 1) EndIf ;MsgBox(4, "coord[0]", $coord[0], .5) ;MsgBox(4, "coord[1]", $coord[1], .5) mouseclick("left", $coord[0], $coord[1], 1)
Moderators SmOke_N Posted November 28, 2005 Moderators Posted November 28, 2005 yea thats nice... it works but how am i soppost 2 move the mouse n click? with out this line? mouseclick("left", $coord[0], $coord[1], 1) $coord = PixelSearch( $left, $top, $right, $bottom, $monster, 10, 10) If Not @error Then If IsArray($coord) Then mouseclick("left", $coord[0], $coord[1], 1) EndIf ;MsgBox(4, "coord[0]", $coord[0], .5) ;MsgBox(4, "coord[1]", $coord[1], .5) mouseclick("left", $coord[0], $coord[1], 1) You know ... I want to flame so bad right now... I think w0uter and Valik might be rubbing off a bit. I asked you to look at the bold print... If you look after "If IsArray($coord) Then" You'll see mouseclick("left", $coord[0], $coord[1], 1) !! Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.
Golbez Posted November 28, 2005 Author Posted November 28, 2005 ohh ima moron :-p i though i was goen 2 see the mouse move like i had it doing before.. sry
Noobie9876 Posted November 30, 2005 Posted November 30, 2005 That SilkOnline-bot you just made, can I have it too? It's hard to get a hold of you. Currently I am making my own, I already have the auto-login, but since yours is already done that'll be much faster
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