In Advanced Task Scheduler Professional and Network starting from version 4.3 you can automate web browsing: clicking a button, entering data in a text box etc.
The automation is performed by executing series of commands against the document opened in the Internet Explorer web browser. Commands allow you to interact with controls like links, buttons, radios, checkbox, text fields etc. In order to interact with a control it has to be found in the document. A control can be found by matching one of its attributes like id, name, class etc.
An IE Automation command has four parts: Command – command name. Argument – name of an attrubute that will be used to find the control in the HTML document. Value – value of the attrubute in the Argument. Parameter – additional parameter, it is different for different commands.
You can find detailed commands and their arguments explanation in the IE Automation topic in the Online Manual.
The examples below demonstrate how to use Argument and Value in IE Automation commands to find controls in HTML documents with HTML code snippets.
This command navigates to the given URL and waits for it to be loaded completely. Optionally, the URL can be saved to the file specified in the Parameter instead of being opened in the browser.
This command finds the link with the given text and clicks it. It will find a link represented by the HTML code like this:
<a href=”index2.php”>Go Test</a>
This command finds the text box with the given name and changes its text to “admin”. It will find a text box represented by the HTML code like this:
<input type=”input” name=”username”>
This command finds the button with the given id and clicks it. Optionally, the produced content can be saved to the file specified in the Parameter, this is useful to download auto-generated files. It will find a button represented by the HTML code like this:
In the Options section of the IE Automation shortcut type, you can select the “Show browser window” option. When this option is selected the browser window will appear on the screen and you’ll be able to see how automation commands are being executed.
You can also select the “Do not close browser window when finished” option. This way the browser window will be left opened when the automation commands are finished. You can right-click anywhere on the browser window and select the “View Elements” command from the context menu. This command will show you a list of all elements with their attributes in a separate window.
In Advanced Task Scheduler Professional and Network starting from version 4.3 you can run one or more SQL queries one by one via ODBC data sources.
This way you can execute SQL queries on any database that has its own ODBC driver. Advanced Task Scheduler can access a database by ODBC Data source or by ODBC Connection string.
ODBC Data source
You can create ODBC Data sources in the ODBC Data Source Administrator which is available from the Administrative Tools in Windows Control Panel. Each database has its own ODBC Configuration Wizard depending on its database engine.
In ODBC SQL shortcut type you only need to select the User DSN, System DSN or File DSN from the ODBC Data sources.
ODBC Connection string
The ODBC connection string consists of a set of property names and values separated by semi-colons. Basically, the properies are: the server address, database name, user name and password, but each connection string is different depending on your database engine.
In ODBC SQL shortcut type you need to enter your connection string manually in the Connection string field.
For example, to connect to the Microsoft SQL Server running on a server called ServerName, with Windows Authentication and Database called DatabaseName, you might use a connection string like this:
Note that you’ll also need to select UTF8 charset in the Options section of the ODBC SQL shortcut type properties.
The SQL query is passed to the database driver unmodified in Unicode, however, if the query returns any response such as table rows and fields, the response will be treated as if it was encoded in the character set that is specified in the Options section of the ODBC SQL shortcut type properties.
In Advanced Task Scheduler Professional and Network Edition you can run tasks on holidays, or avoid running tasks on holidays.
If you wish to start a task on either a single holiday or all holidays, you can use the “Run on holiday” schedule type with the “Run on the day of holiday” option.
If you wish to start a task on all days except either a single holiday or all holidays, you can use the “Run on holiday” schedule type with the “Run on all days except holiday” option.
If you wish to start a task on work days only, excluding holidays and non-work days such as Saturday and Sunday, you can use the “Run weekly” schedule type with the “Work days only” option selected.
If you wish to start a task on non-work days only, including holidays and non-work days such as Saturday and Sunday, you can use the “Run weekly” schedule type with the “Non-work days only” option selected.
If you wish to set up work days and holidays, go to the “Holidays” section on the user’s tab of the “Preferences” window.
If you wish to preview days when the task will start in the future, you can use the “View start time” button on the “Schedule” tab of the “Task Properties” window.