What's new in version 3.7a

A new function has been added:

The minor fixes/enhancements included in version 3.7a are listed below:

 

What's new in version 3.7

FTP functions are now available :

 

Windows 7 is supported, see Windows 7 topic for the limitations.

Windows 2008 Server is supported, see Windows 2008 topic for the limitations.

Guidelines to automatize tasks under a x64 Windows are given in Windows x64 topic.

 

The minor fixes/enhancements included in version 3.7 are listed below:

 

 

 

What's new in version 3.6

A debugger is introduced in version 3.6 (not available in WinTask Lite). WinTask Full version provides a script debugger as an aid in developing scripts. Using WinTask Debug mode, you can halt the script execution at a certain line, with the Editor showing the line in question, display the value of variables and then resume execution till the next line you have specified.

All the features of WinTask debugger can be accessed from the new Debug main menu option in the WinTask Editor window. A Debug toolbar is also provided that you can display selecting View/Debug toolbar menu option.

To learn how to use WinTask debugger, look at those topics:

Under Vista and even if Internet Explorer 7 or 8 is in Protected Mode, the IE7/IE8 menu options can be recorded and replayed.

Internet Explorer 8 is now supported under Vista.

The minor fixes/enhancements included in version 3.6 are listed below:

 

What's new in version 3.5b

A new function has been added:

The InWindowAnyInstance keyword has been added for Synchronization on Window : the pause is done then for the specified window, whatever instance it has. This new keyword allows to deal more easily with Internet Explorer pop-up windows. The same keyword can be used too in OnAction Window (OnAction is not available in WinTask Lite).

The keyword Immediate can replace the Forced keyword in CloseWindow to close immediately the specified window.

When you compile a script, errors and warnings are displayed in the Output window of the Editor. It is now possible to display only the errors (and not the warnings) by checking the checkbox Suppress compiler warnings in the Configure Run dialog box (Configure/Run menu).

MoveWindow and SizeWindow accept now coordinates covering the multiple monitors desktop area. So a script can now launch an application and move it to a second monitor. Note that Recording mode generates a lot of intermediate lines when you record a window move, so edit the script and just keep the first one and the last one.

The minor fixes included in version 3.5b are listed below:

 

What's new in version 3.5a

Three new functions have been added:

The system variable #HTMLPosRetry has been added. It checks #HTMLPosRetry times that the specified HTML element has the same coordinates before using it.

Scheduler e-mail feature allows now Secure connection for public mail server (such as gmail).

The OCR functions remembers now the Language used.

File/Print Preview menu in WinTask Editor has been temporarily disabled due to a Windows crash it generates.

 

The minor fixes included in version 3.5a are listed below:

 

What's new in version 3.5

Three new OCR functions have been added (not available in WinTask Lite):

 

How works OCR: WinTask can now use two different OCR engines. Our internal one is delivered with our software but is not accurate when a big rectangle has to be OCRized. All our OCR functions can use now the OCR engine delivered with Microsoft Office 2003 or 2007. When an OCR function is called, WinTask checks first if a UseOCREngine line exists in the script above the call. If such a line is there, the OCR function uses the specified OCR engine. If no UseOCREngine is used in the script, the OCR functions use our internal OCR engine.

If you have Office 2003 or 2007 and do not know if Office OCR engine is installed on your PC, you can look at How to install Office OCR engine topic.

 

The new Encrypt function encrypts a string (not available in WinTask Lite).

An additional optional parameter, a timeout, has been added to MsgBox function: if after the specified timeout, no button has been clicked, the msgbox dialog box vanishes.

MsgFrame function has been redrawn in order to display a small rectangle around the displayed text instead of a blue empty title.

ExistHTMLElement can now test too if a Table exists or not.

 

WinTask 3.5 had been built with a new version of InstallShield, a new version of the Compiler and a new version of Visual Studio. Those new versions have needed a re-writing of string management, and impacted External function. And too:
VERY IMPORTANT: if you want to run scripts built with previous versions of WinTask, you have to recompile them using WinTask 3.5 version.

 

The minor fixes included in version 3.5 are listed below:

 

 

What's new in version 3.4b

Functions managing XML files have been added (not available in WinTask Lite):

 

GetPageSource$ could not retrieve the source of frames when the page was including frames, the new function GetFrameSource$ retrieves the source of the specified frame. The function GetFrameSource$ is not available in WinTask Lite.

 

The minor fixes included in version 3.4b are listed below:

 

Finally, the possible error codes for all the functions managed by #IgnoreErrors are now listed under Language reference chapter, Error codes list topic. For the functions which in case of an error does not stop execution when #IgnoreErrors=0, their possible return codes are still listed in their individual help topic.

 

What's new in version 3.4a

Microsoft Windows Vista is now supported.

The following Wintask features are not currently supported in the Windows Vista environment:

 

A new WinTask Service (WinTaskAdmin service) has been added which is started when the PC starts. This service is used to allow the Services functions (StartService, StopService, IsServiceStarted) and the Registry functions to work without full admin rights as Vista does not give full admin rights even when you are the local admin of the PC. This new service is too used by GetCPULoad and GetProcessCPULoad functions.

 

Those functions have been added in version 3.4:

 
SplitIntoArray function can now return the number of items of the resulting array.

 

What's new in version 3.3

IE7 is now supported, there are a lot of differences with IE6 as even the IE window names have changed. If you receive an HTML descriptor not found error when you run an existing script under IE7, record again the script part which reports an error, it will generate the correct HTML descriptor for IE7.

Those functions have been added:

Three string functions have been added:

 

MsgFrame and MsgFrameTitle functions have new parameters to display the message in different parts of the screen. A wizard has been added to generate easily the MsgFrame/MsgFrameTitle syntax - you can access it by double clicking the function name in Language window (click Language icon in WinTask Editor toolbar).

 

Scheduler (not available in WinTask Lite) can now notify by email when a scheduled task did not run successfully. A new Email notification Tab has been added for this option. If a Policy screen is displayed when the user logs, Scheduler is now able to click automatically the OK button on this screen.

 

The list of more recent files opened in Editor shows up to 9 scripts (instead of 4).

 

In version 3.3a, 3 new functions have been added:

 

What's new in version 3.2

WinTask supports now Windows 64-bits for applications running in the 32 bits kernel.

A Pause on OCR text has been added (not available in WinTask Lite) : you can access this new synchronization by menu Insert/Synchronization/On OCR text (or Pause OCR text icon in the Editor toolbar). It allows to pause until a text captured as an image is displayed at execution.

A Capture wizard has been added : you can access it by menu Start/Capture wizard (or Capture icon in the Editor toolbar). It generates the correct lines in the script for the Capture you want to achieve. From the long captured string, it's possible to extract only a part of it using ExtractBetween$ function. This new function is generated automatically through the Capture wizard or you can invoke it directly as any WinTask function.

For beginners, a Your first script wizard has been added. By default, this wizard is loaded when you open WinTask. If you don't want anymore this wizard, just check the checkbox Don't show this wizard anymore and click Close button, you will come back to the usual Editor window. At any time, you can recall the script wizard by menu Start/New Script wizard.

Trim$ function is added, it deletes the leading and trailing spaces from a string.

HardCopy function is added (not available in WinTask Lite), it generates a screenshot file when invoked.

GetPageSource$ (not available in WinTask Lite) returns in just one function the source code of the current web page. Using it in conjunction with ExtractBetween$ new function allows to extract any data from a web site.

CopyLink function (not available in WinTask Lite) returns the actual link of a clickable link (simulates a Copy shortcut on a clickable link).

We changed some keyboard shorcuts to follow the Microsoft usual ones, so now Control+S saves a script, Control+P prints a script (but so note that it's now Control+E to call Spy).

A Go to line option (shortcut Control+G) has been added in Edit menu, you can go directly to the specified line in the script.

SetReadPos and EOF functions have been fixed to support Unicode files.

 

What's new in version 3.1

Functions for encrypting passwords are added in this version (Not available in WinTask Lite). A new menu option Insert/encrypted string opens the Password encryption dialog box. In this dialog box, you type the password string, click Generate button for encrypting the string and Paste into the script button inserts within the script the encrypted string.

Encrypted strings can be used in 3 new functions:

WriteEditEncrypted is automatically generated in Recording mode for HTML fields seen as password type. The two other encryption functions can be generated using their wizard (in Language window, check Show wizard checkbox and double click the desired function).

 

Two functions are added to the ones existing dealing with windows handles:

 

New columns are added to Scheduler main window:

 

Those bugs have been corrected:

 

In version 3.1a, HTML descriptors now support SPAN, DIV and TD tags.

OverHTMLElement function has been added for a correct recording/replay of dynamic menus (menu options which are displayed only when the mouse is on the main menu).

 

What's new in version 3.0

Main modification in version 3.0 is the support of Unicode. All the internal code has been rewritten for a Unicode internal support. From the user point of view, especially English users, nothing changes and they can work as in version 2.6 ; their scripts will still be created using ANSI coding unless specified when saving a script.

ATTENTION: as Windows 98/ME does not support Unicode, WinTask 3.0 does not work under Windows 98/ME. The last version working under 98/ME is WinTask 2.6.

For users needing Unicode support due to a non-English alphabet or not-European alphabet, they can now create scripts as Unicode and so record and replay/capture non-English or not-European characters. Telling that a new script must use Unicode is done within Configure Recording dialog box.
Before writing to a Unicode file which is not yet created, you have to create it first using CreateUnicode function. CreateUnicodeFile function has been added to create an empty Unicode file ; then Write function will know that it has to write in this new file using Unicode encoding.

Important modifications have been done too on IDE (our Editor TASKEDIT). They include:

 

Other enhancements are:

 

What's new in version 2.6

Version 2.6 now supports Windows 2003 Server.

The new installation process does not need any more to reboot the PC if you plan to use WinTask Scheduler. You cannot install WinTask Scheduler from a remote PC.

New functions have been added:

 

Spy can be used to truncate window names, and a new Validate button is available to test the truncated name for the specified UseWindow.

A wizard for capturing Web data in an Excel file is added when using Spy on an HTML table.

Tick units are now supported in Pause statements. IMPORTANT : as ticks are now supported, the block
repeat

....
pause x ticks

until ...

will return a compilation error, as the compiler does not know if the until is for the Pause line or for the repeat construction. To correct the compilation error, either move the pause x ticks line at another place than just above the until line, or add an EndPause line such as :

repeat

....
pause x ticks
EndPause

until ...

 

Serial port statements now support COM1 to COM8 (instead of COM1 to COM4).

 

In version 2.6a, the function CheckedHTML has been added which returns the status of a checkbox or a radio button in an HTML form.

And Scheduler can now unlock the screen when a task starts.

 

What's new in version 2.52

If a script fails at execution, after #ExecTimeout seconds, the script specified in #ScriptAfterTimeout$ is launched. This mechanism is useful for cleaning up the environment before re-running a script which has failed.

It is now possible to specify system variables values when calling TaskExec for running a script. And there is a silent mode: in case of any error, TaskExec does not display any error message, it just returns a non-zero return code.

A new system variable #HideTrayIcon hides the runtime icon in system tray if initialized to 1.

A general error handling mechanism has been implemented through the syntax OnAction Error: at execution, if an error occurs, the routine defined in the OnAction Error is called. New system variables are available when an error triggers this routine OnAction Error: #ErrorCode, #ErrorFunction$, #ErrorMsg$, #ErrorScript$, #LastErrorLine.

 

What's new in version 2.51

WinTask now includes a COM library, so you can call many WinTask functions from scripting languages. The help for this new feature dedicated to advanced programmers is in the Help menu under "WinTask as a COM object...".

 

Some functions have been added or modified for Web automation:

 

Compiler limits have been extended in WinTask Pro version (not in WinTask Lite).

The word PauseTrue is accepted by the compiler and so can replace the previous word PauseOK.

The wizard "Intermediate" mode (menu Configure/Wizard) is now displayed by default: a small toolbar is displayed during Recording mode, and so by a simple click, you can insert synchronizations or stop Recording mode. To deactivate this "Intermediate" mode, select menu Configure/Wizard and check None.

A new feature is available while Recording: you can now insert lines into the script while you record. By pressing a key (Alt+i by default) or by clicking an icon, the Insert lines dialog box is displayed, you type the lines you want, and when you resume Recording mode, the lines are inserted automatically into the script. See Insert lines into the script.

A lot of new complex script examples are now listed under the folder advanced_script_examples (under WinTask main folder).

Scheduler has been enhanced and can now start a new desktop even if screen saver is activated. When a script fails at execution when started by the Scheduler, an error 21 is still reported but the exact error message is also reported in the system log.

 

What's new in version 2.5

This new version merges the two Recording modes: Web Recording mode and normal Recording mode (Internet Explorer 5.5 or above is required). So now, you can automate simultaneously actions on standard Windows applications and actions on Web pages. An obvious automation process could be a data retrieval from a Web page and an insertion in an Excel worksheet. See Web, how to capture data for a step-by-step example.

A ClickHTMLElement function has been added which simulates a mouse click on an HTML Web object. It uses a HTML descriptor for specifying uniquely on the Web page the HTML element to be clicked. This descriptor is generated automatically in Recording mode or you can use Spy for finding it. A WriteHTML function has also been added for simulating a user typing text in a Web form input field. The SelectHTMLItem function selects an item in a Combobox/Listbox within a Web page.

 

What's new in version 2.42

A new Web Spy has been added for specifying HTML elements and two capture functions are now available: CaptureHTML and CaptureTableHTML. Internet Explorer 5.5 or above is required for these new features.

The new function UsePage specifies the Web page where the captures must be done and the system variable #UsePageExact specifies if at replay, only the Web page with exactly the same page title must be used or if a Web page starting with the same title can be used.

In order to find any HTML element on a Web page, an HTML descriptor is now available. As usual, it can be generated automatically by using Spy component.

 

What's new in version 2.41

Version 2.41 now supports Windows XP.

Four new functions for measuring response times have been added: StartTimer, StopTimer, ResetTimer, and Timer.

Realtime Recording mode is now available.

WinTask Scheduler includes a holiday list valid for all the scheduled tasks.

Some performance problems have been corrected in loops with more than 1000 captures.

The stack size has been increased to 100 K.

Several help topics have been added: global and local variables, parameters passed from one script to another, Scheduler under Windows 98 or ME, Controlling the speed of playback, running a script by pressing a key, ... and some more script examples are available, for instance a toolkit for Web automation.

 

What's new in version 2.4

Three changes have been made in WinTask Editor:

  1. A new menu option in order to start Recording mode by launching first a program ; it creates a Shell statement for launching a program directly instead of recording Windows menu Start (which is not reliable).

  2. A new synchronization, Synchronization on window: with such a synchronization, the script resumes its execution only when a specific window appears or disappears. Using the OnAction statement (not available in WinTask Lite), a specific action can be performed every time a specific window is displayed (for instance to manage error message windows).

  3. A wizard is now available for each individual statement.

 

Many new functions have been added:

The algorithm for finding the proper window at execution has been slightly modified as explained in Window name.

An optional parameter, NoActivate, can be used with Sendkeys. If NoActivate is used, the specified keystrokes are sent without verifying to which window they are sent.

Finally, FileCopy has been improved in order to allow locked files to be replaced at next reboot, which is sometimes necessary when you automate a software installation.

NT/2000/XP/2003 UPGRADE NOTE: If you are upgrading from a previous version and running the NT/2000/XP/2003 Scheduler from WinTask, please un-install Wintask through the Control Panel, THEN REBOOT, then re-install the new version AND REBOOT. Your scripts and tasks will be preserved, although it is a good practice to recompile your scripts with the new version.

Please send any enhancement requests for the next version of WinTask to info@wintask.com