PlanoTse Handbook for Job Search Automation/Execution Page


 * Chapter 4

Generated Scripts
As shown in the demo steps of the previous page, when you press the Generate button on the Generation Page in the Automation Wizard, PlanoTse generates three data items to hold three different units of source code in PlanoTseScript:


 * The master script
 * [Script 12321 Master Script] as an example
 * Two worker scripts:
 * [Quest 12317 Worker Task 1] as an example
 * [Quest 12318 Worker Task 2] as an example

By default, the item type for the holder of master script is SCRIPT. The item type for its workers can be specified on the Generation Page by the user. The default is QUEST.

Sample Master Script
The generated master script, Script 12321, has the following source code in PlanoTseScript:

When you press the Run button on the Generation Page of the Automation Wizard, you run the source code of the master script. The code, as shown in the above box, will do the following:


 * 1) Go to the MP1 page, which is the execution page (Line M1 Statement 1).
 * 2) Clear the node editor in the Automation Wizard (Line M1 Statement 2).
 * 3) Create a button called Quest 12317 Worker Task 1 (Line M2 Statement 1).
 * 4) Place the source code, run Quest 12317 Worker Task 1, in the Task-1 button (Line M2 Statement 2).
 * 5) Create a button called Quest 12318 Worker Task 2 (Line M3Statement 1).
 * 6) Place the source code, run Quest 12318 Worker Task 1, in the Task-1 button (Line M3 Statement 2).
 * 7) Activate the node editor (Line M4).

The above steps will produce a user interface as shown in the following image:



One way to access and make changes to the source code in a master script such as Script 12321 is to do the following steps on the main window:
 * 1) Select the menu [View &raquo; Code & Run]
 * 2) Enter the following code in the box: { edit script 12321; }
 * 3) Press the button [Run PlanoTseScript].
 * 4) Press the Steps button to access the source code.

Source Code for Worker 1
When you press the Worker-1 button, you execute the following source code:

To access this source code, hold the SHIFT key down while clicking on the button with your mouse.

To access the source code that lets the button know that to do, hold the Ctrl key down while clicking on the button with your mouse.

Source Code for Worker 2
Because we declared in Browser Count that 5 is the maximum number of browser session this computer can launch at once, Worker 2 source code carries only five of the 6 generated web search commands. The last one is thus carried by Worker 2. This is why Worker 2 has only 1 web search to do.