LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How to put the display into the screen saver mode in LabWindows/CVI?

Does anyone know how to put the display into the screen saver mode using LabWindows/CVI?
TIA,
nqn
0 Kudos
Message 1 of 4
(3,496 Views)
Try this:
LaunchExecutable ("C:\\WINDOWS\\system32\\yourScreenSaver.scr //s");
 
If you want to activate the defined screen saver in the system instead of a fixed one, you need to retrieve first the path to the screen saver executable:
RegReadString (REGKEY_HKCU, "Control Panel\\Desktop", "SCRNSAVE.EXE", file, MAX_PATHNAME_LEN, &stringSize);


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 2 of 4
(3,475 Views)

Hello Roberto,

just out of curiousity: what's the "//s" doing in the command?

0 Kudos
Message 3 of 4
(3,460 Views)
The "/s" command-line option executes the screen saver. If omitted, the screen saver settings dialog box is presented on the screen. See this MSDN entry for detaiils.


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
Message 4 of 4
(3,439 Views)