ServersYour serverFor creatorsForumFAQDocumentationSecurity
Download the launcher
  1. Documentation
  2. Client functions
  3. injectBrowserCharacter

Function

injectBrowserCharacter

ClientBrowserTrilogy Hub only

Types text into the page's active field, character by character (keypress / input events), including accented letters and other UTF-8 characters.

Syntax

bool injectBrowserCharacter(browser webBrowser, string text)

Arguments

webBrowserbrowser
The browser.
textstring
Text to type. Control characters (e.g. a newline) are skipped - send Enter with injectBrowserKey.

Returns

true when at least one character was typed.

Example

injectBrowserCharacter(browser, "Zażółć gęślą jaźń")
injectBrowserKey(browser, "enter")
injectBrowserKey(browser, "enter", false)

See also