Is there any way to trigger some task from task scheduler as interactive task. Like if I am logged in and have a task that runs only if user is logged in than my 2nd application from code I send interactive commands like enter but it doesn't work if my windows is locked and task scheduler runs a application than it will not able to get user interactive command from my 2nd application .
I tried to create task in scheduler using Users group and run task weather user logged in or not but nothing works when windows get locked.