preventing system standby/hibernate from within Winforms app
-
I have developed a winforms app running on Windows XP on a Wyseterm S90, which needs to be running constantly to register cardswipes from a remote device (connected via serial over cat5) and display on a remote monitor (vga over cat5). Everything runs sweetly up until the point that the S90 terminal decides that as it hasn't had a mouse movement or keypress recently, and flips the monitor into standby. So far I have: Checked the power management and screensaver settings - both set to permanently on :(( Checked the group policy for the account logged into the device :(( Added some code to "jiggle" the mouse by a pixel every other second, via both Cursor.Position and OnMouseMove :(( Nothing seems to persuade the device to stay awake, and I'm almost out of letters to assign to my cunning plans. Can anyone suggest any more alternatives? Is there a SystemEvents event that I can catch and/or trigger to keep the little blighter alive? Thanks in advance, Al
-
I have developed a winforms app running on Windows XP on a Wyseterm S90, which needs to be running constantly to register cardswipes from a remote device (connected via serial over cat5) and display on a remote monitor (vga over cat5). Everything runs sweetly up until the point that the S90 terminal decides that as it hasn't had a mouse movement or keypress recently, and flips the monitor into standby. So far I have: Checked the power management and screensaver settings - both set to permanently on :(( Checked the group policy for the account logged into the device :(( Added some code to "jiggle" the mouse by a pixel every other second, via both Cursor.Position and OnMouseMove :(( Nothing seems to persuade the device to stay awake, and I'm almost out of letters to assign to my cunning plans. Can anyone suggest any more alternatives? Is there a SystemEvents event that I can catch and/or trigger to keep the little blighter alive? Thanks in advance, Al
The last two posts on this page[^] may help.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia) -
The last two posts on this page[^] may help.
Dave
BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)Thanks for this Dave - it definitely seems to be pointing in the right direction.