OSD |
Purpose: | Write floating text to the display |
Format: | OSD [/ID=n /C[=n] /Font=n /ID=n /N /POS=top,left /RGB=r,g,b /TIME=n /TOP /BOTTOM /LEFT /RIGHT /HCENTER /VCENTER /V] text |
/ID=n | Open the OSD window n (0-9). /ID is optional; it will default to 0. If /ID is specified, it must be the first argument. |
/C=n | Close the specified OSD display. /C=n must be the only argument. /C will default to OSD window 0. |
/Font=n | The font height (default 18) |
/N | Don't wait for timeout before returning to the prompt |
/POS=top,left | Screen coordinates for the top left corner of the text (default 10,10) |
/RGB=r,g,b | Text color in RGB format (default 0,255,0) |
/TIME=n | Time in seconds to display the text (default 10) |
/TOP | Position the text at the top of the display |
/BOTTOM | Position the text at the bottom of the display |
/LEFT | Position the text at the left of the display |
/RIGHT | Position the text at the right of the display |
/HCENTER | Center the text horizontally |
/VCENTER | Center the text vertically |
/V | Display the text vertically |
text | The text to display |
Usage:
OSD displays text on the desktop without a surrounding window, like TV or monitor prompts.
If you want to display multiple lines, insert the LF escape sequence (^N) in your text. For example:
osd /pos=40,50 This is text with^Nmultiple lines.
If you specify the /V (vertical display) option, you cannot also display multiple lines of text.
You can combine the window positioning options. For example:
osd /hcenter /vcenter /n Your text here
OSD will strip leading whitespace in text.
You can control up to 10 simultaneous OSD windows with the /ID=n and /C=n options. If you don't specify /ID, OSD will default to window 0.