Goss3N Posted February 19, 2010 Posted February 19, 2010 (edited) ---code--- $coord = PixelSearch( 0, 0, 2048, 1024, 0x0A246A ) Sleep(1000) $x = $coord[0] -1050 $y = $coord[1] -5 MouseMove($x, $y) Sleep(100) MouseClick("Left") ---code--- $x = $coord[0] -1050 $y = $coord[1] -5 this is the hard part 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 February 19, 2010 by Goss3N
bogQ Posted February 19, 2010 Posted February 19, 2010 (edited) youl need to see if its error on PixelSearch before move $coord = PixelSearch( 0, 0, 2048, 1024, 0x0A246A ) If Not @error Then Sleep(1000) MsgBox(0,$coord[0]&":"&$coord[1],$coord[0]-1050&":"&$coord[1]-5) MouseClick("left",$coord[0]-1050, $coord[1]-5,1,1) Else MsgBox(0,"","cant detect it") EndIf Edited February 19, 2010 by bogQ TCP server and client - Learning about TCP servers and clients connectionAu3 oIrrlicht - Irrlicht projectAu3impact - 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.
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