Page 1 of 1

ttAtLogon ends us as ttAtStartup?

Posted: Tue Jan 06, 2009 9:03 pm
by desjardd
Hello,
When I create a task using
l_MyTask.Triggers.Add(ttAtLogon);

The setting of Windows is At System Startup

Has anyone using version 2.0 experienced this issue (I am on Windows XP Pro EN SP3).

Thanks!

Posted: Wed Jan 07, 2009 7:00 am
by isiticov
Hello,

Yes, there there was an error in TriggerType declaration. The fix will be available in next update. To fix this on you side you can just do the following:
1. Open saTask.pas unit
2. Find the following lines:

TTriggerType = (ttOnce, ttDaily, ttWeekly, ttMonthlyDate, ttMonthlyDow,
ttAtStartup, ttAtLogon, ttOnIdle, ttOnConnect,
ttOnDisconnect, ttOnLock, ttOnUnlock, ttUnknown);

3 Change them to:

TTriggerType = (ttOnce, ttDaily, ttWeekly, ttMonthlyDate, ttMonthlyDow,
ttOnIdle, ttAtStartup, ttAtLogon, ttOnConnect,
ttOnDisconnect, ttOnLock, ttOnUnlock, ttUnknown);

4. Re-build your project with new modifications.

Posted: Thu Jan 08, 2009 7:23 pm
by desjardd
Hello,
That solved it, thanks!

Daniel