Program: hidedesktop


Function

This program will hide the desktop by displaying a full-screen window on top of it. The hiding window can optionally include a message or graphic in the middle of the screen.

Running program

There are three ways to use hidedesktop

Text message

hidedesktop [ /t timeout ] [ /b background ] [ /f foreground ] [ /n font ] [ /s fontsize ] [ /u ] [ message ]

This will display message on the screen in the requested font, colour and size.

Graphic display

hidedesktop [ /t timeout ] [ /b background ] /i imagefile [ /m { CENTER | TILE | STRETCH } ]

This will display the requested graphic imagefile on the hiding window.

Close Hidedesktop

hidedesktop /x

This will terminate the current hidedesktop and allow the desktop to be seen again.

Parameters

Description

This program is designed to run within a script. The script would run hidedesktop which hides the desktop and returns immediately to the script. The script could then run other programs without the user seeing the programs being run or messages from those programs. The script could use hidedesktop /u to update the displayed message to show progress. The script would them run hidedesktop /x to stop hiding the desktop. If the script finished without running hidedesktop /x the timeout would ensure that the desktop would eventually return.

hidedesktop will intercept and ignore any attempt to close it prematurely (such as typing Alt-F4).

Notes

Examples

Errors

If hidedesktop detects errors it returns immediately with an error code:

0No error
1hidedesktop is already running
2Error in command line parameters
3Can't display hiding window
4Problem starting time-out timer
5Either imagefile doesn't exist or it is not in a recognised format.
6Cannot send new message text to existing hidedesktop process.

Errors in command line parameters may display as part of the message rather than returning an error code.

Known Issues


Software version: 1.1
Copyright 2005 Computer Associates International, Inc.
All trademarks, trade names, service marks, and logos referenced herein belong to their respective companies.