Page 1 of 1

Need help!!! Could not enable/disable a trigger/task

Posted: Thu Nov 29, 2007 7:43 am
by chula
Any thing wrong with these codes?

with TaskItem do
begin
Activate;
If Triggers.Count> 0 then Triggers[0].Enabled := not Triggers[0].Enabled;
Triggers.UpdateTriggers;
Deactivate(true);
end;

Nothing changed to the task :shock:

I also tried to add/remove tfDisabled flag of a taskitem to see if I could the tricks, also no luck.

Please help :)

Posted: Thu Nov 29, 2007 10:46 am
by isiticov
Does the Demo application work fine? (There is Disable Selected item in Quick Demos tool-button).
If it doesn't then I guess this is a due to Windows Vista. Version 2.0 will handle this.

Posted: Wed Jan 02, 2008 4:42 am
by chula
On XP, disable/enable really work.

But on Vista, disable/enable "only seems" working, Next Run says Never, Status says Disable. But the task really still run.

I have not test 2.0 yet cuz Demo 2.0 not working.