CenterApp

Purpose:

Centers the App on the screen horizontally and vertically.

Category:

App

Syntax:

CenterApp

Example:

CenterApp


TopCenterApp

Purpose:

Centers the App horizontally at the top of the screen.

Category:

App

Syntax:

TopCenterApp

Example:

TopCenterApp


AppBackgroundColor

Purpose:

Changes the Background Color surrounding the App limits.

Category:

App

Syntax:

AppBackgroundColor "color name"
color name

A color on any valid HTML5 format:

#ff5432
rgb(12,34,67)
rgba(12,34,67,.5)

Example:

AppBackgroundColor "rgb(12,132,64)"


AppBackgroundImage

Purpose:

Sets a full screen App background image.
Tip: Use an invisible image object to load and store the image.

Category:

App

Syntax:

AppBackgroundImage "image object"
image object

An image object previously added to the Work Sapace you want to become your App background image.

Example:

AppBackgroundImage "myBackgroundImage"


AppScrollTo

Purpose:

Scroll the document to the given horizontal and vertical position.

Category:

App

Syntax:

AppScrollTo topDistance leftDistance

topDistance

The distance from the top of the app to scroll to in pixels.

leftDistance

The distance from the left side of the app to scroll to in pixels.

Example:

AppScrollTo 400 0


LoadApp

Purpose:

Replaces the current App loading a new one

Category:

App

Syntax:

LoadApp "new app url"
new app url

The internet URL where the app to load is published.

Example:

LoadApp "https://mydomain.com/myapp"


ReloadApp

Purpose:

Reloads the current App in the WebBrowser.

Category:

App

Syntax:

ReloadApp

Example:

ReloadApp


OpenURL

Purpose:

Open a URL in a new tab or window.

Category:

App

Syntax:

OpenURL "url"

url

The internet URL adress to open.

Example:

OpenURL "https://sinlios.com"


GetAppURL

Purpose:

Returns full App URL (https://example.com/path/index.html)

Category:

App

Syntax:

GetAppURL [result var]

Example:

GetAppURL [myvar]


GetAppPath

Purpose:

Returns current URL path (/path/index.html)

Category:

App

Syntax:

GetAppPath [result var]

Example:

GetAppPath [myvar]


GetAppBaseURL

Purpose:

Returns App base URL (https://example.com)

Category:

App

Syntax:

GetAppBaseURL [result var]

Example:

GetAppBaseURL [myvar]



GetURLParameter

Purpose:

Gets the value from a URL parameter (mydomain.com?parameter1=value1&parameter2=value2)

Category:

App

Syntax:

GetURLParameter "parameter name" [result var]

Example:

GetURLParameter "parameter1" [myvar]



CheckInternetConnection

Purpose:

Determine if this device is connected to the Internet by checking a URL

Category:

App

Syntax:

CheckInternetConnection "URL" milliseconds "succesSubroutine" "errorSubroutine"
URL

   URL to check

milliseconds

   Milliseconds to wait for response
successSubroutine

   Subroutine to execute on success
errorSubroutine

   Subroutine to execute on error

Example:

CheckInternetConnection "https://google.com" 10000 "succesSubroutine" "errorSubroutine"


IsOnline

Purpose:

Returns true if the device is online or false if it's not. This command ask to the web browser navigator object to get the information.

Category:

App

Syntax:

IsOnline [result var]

Example:

IsOnline [myvar]



EnterFullScreen

Purpose:

Enters full screen mode (same effect than pressing F11 in the WebBrowser).

Category:

App

Syntax:

EnterFullScreen

Example:

EnterFullScreen


ExitFullScreen

Purpose:

Exists full screen mode (previously opened with EnterFullScrenn).

Category:

App

Syntax:

ExitFullScreen

Example:

ExitFullScreen


NeoScriptJS

Purpose:

Allow acces to NeoScript subroutines from JavaScript (neosubroutine.subroutineName(param);).

Category:

App

Syntax:

NeoScriptToJS

Example:

NeoScriptToJS