Last updated:

Tab “Scripts”#

The “Scripts” tab is a section of the “Settings” page that manages script execution parameters and service message formatting. Here you can set the log language, operating mode, time limits, parallel task limits, the number of concurrently launched browsers, the Telegram header template, and popup window dimensions.

Location: the “Scripts” tab is available on the “Settings” page, which is opened through the gear icon in the top right corner of the application — “Afina Core Settings”.

Available actions:

  • select the script execution log language
  • enable or disable “Hidden mode”
  • set the maximum script execution time per cycle
  • limit the number of simultaneously running tasks
  • set the maximum module execution time
  • specify the maximum number of concurrently launched browsers
  • configure the Telegram message header template
  • set the popup window width and height


List “Script log language”#

The “Script log language” list allows you to select the language in which script execution logs are recorded in a file. This parameter affects only the log language and does not change the Afina interface language.

After opening the list, select the required language and save the changes. Subsequent service records for script execution will be generated in the selected language.

The “Script log language” parameter is independent of the application interface language. It is used only for recording script execution logs in a file.


Switch “Hidden mode”#

The “Hidden mode” switch enables script execution in the background without noticeable switches and visual updates in the visible area. This parameter reduces visual load during mass launches and allows automation to run less visibly for the user.

After enabling the switch, subsequent script launches will run with hidden mode taken into account. If visual monitoring of script actions is needed, the mode can be disabled.

For debugging or scenario verification, it may be more convenient to temporarily disable “Hidden mode” to see the browser window behavior during script execution.


Field “Script execution time limit”#

The “Script execution time limit (min) not more 1440 minutes” field sets the maximum script execution time for one cycle. The value is specified in minutes and cannot exceed 1440.

After saving, Afina will stop the script cycle if execution exceeds the specified time limit.

The maximum allowed value is 1440 minutes. This corresponds to 24 hours of execution for one script cycle.


Field “Limit of simultaneously running tasks”#

The “Limit of simultaneously running tasks” field determines how many tasks can run at the same time. This parameter is used to control parallel load during automation launches.

After saving, Afina will not launch more tasks simultaneously than specified in this field.

Increasing the “Limit of simultaneously running tasks” may speed up mass execution, but it also increases the load on the processor, RAM, and network.


Field “Maximum module execution time”#

The “Maximum module execution time (ms)” field sets the maximum time during which a module can run before being forcibly stopped. The value is specified in milliseconds.

After saving, a module that exceeds the configured execution time will be stopped.

A value that is too low in the “Maximum module execution time” field may interrupt modules before their logic is completed. Before changing this parameter, consider the complexity of the scenarios being executed.


Field “Maximum number of browsers”#

The “Maximum number of browsers” field sets how many browser instances can be launched simultaneously. This parameter helps control device load during parallel profile launches and script execution.

After saving, Afina will not open more browser instances simultaneously than allowed by this parameter.

A value that is too high for “Maximum number of browsers” may increase PC load. If profiles launch unstably or the application works more slowly, reduce the number of concurrently launched browsers.


Field “Telegram header format”#

The “Telegram header format” field defines the template for headers of messages sent through the Telegram bot. In this field, you can specify a custom format and use variables, such as ${accountName}, so that the account that sent the message is displayed in the header.

On the right side of the field, the “{}” icon is available and opens the list of variables for insertion into the template.

The ${accountName} variable inserts the account name into the Telegram message header. This helps quickly identify which account the bot message belongs to.


Fields “Popup width” and “Popup height”#

The “Popup width (%)” and “Popup height (%)” fields set the popup window dimensions as a percentage of the screen size. These parameters are used to standardize the display of service windows in the interface.

After saving, popup windows will open according to the specified width and height.

Width and height values are specified as percentages. Use numeric values that do not exceed the screen boundaries and do not make working with the popup window difficult.


Workflow Scenario#

1

Step 1: Open settings

Click the gear icon in the top right corner of the application and select “Afina Core Settings”.

2

Step 2: Go to the “Scripts” tab

On the “Settings” page, open the “Scripts” tab.

3

Step 3: Configure the log language and operating mode

In the “Script log language” list, select the log recording language. If needed, enable or disable “Hidden mode”.

4

Step 4: Set execution limits

Fill in the “Script execution time limit”, “Limit of simultaneously running tasks”, “Maximum module execution time”, and “Maximum number of browsers” fields.

5

Step 5: Configure the Telegram header

In the “Telegram header format” field, set the message template. If needed, use the “{}” icon to insert variables.

6

Step 6: Set popup window dimensions

Enter values in the “Popup width (%)” and “Popup height (%)” fields.

7

Step 7: Save changes

Click “Save changes” to apply the updated parameters of the “Scripts” tab.

Script settings — Automation limits | Afina Browser