Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scheduled task properties
#1
I understand that QM-MyMacros-All Programs list gives under the "Trigger" column qm items which are scheduled tasks. However, when using qmitem to obtain the macro's properties no trigger is attributed to a scheduled macro (q.ttype=0). Is there another way to find out whether a macro is scheduled? Let me add that i=GetScheduledTaskStatus("QM - ....") works to this end, but I am not sure whether there exists a simpler way, namely through qmitem.

Thanks in advance.
#2
You can get QM scheduled macro trigger only through ITaskScheduler and related COM interfaces, like GetScheduledTaskStatus does.

If only need to know whether a macro is scheduled:
Macro Macro1381
Code:
Copy      Help
str macro="Macro1380"
if(dir(_s.from("$windows$\Tasks\QM - " macro ".job")))
,out "%s is scheduled" macro
#3
Many thanks, SImos.


Forum Jump:


Users browsing this thread: 1 Guest(s)