Hi,

I've created a stopwatch using this (https://www.extendoffice.com/documen...stopwatch.html) tutorial and it works perfectly.
I would like to add another function to this.
Is it possible to automatically stop the timer when the screen locks and start the timer automatically when we unlock the computer?

Regards,
Vivek Nath