Editing Scripts

There are three options for creating Scripts. You may edit the script with either single mehod, or combine three compilation methods in one script.

This article will introduce you to the use of each editing operation feature. Before editing the scripts, let’s check Scripts operation interface is as follows.

Toolbar

New, Save and Load the scripts in this area, and the selected items will be displayed in the editing area below.

Settings

Script setting

Fig. 74 Click【setting】as shown above.

Create a new Script

Click【New】to create a new Script controls. Before refreshing the editing area, the system will ask whether the original editing script should be saved.

Tip

1.Click Cancel to edit to the original script.
2.Click OK to delete the file we are editing.
3.You can also save the edited script and create a new script. In this case, please click Cancel and click Save script.
New Script

Fig. 75 Click【New】as shown above, you will then see a confirmation message.

Import existing scripts

Plese click on ‘Load’, you will now be asked to access a location of your choice and select the file with ‘.bks’ extension.

Load Script

Fig. 76 Click【Load】as shown above, you will then import a edited script.

Save scripts

Click on ‘Save’ icon and choose the location, Once the changes are saved and editor mode is closed, you can execute it by clicking Load Script.

Tip

please note that the correct file name should be named in english and numbers .

Load Script

Fig. 77 Click【Load】as shown above, the script will now be available for use.

Free up memory

Click【Clean】 to release resources which not be used in this script take Import existing scripts as example, before launching the script, we edit the scripts and cause a lot of unused resources.

Error

To refresh the script, click Create a new Script instead of clicking Clean.

Clean Script resouces

Fig. 78 Click【Clean】 to detect unused resources in this script automatically.

Graphical user interface

Click【View】to view the recorded or captured images in this script take Import existing scripts as example as below.

To view Script img.

Fig. 79 Click【View】to show the recorded or captured images in this script.

Executed n times

The loop in the upper toolbar can be set to execute 1, 9999 times or indefinitely.

Loop Script

Fig. 80 Repeat execution 5times.

Editing the scripts

Recording the scripts

Click【Rec.】to start the recording function. All commands includeing mouse moving, clicking and pressing from the top of the script, are recorded until the R-Stp is pressed,

Tip

Two progress bars at the top of the screen are synchronized with execution runtime. Here, you can track the progress at any time.
rec script

Fig. 81 Click【Rec.】to start the Script recording on the top side of your game screen.

Image recognition

Click【Img】to start the image recognition. Left-click and drag to frame the required recognition area. The ‘x’ on a spot of the screen means that the coordinates of the point will be clicked in the script. As long as you need to change x, drag with the right mouse button.

Img Script

Fig. 82 You can see the image recognition function, as illustrated above.

Tip

圖形擷取或錄製後,亦可於已錄製或圖形擷取視窗腳本中增添 函數判斷條件 ,如msleep(),keycode()…等

Img Script

Fig. 83 The image recognition prompts the timer to click on the specified position and timing, and finally refresh the timer.

Editor area

For editing scripts, please visit In-build functions for more basic types of Variables controls and logical operators, etc.

Back to the TOP