RAGE.Ui.HtmlWindow.ExecuteJs: Difference between revisions
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 13: | Line 13: | ||
CEF = new HtmlWindow("package://cef/index.html"); | CEF = new HtmlWindow("package://cef/index.html"); | ||
cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")"); | cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")"); | ||
Rage.Ui.Cursor. | Rage.Ui.Cursor.Visible = true; | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
}} | }} | ||
Latest revision as of 12:23, 29 July 2019
Syntax
void HtmlWindow.ExecuteJs(string code);
Required Arguments
- code: Command line for JS console;
C# Syntax
HtmlWindow CEF;
private void openUI() {
CEF = new HtmlWindow("package://cef/index.html");
cef.executeJs("startFunction(\"Argument 1\", \"Argument 2\")");
Rage.Ui.Cursor.Visible = true;
}