Fixed DO, OSD, and cancel batch prompt

May 20, 2008
11,400
99
Syracuse, NY, USA
When I run this BTMfile,
Code:
do forever
    echo %_do_loop
    osd /id=1 /n foo
    delay 1
    osd /c=1
enddo
and press Ctrl-C and answer "N" to the cancel batch prompt, I get an unending series of cancel batch prompts. If I keep answering "N", they keep coming. Without the DELAY the same thing happens.
Code:
v:\> cancel.btm
1
2
3
4
^C
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
5
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
6
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
7
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
8
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
9
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
10
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
11
Cancel batch job V:\cancel.btm ? (Y/N/A) : N
 
May 20, 2008
11,400
99
Syracuse, NY, USA
I'm not sure what you were expecting the ^C to do, but I've changed OSD in build 42 to ignore ^C's when you're running asynchronously (/n).
I was expecting Ctrl-C + N to continue the batch file (not keep giving me the cancel prompt).
 
Similar threads
Thread starter Title Forum Replies Date
Joe Caverly OSD Macro Playback Message Support 0
Charles Dye OSD loses ampersands in text Support 2
forbin Fixed OSD /C has no effect Support 14
vefatica OSD and ON ERROR Support 1
forbin Fixed OSD runs out of resource Support 15
T OSD close Support 10
Joe Caverly OSD error Support 4
Stefano Piccardi OSD /C issue Support 10
S incorrect message at start Cancel batch job 4START.bat ? (Y/N/A) : Support 1
A 18.00.21 tries to cancel TCSTART.BTM Support 3
R Unexpected 'Cancel Batch Job' prompts Support 13
vefatica Cancel batch prompt? Support 0
fpefpe How to? shortcuts and batch files Support 4
vefatica `Back quotes` - command line vs. batch file Support 5
fpefpe How to? batch file size Support 2
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
M Oracle batch OPatch.bat.bat not working in TCC but correctly in CMD Support 5
Joe Caverly Set a batch variable (%1 - %n) when TCC is executing a batch file Support 5
P Kill all other instances of tcc from a btm batch file Support 2
fpefpe batch file ending early Support 18
R Batch Debugger Command Expansion Window Support 3
K robocopy cancelling batch file processing Support 28
A Unable to pass batch file arguments unaltered Support 18
K Batch debugger not stepping correctly Support 4
MickeyF Why does this batch file give me 'unknown command "else"' error? Support 17
Joe Caverly "Functions" in cmd.exe batch files Support 6
S Batch files Calling Batch Files Support 2
P exit /b in batch files Support 7
P Labels in batch files: TCC vs CMD.exe Support 9
vefatica Batch parameters broken? Support 2
cxxl Set encoding for batch file Support 4
dcantor How to? Batch file to be executed by TCSTART Support 4
J New lexer for TCC batch files. Support 0
T Fixed Problem with use of Batch parameters in the IDE Support 1
T Fixed IDE locks up if edit window for running batch is closed Support 6
T How to? Show the values of batch variables on the TCC screen Support 21
D Alias in batch file Support 3
TT's Help! Uninstalling TCC did not restore cmd.exe as Win10 default batch file processor. Support 4
vefatica Exit code of a batch file? Support 4
J cd command altered in batch file Support 3
MickeyF running a program from cmdline versus in batch file Support 1
B Batch file won't run if there is already an instance of TC 17 running Support 9
nickles Fixed Executing long command lines in a batch generates file name errors Support 16
T batch execution Support 9
rjperrella start /tabna leaves blank windows when running batch scripts Support 10
jadaml Echo unicode characters from UTF-8 Batch files? Support 1
J Files Disappearing During Batch Execution Support 4
nickles Fixed In batch files, %0 now evaluates to the absolute path Support 9
D Installation batch files Support 5
Jay Sage WAD Possible Bug in Batch Parameters Support 7

Similar threads