Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Detecting windows shutdown event
#1
Hi, I probably have a tricky question here. I'd like to know if there's a way in python to detect (maybe using an infinite loop in a script run in background) if windows is shutting down, does anyone know how to do this?
Quote
#2
other than blue screen of death?
Windows has a way of exploding.
Microsoft has a blog on this here: https://social.msdn.microsoft.com/Forums...rplanguage
Quote
#3
I read the post you linked, but I don't need to interrupt shutdown process, I essentially want to execute a script when the shutdown button is pressed (not the physical one) and make sure that it execute correctly.
Quote
#4
Quote:I'd like to know if there's a way in python to detect (maybe using an infinite loop in a script run in background) if windows is shutting dow
The first reply explains on URL I provided: 'how to intercept the shutdown command.'
you don't have to use the code verbatim, just use the 'Detect' part!!!
Quote
#5
It looks like you could create a batch file to run your script on Windows shutdown.

Excecute code on Windows shutdown
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Detecting String Elements in a List within Given Message Redicebergz 6 597 Mar-19-2019, 03:12 PM
Last Post: buran
  Detecting if image matches another kainev 2 474 Dec-02-2018, 02:00 PM
Last Post: kainev
  Detecting file extensions ellipsis 1 492 Nov-15-2018, 07:44 AM
Last Post: buran
  detecting mouse not working TheNumericDolfin 6 739 Aug-23-2018, 01:34 AM
Last Post: Windspar
  Detecting Windows System Sounds? crash2720 1 852 Jan-23-2018, 07:08 PM
Last Post: Larz60+
  Shutdown from remote trough Android andrea1980345 6 2,763 Nov-15-2016, 10:17 PM
Last Post: andrea1980345

Forum Jump:


Users browsing this thread: 1 Guest(s)