I developed a Delphi application that has one single main form
If the application is started with one parameter, the application "processes" this parameter and do some work.
The processing is started on the OnActivate event of the form
Now I schedule a task (Windows XP) to start that application with one parameter
It is shedule for 0:30 (midnight)
On that day, I login remotely around 11:00 and see the form of the application on the screen, but nothing is "running" (there is a TMemo which displays the execution activity and it is emplty)
I just click on the form and then ... it starts !
That behavior is different if I run the application myself : the form is "auto" activated, which does not seem to be the case when the scheduler starts it
Is it enough if I "force" the form to be active by coding for example in the OnShow event a Form1.Activate ???