I've found a way to keep the backlight on and the machine from sleeping which seems to work on all versions of Windows desktop and mobile.
Every 9 seconds (as suggested above), do the following:
keybd_event(VK_F24, 0, KEYEVENTF_KEYUP, 0);
This creates a "virtual" keypress (actually a key release) of a non-existant key and fools the system into thinking that the user is doing it.
Seems to work fine on all devices I've tested.
Larry B.
Every 9 seconds (as suggested above), do the following:
keybd_event(VK_F24, 0, KEYEVENTF_KEYUP, 0);
This creates a "virtual" keypress (actually a key release) of a non-existant key and fools the system into thinking that the user is doing it.
Seems to work fine on all devices I've tested.
Larry B.







Sign In
Create Account


Back to top









