Alternative Input Device(Midi) doesn't prevent Screen Saver in Winforms application

Posted by DTig on Stack Overflow See other posts from Stack Overflow or by DTig
Published on 2010-03-26T00:27:19Z Indexed on 2010/03/26 0:33 UTC
Read the original article Hit count: 515

Filed under:
|
|
|

I have developed a c# winforms application whereby the user is providing input via a midi connected device. The user will go for long periods without using the keyboard or mouse.

When I receive a midi message is there anything I can do to "tell" the system that this counts as user activity (ie key press). I don't want the screen saver or time lockouts to occur, if they are actively using the midi device.

I think my request is different than other requests I've seen because they want to disable screen savers for the life of their application whereby I just want midi input I receive to count as user interactivity.

Is there something I can call when I receive midi input to signify to the system user activity?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about screensaver