
send a keypress (or emulate keypress)
I need to keep the device alive while running my app; the only way i think of to achieve this is to emulate a keypress (i.e.: send a fake keypress to system) in onmainloop(). for example, i can send a keypress(48), so the system thinks i'm typing and doesn't suspend the device.
BUT i don't see a way to do this, since control functions are read only. There's another way i'm missing? (apart writing a dll, since i'm not able to di it)