Thanks Erel
After some testing I am able to detect that the device woke up.
I got the time down to 100ms and it's pretty accurate on updating the form.
Sometimes it doesn't work at all, I'm guessing because of the current state of my app.
Not a problem, it will get updated in other ways afterwards.
Thanks Again
Quote:
Originally Posted by Erel
When you launch a program that already runs, this program will become active and visible. So I think that this default behavior is exactly what you need.
One possible solution is to use a timer with an interval of about 5 seconds. On each tick compare the current value to the previous one (which was saved in a global variable). If the difference is larger than something like 10 seconds you know that the device was waked up.
|