LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I generate mouse activity to keep screensaver from appearing

My company has decided that all of our PCs are to be locked out after 15 minutes of inactivity.
This is a disaster for all of our test stands because the operators loose control of the test process and have to log back in all day long (they do not normally use the mouse or keyboard).
In Labview (V6.1), is there a way I can periodically issue mouse movements to prevent the screen saver from popping up?
0 Kudos
Message 1 of 6
(4,351 Views)
Why not disable screen saver programmatically using lvwutil32.zip (available for download from NI site) when your application start to run? You can enable it programmatically before your application stops. It's the same to "disable" screen saver by simulating mouse movements.

George Zou
http://gtoolbox.yeah.net
George Zou
0 Kudos
Message 2 of 6
(4,351 Views)
Probably the same answer as above, but here is a quick little example on using windows API to enable and disable the screensaver
Download All
0 Kudos
Message 3 of 6
(4,351 Views)
Rather than disabling the screen saver in windows perhaps you would prefer to retain control over windows.

I avoid operating system calls where possible as they can be a cause of concern for the next OS revision.

Try generating activity

see the following, there are some points of interest here: -

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000065C70000&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=screen+saver&USEARCHCONTEXT_QUESTION_S=0
0 Kudos
Message 4 of 6
(4,351 Views)
I think you're looking to use an SDK function to programmatically move the mouse:
http://sine.ni.com/apps/we/niepd_web_display.DISPLAY_EPD4?p_guid=B123AE0CB917111EE034080020E74861&p_node=DZ52048&p_submitted=N&p_rank=&p_answer=&p_source=External


2006 Ultimate LabVIEW G-eek.

Message 5 of 6
(4,351 Views)
Yeah... That does the trick. Thanks!!
0 Kudos
Message 6 of 6
(4,351 Views)