Back

AppExec

JS Py
Hello World

Executes some code in the main app.

gfx.AppExec( js )

Example - 2

cfg.Game;

function OnLoad()
{
    gfx.AppExec( "app.ShowPopup('Hello from Game')");
}

function OnReady() {}
# cfg.Game

from native import app

def OnLoad():
    gfx.AppExec( "app.ShowPopup('Hello from Game')" )

def OnReady():
    pass
Copy All       Run      
String: javascript code