I want to write a small program that given a time (in minutes) as input, sleeps in the background for that time, and then forces a return to the "switch user screen" (equivalent to the Winkey+L combination) or logs off a user (may be another user logged in on the same machine).
What functions or libraries in Python could I use for this?
Edit:
- I prefer just a return to the "Switch User" screen rather than actually logging off
- Perhaps there's a simple Windows command to do this, which I could use
- I have Windows XP if that's relevant