My Windows 7 system is set to lock the screen after 20 minutes of inactivity (this is a workplace-enforced policy; I cannot change this setting).
When I am using the keyboard/mouse, Windows treats them as user inputs, and thus the screen remains unlocked. However, when I am playing any game using only joystick, Windows treats that as no activity, and thus the screen gets locked after the timeout.
Is there a way to prevent screen lock while using joystick-based games?
As a workaround, I am currently playing some random video (muted) in the background using VLC, which prevents screen lock. But there should be a better way to handle this problem...
I could possibly write a script, which would simulate some keystrokes like {NUMLOCK}{NUMLOCK} via sendkeys. However, there is always a possibility of an unintended side-effect of this, such as preventing me from using these keys in my game options.