0

I would like to run a python script in the background. The script have two functions. One function needs to keep run when user logged out but another need to pause when logged out.

I would like to know any way that I could check if current PC is logged out and pause the second function.

I could set a timer to check current status of window pc. But don't know how could I get the current login status.

I am using window 10.

falsealarm
  • 21
  • 2
  • Try looking at [How can i check on which user is currently logged in on the computer with python?](https://stackoverflow.com/questions/42376345/how-can-i-check-which-user-is-currently-logged-in-on-the-computer-with-python) – Alias Cartellano Oct 07 '22 at 19:34

0 Answers0