ok i working on a farmbot with AutoIt3 not my first but my first in VG.
i use on all other games i played this little skript to get the X Y mouse Pos with the ColorId:
Code: Register to unlock hidden link
SetKeyDelay 100,50
sc_id = -1
f9::
;ID holen
WinGet, sc_id, ID, A
MsgBox, F9=ID F2=Start F2=Pause %sc_id%
Return
f2::
MouseGetPos, xpos, ypos
PixelGetColor, color, %xpos%, %ypos%
MsgBox, The color at the current C=%color% X=%xpos% Y=%ypos%
return
so then i was using this part to find the right color on my position:
Code: Register to unlock hidden link
WinWait, Vanguard: Saga of Heroes,
IfWinNotActive, Vanguard: Saga of Heroes, , WinActivate, Vanguard: Saga of Heroes,
WinWaitActive, Vanguard: Saga of Heroes
f1::
CoordMode, Pixel, Screen
Pixelsearch, PX,PY,534,534,823,823,0x1F1F1F,3,Fast
if ErrorLevel = 0
msgbox, find color!
else
msgbox, didnt find !
sleep, 2000
it works Terrible in VG im not sure why.
any tips to make the work on pixelsearch more succefull in VG?
ty.