Try to add a Goto jump at the end of the loop and a label at the beginning of it(gotohere: Goto, gotohere)
Below is a script that looks for the teal "tell" pixel in the bottom left corner, and when it finds it, takes a screenshot (via printscreen), then waits 22 seconds (so it doesn't take 100 pictures.)
I can get it to do that, but I'd like to loop it and have that repeat, where it will do it the whole time I'm playing, not just once. Any help? Thanks!
#NoEnv
SetWorkingDir %A_ScriptDir%
CoordMode, Mouse, Window
SendMode Input
#SingleInstance Force
SetTitleMatchMode 2
DetectHiddenWindows On
#WinActivateForce
SetControlDelay 1
SetWinDelay 0
SetKeyDelay -1
SetMouseDelay -1
SetBatchLines -1
Loop
{
Loop
{
Loop
{
CoordMode, Pixel, Window
PixelSearch, FoundX, FoundY, 0, 1000, 150, 1200, 0x00E1EF, 2, Fast RGB
}
Until ErrorLevel = 0
If ErrorLevel = 0
{
Send, {PrintScreen}
Sleep, 22000000
}
}
}
Last edited by Limit67; 08-03-2014 at 12:49 PM. Reason: edit
Try to add a Goto jump at the end of the loop and a label at the beginning of it(gotohere: Goto, gotohere)