LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

activating windows screensaver

Hi

I'm trying to activate the windows (XP) screensaver from LV6.1.

I've tried the Windows API Function Utilities (32-bit) for LabVIEW as previously suggested, and used "Start Windows Screen Saver.vi". However I get an error that the library function "LVPostMessage" called by "PostMessage Master.vi" is not found. Is there a problem with "LVWUtil32.DLL" file I have or am I missing something?

Thanks

Roo
0 Kudos
Message 1 of 5
(3,343 Views)

Hi

There is another way to activate screensaver, easier than the use of dll.

Just use the "system esec vi". The input command should be    YourScreensaver.scr /S.

If screensaver is not in a windows directory, type the full path.

Cheers

Alipio

---------------------------------------------------------
"Qod natura non dat, Salmantica non praestat"
---------------------------------------------------------
Message 2 of 5
(3,331 Views)
Thanks - much simpler and works perfectly.

Cheers

Roo
0 Kudos
Message 3 of 5
(3,314 Views)

Can you please attach the vi or the .png of your code.

thanks

sreedhar.

0 Kudos
Message 4 of 5
(3,308 Views)
Hi

See attached image for all the code you need. Change "Helios.scr" to whatever your screensaver is called (scr files reside somewhere like C:\WINDOWS\SYSTEM32". Alipio actually meant "System Exec.vi" which is part of LabVIEW.

Roo
0 Kudos
Message 5 of 5
(3,288 Views)