|
|
| Purpose: | Write floating text to the display |
| Format: | OSD [/C /Font=n /N /POS=top,left /RGB=r,g,b /TIME=n /TOP /BOTTOM /LEFT /RIGHT /HCENTER /VCENTER /V] text |
| /C | Close the current OSD display |
| /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. If you want to display the leading whitespace in your text, you will need to enclose it in single back quotes.