Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

There are environment variables in ZennoPoster beside user ones. They store various information: parameters of the instance page (URL, DOM, text, domain, notification and alert text, etc.), time and date variables, project variables (name, folder, proxy rules, id of the last error etc.), numerous profile variables (mail, gender, name, user agent, etc.)

Below you can find detailed information about each variable.


Variables of the current active tab

 Click here to expand

Name

Description

{-Page.Url-}

Current page url

{-Page.Source-}

Source code of the current web page

{-Page.Dom-}

DOM of the current web page

{-Page.Text-}

The text of the current web page without HTML tags

{-Page.FullDomain-}

Full domain of the current web page, including subdomains.

{-Page.Domain-}

The main domain of the current web page, excluding subdomains.

{-Page.LastAlertTitle-}

Alert title displayed on sites using the alert () JS function

{-Page.LastAlertText-}

Alert text displayed on sites using the alert () JS function

{-Page.LastNotificationTitle-}

The title of the last notification from the site

We are talking about messages that come after you allow the site to send you notifications.

{-Page.LastNotificationText-}

The text of the last notification from the site

We are talking about messages that come after you allow the site to send you notifications.

{-Page.LastDownloadedFile-}

Full path of the last downloaded file

Time and date

 Click here to expand

Name

Description

{-TimeNow.Date-}

Current date and time in format ММ/DD/YEAR hh:mm:ss (example - 01/25/2020 14:41:18).

You can change the format of the output string! To do this, add a format template before the closing parenthesis.

Example: {-TimeNow.Date dd.MM.yyyy HH.mm-}, after execution we get the following string - 25.01.2020 14.41

You can read more about formatting here and here.

{-TimeNow.Day-}

Day of the month

{-TimeNow.Month-}

Current month (day)

{-TimeNow.Year-}

Current year

{-TimeNow.DayOfWeek-}

Day of the week

{-TimeNow.Hour-}

Current hour (in 24 hour format)

{-TimeNow.Minute-}

Current minute

{-TimeNow.Second-}

Current second

{-TimeNow.Millisecond-}

Current millisecond

{-TimeNow.TimeNow-}

Current date and time in format YEAR-ММ-DD hh-мм-ss--milliseconds (2020-01-25 14-41-59--834)

Doesn't support formatting!

{-TimeNow.UnixTime-}

Unix-time

Project variables

 Click here to expand

Name

Description

{-Project.BrowserProfileFolder-}

Full path to profile-folder (or an empty string if profile-folder is not used).

{-Project.Directory-}

Template directory

{-Project.PluginDirectory-}

Plugin directory (if the executable template is a plugin)

{-Project.Name-}

Template name

{-Project.Proxy-}

The current proxy of the project.

{-Project.ProxyRules-}

Rule used from ProxyChecker

{-Project.LastExecutedActionElapsedTime-}

Time spent on the last executed action

{-Project.LastExecutedActionId-}

ID of the last performed action

{-Project.LastErrorComment-}

The text of the last action that ended with an error

If the action did not have a custom comment (Right mouse button on the action => Comment), then an empty string will be returned.

Profile

 Click here to expand

Name

Description

{-Profile.Age-}

Age

{-Profile.BornDay-}

Birthday

{-Profile.BornYear-}

Year of birth

{-Profile.BornMonth-}

Month of birth

{-Profile.Name-}

Name

{-Profile.Surname-}

Surname

{-Profile.NickName-}

Nickname

{-Profile.Email-}

E-mail address

{-Profile.EmailPassword-}

Mailbox password

{-Profile.Login-}

Login

{-Profile.Password-}

Password

{-Profile.Sex-}

Gender

{-Profile.Language-}

Language

{-Profile.Country-}

Country

{-Profile.Town-}

City

{-Profile.Region-}

Region

{-Profile.ZipCode-}

Index

{-Profile.SecretQuestionAnswer1-}

The answer to security question # 1

{-Profile.SecretQuestionAnswer2-}

The answer to security question # 2

{-Profile.AvailScreenHeight-}

Height of the generated screen (excluding the taskbar)

If Screen emulation is not enabled and the parameter is not changed through C# code or through the Profile processing action, the value 50505 will be returned

{-Profile.AvailScreenWidth-}

The width of the generated screen (excluding the taskbar)

If Screen emulation is not enabled and the parameter is not changed through C# code or through the Profile processing action, the value 50505 will be returned

{-Profile.ScreenSizeHeight-}

Generated Screen Height

If Screen emulation is not enabled and the parameter is not changed through C# code or through the Profile processing action, the value 50505 will be returned

{-Profile.ScreenSizeWidth-}

Generated screen width

If Screen emulation is not enabled and the parameter is not changed through C# code or through the Profile processing action, the value 50505 will be returned

{-Profile.ScreenLeft-}

The distance, in pixels, from the left edge of the screen to the browser window.

Can be changed using the Profile processing action

{-Profile.ScreenTop-}

The distance, in pixels, from the top of the screen to the browser window.

Can be changed using the Profile processing action

{-Profile.OuterHeight-}

Deprecated variables.

{-Profile.OuterWidth-}

{-Profile.OuterHeightShift-}

{-Profile.OuterWidthShift-}

{-Profile.HTTPAccept-}

HTTP header Accept
Indicates which content types, expressed as MIME types, the client (browser) can understand.

{-Profile.AcceptCharset-}

HTTP header Accept-Charset
Tells the character encoding the browser is willing to accept.

{-Profile.AcceptLanguage-}

HTTP header Accept-Language
Tells the server about all languages that we prefer when reading the web-page.

{-Profile.AcceptEncoding-}

HTTP header Accept-Encoding
The list of supported methods for encoding the content of an entity during transmission.

{-Profile.UserAgent-}

Generated browser User-Agent string

{-Profile.UserAgentAppCodeName-}

Individual elements of the generated User-Agent string

{-Profile.UserAgentAppName-}

{-Profile.UserAgentAppVersion-}

{-Profile.UserAgentBrowserLanguage-}

{-Profile.UserAgentCpuClass-}

{-Profile.UserAgentLanguage-}

{-Profile.UserAgentOsCpu-}

{-Profile.UserAgentPlatform-}

{-Profile.UserAgentProduct-}

{-Profile.UserAgentProductSub-}

{-Profile.None-}

Deprecated variable

System Variables (Environment)

 Click here to expand

Name

Description

{-Environment.CurrentUser-}

User ID from the personal account working with the template.

{-Environment.TickCount-}

The number of milliseconds that have passed since the computer was turned on.

This variable is based on Environment.TickCount from C#, so it has one peculiarity: if the computer will work for a long time and continuously, then after ~ 24.9 days this variable will reach its maximum positive value - 2147483647. After that, it will jump to the lowest possible value - -2147483648 and will start counting down to zero (reach it in~24,9) etc.

String

 Click here to expand

Name

Description

{-String.Enter-}

New line break

{-String.Space-}

Space

{-String.Tab-}

Tab character

Other

 Нажмите здесь, чтобы развернуть

Имя

Описание

{-//-}

Full path to the directory where ZennoPoster is installed.

Example - C:\Program Files\ZennoLab\EN\ZennoPoster Pro V7\7.5.0.0\Progs\


  • No labels