Pause until any key or mouse button is pressed , or mouse move.

Recommended Posts

Pause until any key or mouse button is pressed , or mouse move. Just like the screen saver, if any key or button is pressed, or mouse move detected, a gui will show up and ask for password. what I want to know is how to detect key or button is pressed, or mouse move(when the gui is hiden or disabled). Thanks.