OSD /C issue

May 31, 2008
382
2
I want to use OSD to show updates from a detached batch script.
Each OSD message should stay on until the next OSD message takes over.
How do I do that, OSD /C doesn't seem to work as I expected. Consider this fragment:
PHP:
osd /top /right /n 1111
delay 2
osd /c /top /right /n 2222
I think it should show 1111 for 2 seconds then 2222 forever. Instead here it shows 1111 for 2 seconds then nothing (cleared).
I tried several variations but I can't get 2222 to show. It almost seems like option /c is broken, or I don't get it.
 
May 20, 2008
11,297
95
Syracuse, NY, USA
On Mon, 08 Sep 2008 04:12:39 -0500, Stefano Piccardi <>
wrote:


>PHP:
>---------
>osd /top /right /n 1111
>delay 2
>osd /c /top /right /n 2222
>---------
>I think it should show 1111 for 2 seconds then 2222 forever. Instead here it shows 1111 for 2 seconds then nothing (cleared).
>I tried several variations but I can't get 2222 to show. It almost seems like option /c is broken, or I don't get it.

If I put those three lines in a batch file and run it, after the two-second
delay I see the "cancel batch" prompt. And when that happens, WinDbg shows

C++ EH exception - code e06d7363 (first chance)
C++ EH exception - code e06d7363 (first chance)

I don't know what's happening. What you want to do seems reasonable.
 
May 31, 2008
382
2
If I put those three lines in a batch file and run it, after the two-second delay I see the "cancel batch" prompt... I don't know what's happening. What you want to do seems reasonable.
Yes, I had weird things happening with OSD /C, I couldn't even describe some...
 
|I want to use OSD to show updates from a detached batch script.
| Each OSD message should stay on until the next OSD message takes over.
| How do I do that, OSD /C doesn't seem to work as I expected. Consider this
fragment:
|
| PHP:
| ---------
| osd /top /right /n 1111
| delay 2
| osd /c /top /right /n 2222
| ---------
| I think it should show 1111 for 2 seconds then 2222 forever. Instead here
it shows 1111 for 2 seconds then nothing (cleared).
| I tried several variations but I can't get 2222 to show. It almost seems
like option /c is broken, or I don't get it.

osd /top /right /time=seconds /n display text
 
May 31, 2008
382
2
osd /top /right /time=seconds /n display text
Thank you but this isn't what I need; /time=seconds will remove the OSD after 2 seconds. In my first post I was using delay 2 to signify any arbitrary amount of time that it takes the script to process statements between the first OSD and the next one.
 

rconn

Administrator
Staff member
May 14, 2008
12,316
148
Stefano Piccardi wrote:

> I want to use OSD to show updates from a detached batch script.
> Each OSD message should stay on until the next OSD message takes over.
> How do I do that, OSD /C doesn't seem to work as I expected. Consider
> this fragment:
> PHP Code:
> | | osd /top /right /n 1111
> delay 2
> osd /c /top /right /n 2222
> | |
> I think it should show 1111 for 2 seconds then 2222 forever. Instead
> here it shows 1111 for 2 seconds then nothing (cleared).
> I tried several variations but I can't get 2222 to show. It almost seems
> like option /c is broken, or I don't get it.

OSD /C is intended to kill an existing OSD, not to restart another one.
It will not work in combination with any other OSD options.

Rex Conn
JP Software
 
May 20, 2008
11,297
95
Syracuse, NY, USA
On Mon, 08 Sep 2008 21:17:23 -0500, rconn <> wrote:


>OSD /C is intended to kill an existing OSD, not to restart another one.
> It will not work in combination with any other OSD options.

What about OSD /C invoking the "cancel batch" prompt?
 
May 31, 2008
382
2
OSD /C is intended to kill an existing OSD, not to restart another one.
It will not work in combination with any other OSD options.
I think OSD /C attempts to kill the batch file, that's why I don't see any other OSDs following an OSD /C
Code:
osd /top /right /n 1111
delay 2
osd /c
osd /time=2 /top /right /n 2222
Results in
Code:
C:\boot>alias osd
TCC: Not an alias "osd"

C:\boot>qbat.bat
osd /top /right /n 1111
delay 2
osd /c

Cancel batch job C:\boot\qbat.bat ? (Y/N/A) :
 
May 20, 2008
11,297
95
Syracuse, NY, USA
On Wed, 10 Sep 2008 04:27:26 -0500, Stefano Piccardi <>
wrote:


>I think OSD /C attempts to kill the batch file, that's why I don't see any other OSDs following an OSD /C
>
>Code:
>---------
>osd /top /right /n 1111
>delay 2
>osd /c
>osd /time=2 /top /right /n 2222
>---------
>Results in
>Code:
>---------
>C:\boot>alias osd
>TCC: Not an alias "osd"
>
>C:\boot>qbat.bat
>osd /top /right /n 1111
>delay 2
>osd /c
>
>Cancel batch job C:\boot\qbat.bat ? (Y/N/A) :

You can get around it with the likes of "ON BREAK DELAY /M 0". If you really
want to use ON BREAK for other purposes you'll have to get fancy, maybe a local
alias to wrap "OSD /C" in its own break handler and restore the old one, or a
"newosd" subroutine that will do the same.
 
May 31, 2008
382
2
You can get around it with the likes of "ON BREAK DELAY /M 0". If you really
want to use ON BREAK for other purposes you'll have to get fancy, maybe a local
alias to wrap "OSD /C" in its own break handler and restore the old one, or a
"newosd" subroutine that will do the same.
Thanks Vince, I have decided to use sysutils:OS in this case.
 
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 Fixed DO, OSD, and cancel batch prompt Support 3
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
G v28 Display Issue Support 7
Jay Sage Issue with CD_ENTER Alias Support 37
Jay Sage Issue with CD_LEAVE Alias Support 3
fpefpe How to? issue with % and evaluation Support 5
cgunhouse Standard User Account Issue Support 2
samintz WAD Display wrapping issue Support 5
M TCC color issue in ConEmu Support 4
samintz Timer issue Support 4
Alpengreis Documentation Minor issue in help file for view /E Support 1
samintz WAD ANSI issue Support 3
D TCSTART issue after reinstallation Support 14
A Documentation [Help file] OPTION "//" synopsis formatting issue Support 0
Chen Touboul Overtyping issue - i press the Insert key, help till press enter for new line in TCC Support 2
Y TCC and Cmder imcompatibility issue Support 7
M Another possibly strange remote registry issue Support 5
T WAD bpokestr issue Support 5
D High-DPI Scaling issue Support 1
S CMDebug 22 issue with del command Support 1
cgunhouse Foldermonitor Issue Support 7
samintz Build 38 Install issue Support 5
rps WAD Setlocal issue Support 4
Luiz Rodrigues Issue with Maven Support 1
Seven Update / install issue with 20.0.20.10.32 take command Support 7
Fross WebDav Drive Mapping Issue Support 19
D Upgrade issue Support 3
Fross V20b8 Everything Issue Support 5
T TCC display issue Support 1
cgunhouse _logfile Issue Support 5
T Fixed Querybox issue Support 1
cgunhouse Fixed Share Memory Issue Support 5
cgunhouse Foldermonitor with "/E" Option Issue Support 6
Fross TabComplete Argument Issue Support 1
fpefpe How to? Stange start up issue Support 1
C cosmetic issue with LIST's (I) Support 9
jbarnes1967 TC 18.00 x64 issue with lua io.popen() Support 2
D How to? Wildcards as sets - looping issue with FOR and REN Support 7
T WAD Free issue Support 6
R Fixed v17.0.54 Tab->COMSPEC Dialog Box Issue Support 2
R Minor Cosmetic Issue in Take Command Window Support 2
cgunhouse One line IFF ... Then ... Else ... EndIFF Statement issue in V17 Support 13
cgunhouse IFTP Path Issue in V17 - Fixed Support 7
S BDEBUGGER issue Support 9

Similar threads