Jump to content
JohnLM

Is it possible to add a time stamp in apps caption after Windows wake from sleep mode? [solved]

Recommended Posts

Posted (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 by JohnLM

Share this post


Link to post

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×