Sleepmodus PC and timerevents.
Posted: Thu May 11, 2023 5:55 am
Hi,
In our application we have some timers to do different kind of calculations.
When a user don't close our application and the PC comes into sleep modus after some hours this can cause an error.
The timerevent is starting a function which tries to open a dbf file. Because of the sleepmodus of the PC an error returns. In the morning the user hits a key on his keyboard and sees the error.
I can solve this with 'Begin Sequence...' but I was wondering if there is a way to detect if a PC is in sleepmodus? Or if you can 'awake' the PC?
In our application we have some timers to do different kind of calculations.
When a user don't close our application and the PC comes into sleep modus after some hours this can cause an error.
The timerevent is starting a function which tries to open a dbf file. Because of the sleepmodus of the PC an error returns. In the morning the user hits a key on his keyboard and sees the error.
I can solve this with 'Begin Sequence...' but I was wondering if there is a way to detect if a PC is in sleepmodus? Or if you can 'awake' the PC?