I have a small application that most of the time have an action behind a Start-button that should be triggered from the commandline parameter /AUTORUN. If that parameter is
An easy way would be a timer, with an event like this:
begin Timer1.Enabled := False; if FindCmdLineSwitch('AUTORUN') then btnStart.Click; end;
And an interval of a few thousand milliseconds.