JohnLM 14 Posted August 12 (edited) Specs: Delphi XE7, VCL, Win7, sleep mode  I'm not sure this is possible. I've been searching around but don't think my search queries were able to pull results.  I run an app every day and at the app's launch I put a time stamp on the caption bar.  The app is run from my desktop, so it's on the 😄 drive.  Now, I want to leave the app running even when I shut down the computer into sleep mode. And when I wake the computer up from sleep mode, I'd like to have my app know that and put another time stamp on the caption bar. So, says "myapp (1:30pm, 7:15pm).  Is there any way I can let my app know that it came out of sleep mode and at what time I activated or Windows woke up or something?  Edited August 12 by JohnLM Share this post Link to post
Brian Evans 105 Posted August 12 There are events your app can receive.  WM_POWERBROADCAST Messages - Win32 apps | Microsoft Learn WM_POWERBROADCAST message (WinUser.h) - Win32 apps | Microsoft Learn Share this post Link to post
JohnLM 14 Posted August 12 success! After more searching around and reading @Brian Evans's post and links (thanks) and refining my searches further, I found the answer, thanks to Engineer Tips solution. Share this post Link to post