Jump to content

Recommended Posts

Posted (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 :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
Posted (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 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)



460px-Thief-4-temp-banner.jpg
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.

 

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