- May
- 15,177
- 274
ON BREAK LEAVE - is it cool? Sometimes I get an error; sometimes I don't.
Code:
v:\> type zerotest.btm
setlocal
on break leave
do forever
set ticks=%@winapi[kernel32,GetTickCount]
if %@eval[%_do_loop MOD 10000] == 0 echo %_do_loop %ticks
enddo
v:\> zerotest.btm
10000 812419140
^C
v:\> zerotest.btm
10000 812426890
^C
TCC: V:\zerotest.btm [6] Unknown command "leave"
v:\> zerotest.btm
10000 812481031
^C
v:\> zerotest.btm
^C
TCC: V:\zerotest.btm [6] Unknown command "leave"
v:\>