01-04-2010 04:14 PM
We are required to quit LV application upon keyboard or mouse inactivity after a timeout period. I have looked through the windows api in the quest for a the screensaver handler when the screensaver timesout as a possibility but the get/set screensaver only allows to read or write the screensaver timeout period and if the scrrensaver is active. I need to know when the timeout actually happens. Or any other means.
Thanks a lot,
Solved! Go to Solution.
01-04-2010 04:22 PM
The basic event structure has a TIMEOUT event, which will fire if no other event happens for a given interval.
If all your other events fire some other event in this same structure, then the timeout will happen after X mSec of no activity.
Any other event will reset that timer.
Note that you have to have ALL other activity trigger an event in this same structture for this to work.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
01-04-2010 05:26 PM
I figured out a way using the "input device control" vis for keyboard and mouse. Using shift registers, I am able to detect and initialize a counter and timeout when the cumulative time exceeds the inactivity time period required. Thanks for your response anyway.
(I am aware of the event timeout but the top level vi is very complex in nature and was not designed with events).
02-06-2013 05:14 AM