Scenario
I wanted to execute an interactive program (.bat, with some mouse clicks) at 11 p.m. everyday as a particular user. Known that there will be no user logged in at that moment. I am trying to use python (pynput) and windows task scheduler to achieve this.
Blockers
I know how to schedule the python script. Yet in case I am not logged in with that particular account at 11 p.m., I do not have an interactive desktop to perform the tasks.
I learnt some alternatives from other posts, but those are not actually what I wanted to achieve:
- stay logged in with that particular account
- use something like autologon to auto login after starting the PC and schedule a reboot
I want to task to be able to run even when the account is not signed in and I do not want to reboot my machine.
I noticed that a GUI interactive task can only run when "Run only when user is logged on" was selected. So I guess I may need to achieve auto login at 11 p.m. in order to execute the task.
Please correct me if I misunderstood anything. Any help would be appreciated.