|This increases the counter by 1 every 1 second|
@echo off & setlocal enabledelayedexpansion
echo.wscript.sleep 990> %tmp%\interval.vbs
set /A counter +=1
start /w wscript.exe %tmp%\interval.vbs
Or, if it's a game your working on you'd need to create a separate script to do the checking per x seconds, then the main window parses the variable from the config file.