LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Conflict between Extended Mouse Events & ScreenSaver

When the active panel within the application has any control with extended mouse events enabled and launches screensaver, this seems to get blocked. The only way to remove it then is by pressing ctrl+alt+del. Does anyone know how to resolve it? (...an API to control screensaver status?)
Image Hosted by ImageShack.us
0 Kudos
Message 1 of 5
(3,297 Views)
Hi xavi,

I attempted to reproduce your issue using a simple application that included extended mouse events. I opened the attached program in CVI and ran it in debug mode (be sure to open your debug output window to see the event-driven messages). I then let my screensaver come on. I was able to wake up my machine and stop the screensaver by shaking my mouse and/or clicking mouse buttons. I would recommend trying this sample program out on your machine to see if the behavior you described still exists. If you are able to stop the screensaver, then I would compare your code with the sample to see if there are any fundamental discrepancies. If it does not stop, then I would check your machine settings and screensaver settings. If possible, could you po
st some more information about what you are trying to do when you use your extended mouse events? Hope this helps. Thanks!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
Message 2 of 5
(3,297 Views)
Thanks for your effort, but i can't run the app because I'm working with an older CVI version (6.0).
The troublesome panel has a table which callback executes one or another function depending on mouse and extended mouse events. This way I can customize row selections.
If I don't disable extended mouse events on panel hide I have the same problem in all app panels.
It hits me... could it be a CVI bug repaired in newest versions?
Image Hosted by ImageShack.us
0 Kudos
Message 3 of 5
(3,297 Views)
Hi xavi,

If you are using CVI v6.0, the error you get is because the user interface file (.uir) created in CVI 7.0 cannot be opened in 6.0. What you can do is open the project in 6.0, remove the uir file, and create a new one. On the new uir, put a canvas control on the front panel, labelled CANVAS, with CanvasEvents as the callback function. Next, add a Quit Button with QuitCallback as the callback function. Save this uir with a different name, and add it to the project. Then, open your debug output window and run the project. It should work now.

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 4 of 5
(3,297 Views)
I've finally found the bug. Your example doesn't cause any problem indeed. I had extended events time interval set to 0.01 sec, so it collapsed other time processes in system because the callback is extensive. Now I've fixed it to 0.05 sec and even though screensaver runs a little slower it doesn't get blocked at all.
Your help has been really useful. Thank you Jeremy.
Image Hosted by ImageShack.us
0 Kudos
Message 5 of 5
(3,297 Views)