Jump to content

Recommended Posts

Posted (edited)

  Quote

$coord = PixelSearch( 0, 0, 20, 300, 0x673D17 )

While @error=0

(movement/attack code)

$coord = PixelSearch( 0, 0, 20, 300, 0x673D17 )

Wend

is this the right command?i want it to detect a pixel using Hex code and on the (movement/attack code) i want the mouse move to that pixel and left click on it. anyone know wat codes i need to put in as a replace in (movement/attack code)? please help

Edited by qwqwwqwdwd
Posted (edited)

  Valuater said:

"qwqwwqwdwd"

Man, that must of taken alot of time and thought

Lol, a well thought out name indeed

  Quote

is this the right command?i want it to detect a pixel using Hex code and on the (movement/attack code) i want the mouse move to that pixel and left click on it. anyone know wat codes i need to put in as a replace in (movement/attack code)? please help

PixelSearch returns 2 arrays containing the X and Y position, so change it to this:

$coord = PixelSearch( 0, 0, 20, 300, 0x673D17 )
If Not @error Then MouseClick("left", $coord[0], $coord[1], 1, 0)

Kurt

Edited by _Kurt

Awaiting Diablo III..

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