I have a Windows application that when launched with the Task Scheduler on start up does not have focus (i.e. I cannot execute keyboard commands in the application until I click the application into focus). Focus is on the Desktop.
The application is started through Task Scheduler as it required Highest Privileges to launch (bypassing UAC prompt).
There only seems to be third party applications available which support this to switch to the application. I have tried launching a command with a batch file to switch the focus, which has a delayed start, but I haven't been able to find any Windows batch file commands which can switch the focus.