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.