Python Forum
Detecting windows shutdown event
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?
Reply


Messages In This Thread
Detecting windows shutdown event - by riccardoob - Nov-12-2019, 09:49 AM
RE: Detecting windows shutdown event - by Larz60+ - Nov-12-2019, 12:38 PM
RE: Detecting windows shutdown event - by Larz60+ - Nov-12-2019, 04:49 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Help with graceful shutdown of MP thread with asyncio sawtooth500 3 1,273 Jul-03-2024, 05:29 PM
Last Post: sawtooth500
Lightbulb shutdown host from docker container cosmin1805 0 1,801 Nov-27-2022, 06:34 PM
Last Post: cosmin1805
  Os.system("shutdown"); command not found cosmin1805 4 3,439 Nov-13-2022, 02:07 PM
Last Post: cosmin1805
  iterating and detecting the last Skaperen 3 2,000 Oct-01-2022, 05:23 AM
Last Post: Gribouillis
  Detecting float or int in a string Clunk_Head 15 10,557 May-26-2022, 11:39 PM
Last Post: Pedroski55
  module detecting if imported vs not Skaperen 1 2,262 Nov-19-2021, 07:43 AM
Last Post: Yoriz
  detecting a generstor passed to a funtion Skaperen 9 5,437 Sep-23-2021, 01:29 AM
Last Post: Skaperen
  Python BLE Scanner not detecting device alexanderDennisEnviro500 0 2,631 Aug-01-2021, 02:29 AM
Last Post: alexanderDennisEnviro500
  Possible to execute a python script before log off/shutdown with input commands? Kaltex 1 3,243 May-18-2021, 06:31 AM
Last Post: Skaperen
  Detecting power plug Narayan 2 3,823 Aug-01-2020, 04:29 AM
Last Post: bowlofred

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020