I'm trying to launch a application with a UI at login on windows, using the task scheduler. I've came across some inconsistencies with this, sometimes the UI will launch properly, other time it wouldn't. By adding a delay to the task, I can safely make it executed ON MY COMPUTER.
How can I ensure this correct behavior on any given computer? Is it something to do with Windows UI not being "ready" or something like this ?
Any resource would be appreciated !