Lazarus

Programming => Operating Systems => Windows => Topic started by: eldonfsr on June 03, 2022, 03:26:31 pm

Title: How i can manage taskmanager to schedule app runs applications
Post by: eldonfsr on June 03, 2022, 03:26:31 pm
Hi it's possible from app create schedule and add this schedules to taskmanager...

I know i can create that on task manager....
 
Title: Re: How i can manage taskmanager to schedule app runs applications
Post by: Leledumbo on June 06, 2022, 06:16:30 pm
I believe the API is exposed in Windows unit, or one of the winunits-xxx packages. Unfortunately, unless someone else already does so, you have to read and understand in C++ as that's what MS used in their documentation. Starting page is here (https://docs.microsoft.com/en-us/windows/win32/taskschd/task-scheduler-start-page), while an example is here (https://docs.microsoft.com/en-us/windows/win32/taskschd/time-trigger-example--c---), you can just replace the notepad with whatever you want and change the schedule accordingly.
Title: Re: How i can manage taskmanager to schedule app runs applications
Post by: Thaddy on June 06, 2022, 08:59:14 pm
C++
No it is plain C.
Title: Re: How i can manage taskmanager to schedule app runs applications
Post by: bobby100 on June 06, 2022, 10:01:21 pm
https://forum.lazarus.freepascal.org/index.php?topic=40821.0

or create XML files for task scheduler and register the task:
https://docs.microsoft.com/en-us/windows/win32/taskschd/time-trigger-example--xml-
Title: Re: How i can manage taskmanager to schedule app runs applications
Post by: Leledumbo on June 13, 2022, 05:01:19 am
C++
No it is plain C.
No, it's a C compliant C++. That's the reason why the documentation mentions C++ consistently instead of C or even C/C++ (well, this one still appears sometimes, but maybe an overlook or old writing).
TinyPortal © 2005-2018