I currently have this script:
"%IMG%compare" -metric RMSE %SRC% %SUB% -subimage-search found.png 2>co.txt
set /p xycos= <co.txt
set str=%xycos%
echo.%str%
set str=%str:,=+%
ECHO %str% > co.TXT
set /p xycos= <co.txt
set str=%xycos%
echo."%str%"
set str=%str: =%
ECHO %str% > co.TXT
set /p xycos= <co.txt
set str=%xycos%
echo.%str%
set str=%str:@= +%
ECHO %str% > co.TXT
set /p xycos= <co.txt
set str=%xycos%
echo.%str%
set str=%str:~-8%
ECHO %str% > co.TXT
set /p xcoyco= <co.txt
"%IMG%convert" ^
%SRC% ^
( %REP% -geometry %xcoyco% ) ^
-composite ^
%SOURCE%
DEL found-0.png
DEL found-1.png
Is there any way I can repeat it infinitely till it terminates itself (will happen once it won't find any more matches) ?
I haven't found such method in DOS yet and pasting the script a dozen hundered time isn't what I'm after either.
Also:
lets assume I have a script that asks the user how many times it should repeat (for example 3 times), repeats said times and closes.
Possible with DOS ?