Jump to content

help plz?


Golbez
 Share

Recommended Posts

  • Moderators

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

Link to comment
Share on other sites

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)
Link to comment
Share on other sites

  • Moderators

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

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.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...