Jump to content

Would you like to see a brushed up Task Scheduler UDF (inlcuding help files, examples ...)?  

39 members have voted

  1. 1. Would you like to see such a brushed up UDF?

    • Yes
    • Don't mind
    • Maybe later
      0
    • No
      0


Recommended Posts

Posted

When a function creates an object I always return the object in my UDFs. So the user can modify the object to his liking after it was created or pass it to another function (e.g. create mail item and call the function to add recipients and attachments to  this mail object).
A check for existance always returns T/F to easily use it in a condition:

If Not _TS_FolderExists("\Test") Then 
    $oFolder = _TS_FolderCreate($oService, "\Test")
EndIf

If you like I can modify functions so they accept a path as a string or folder object.

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Alpha version 0.4.0.0 released

Changelog can be found on the download page and the history in the ZIP file.

For download please see my signature below

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Looks interesting - MS provides this information here: https://docs.microsoft.com/de-de/windows/win32/taskschd/task-scheduler-error-and-success-constants
At the moment I'm more interested in the errors I get when something went wrong while creating the task.

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted (edited)

Hello All!

Wrappers for the TasKScheduler UDF should reduce complexity to create a task. Microsoft offers too many properties of which only a few are needed.
The minimum properties needed to successfully define a task are still too many for a single wrapper and depend on the type of task you indend to create.

I now think about splitting the task into smaller chunks:

  • _TS_Wrapper_TaskCreate: Create task and set Registrationinfo (Objects: Task, Definition, RegistrationInfo)
  • _TS_Wrapper_PrincipalSet: Security credentials (Objects: Principal)
  • _TS_Wrapper_SettingsSet: settings that the Task Scheduler service uses to perform the task (Objects: Settings, IdleSettings, NetworkSettings)
  • _TS_Wrapper_TriggerCreate: Trigger to start a task and define the repetition frequency (Objects: Trigger, Repetition)
  • _TS_Wrapper_ActionCreate: Action execute when the task gets started (Objects: Action)
  • _TS_TaskRegister: Finish and register the task

This functions will only accept the mainly used properties. if you need to add properties you can call _TS_TaskPropertiesSet at any time.

What do you think?
Comments are welcome ;)

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

+1 This is what I'm excited for! :D I tried using the current version but I didn't know enough of the valid values for the properties

(P.S. I think you meant "into smaller chunks")

 

All my code provided is Public Domain... but it may not work. ;) Use it, change it, break it, whatever you want.

  Reveal hidden contents
Posted
  On 9/9/2019 at 12:32 PM, seadoggie01 said:

but I didn't know enough of the valid values for the properties

Expand  

The wiki will have a section referring to the relevant MS documentation.

 

  On 9/9/2019 at 12:32 PM, seadoggie01 said:

(P.S. I think you meant "into smaller chunks")

Expand  

I understand. That's how you figured out that I'm no native speaker 😂

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Alpha version 0.5.0.0 released

Changelog can be found on the download page and the history in the ZIP file.

For download please see my signature below.

I think this will be the last Alpha version as I got everything working so far.

Please play with this version and tell me what doesn't work or is missing!

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

How do you like the latest version of the UDF?
Has anyone already played with the UDF?
Any questions, suggestions?

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Version 0.6.0.0 released

Changelog can be found on the download page and the history in the ZIP file.

For download please see my signature below.

Please play with this version and tell me what doesn't work or is missing!

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted
  On 8/31/2019 at 9:04 AM, mLipok said:

 

:welcome: to the English AutoIt forum  ... Lieber Professor

Expand  

 

  On 9/3/2019 at 1:54 PM, AdamUL said:

@Professor_Bernd Here are some examples of _TS_Open that I used to connect to the different computers.  

Expand  

Thank you guys for the warm welcome and the call examples.

I wanted to thank you for a long time, but there was always so much going on here. Now it is quieter and I seize the opportunity. Thank you very much, this forum is the best (after the German one). 😉

Posted

Version 0.7.0.0 released

Changelog can be found on the download page and the history in the ZIP file.

For download please see my signature below.

Please play with this version and tell me what doesn't work or is missing!

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Will test till week 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted (edited)

Version 0.8.0.0 released

Changelog can be found on the download page and the history in the ZIP file.

For download please see my signature below.

Please play with this version and tell me what doesn't work or is missing!

Edited by water

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

 

Wow, water! Excelente work!


I can only be astonished when I consider that I have only asked for an easier way to create a task in Windows task planning via script.


Admirable! When I now look at what you have already achieved, my head buzzes. This has become such a complex project, with many functions, very cleanly packed in scripts, with html help and even a wiki! Awesome what you have created! (I have to stop now, otherwise I can't get out of my amazement anymore.) :)


Do I dare again to ask for a "simple" possibility for anything? :huh2: ... Yes, I do. I ask again and again, that's how I am. And as for you: Hats off!  :thumbsup:  You are the best water I know! :P


Translated with www.DeepL.com/Translator

Posted

Reply can be found on the German forum :)

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

Version 0.9.0.0 released

Changelog can be found on the download page and the history in the ZIP file.

For download please see my signature below.

Please play with this version and tell me what doesn't work or is missing!

My UDFs and Tutorials:

  Reveal hidden contents

 

Posted

history file have a bug ??
 

2019-03-28 - Version 0.1.0.0 - INITIAL RELEASE

Should this be:
 

2019-07-28 - Version 0.1.0.0 - INITIAL RELEASE

??

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Fixed ;)

My UDFs and Tutorials:

  Reveal hidden contents

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...