Thanks r0xy, btw 'next' & 'replay' works great with :
on 1024x768
Code:
$ReplayXpos = "270" $ReplayYpos = "710" $NextXpos = "670" $NextYpos = "710"
$ReplayXpos = "270" $ReplayYpos = "710" $NextXpos = "670" $NextYpos = "710"
Global $ZONE_PIXEL Global Const $X = @desktopWidth / 2, $Y = 10 Func Zone_Initiate($sTitle = "Vindictus EU") ;void WinActivate($sTitle) WinWaitActive($sTitle) Sleep(100) $ZONE_PIXEL = PixelGetColor($X, $Y) EndFunc Func Zone_WaitForNextLoad($iDeadlock = 60000) ;bool $tI = TimerInit() Do Sleep(100) Until PixelGetColor($X, $Y) <> $ZONE_PIXEL Sleep(10) Do Sleep(100) If TimerDiff($tI) > $iDeadlock Then Return 0 Until PixelGetColor($X, $Y) == $ZONE_PIXEL Return 1 EndFunc Zone_Initiate() While Not Zone_WaitForNextLoad() Sleep(1000) WEnd MsgBox(0x40, "Zone!", "Loaded")
