Jump to content

Some pixel coord help


Recommended Posts

$coord = PixelSearch( 0, 0, 2048, 1024, 0x0A246A )
$x = $coord[0] -1050
$y = $coord[1] -5
MouseMove($x, $y)

$x = $coord[0] -1050

$y = $coord[1] -5

this is the hard part :mellow:

i want to minus the x coordinate with 1050 and y coordinate with 5

thanks in advance

hmm maybe a bit misleading topic title

i tried with out the x/y coords and this is what i got now

C:\Documents and Settings\Administrator\My Documents\au3\fesfe.au3 (56) : ==> Subscript used with non-Array variable.:

MouseMove( $coord[0], $coord[1])

MouseMove( $coord^ ERROR

so now i have two problems

Edited by Goss3N
Link to comment
Share on other sites

youl need to see if its error on PixelSearch before move

$coord = PixelSearch( 0, 0, 2048, 1024, 0x0A246A )

If Not @error Then
    MouseClick("left",$coord[0]-1050, $coord[1]-5,1,1)
    MsgBox(0,"","cant detect it")
Edited by bogQ

TCP server and client - Learning about TCP servers and clients connection
Au3 oIrrlicht - Irrlicht project
Au3impact - Another 3D DLL game engine for autoit. (3impact 3Drad related)

There are those that believe that the perfect heist lies in the preparation.
Some say that it’s all in the timing, seizing the right opportunity. Others even say it’s the ability to leave no trace behind, be a ghost.

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

  • Recently Browsing   0 members

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