My app want to keep backlight on ,while sometimes also need turn off backlight, I used " TRawEvent event; event.Set(TRawEvent::EActive); UserSvr::AddEvent(event);" to keep light on, and when I need turn if off, I'll shade these code, but the problem is when I shade the code, it will active screensaver and sent my app to background, that's what I avoid(I need my app foreground if not press anykey or no event comes)
Pls tell me how to avoid screensaver, or there is other way to keep/turn off backlight?(User::ResetInactivityTime() is not work for my app either)
Thanks for your help!