string DoUrlSubstitution (string, int)

Performs URL substitutions on the provided URL

Security

Trust Level Required: Medium Trust

Parameters

Name Description
url string
The url to perform substitution on.
replacementMode (Optional) int
Indicates how to interpret URL: 0 - URL is a local non-URI-encoded file path (C:\), 1 - URL is already properly URI-encoded, 2 - URL is not yet URI-encoded

Return

The provided URL with substitution replacements made.

Remarks

The subsitution variables defined by KioWare are here. Machine-Specific variables can be defined in the Advance Settings section of the config tool.

Examples


var modes = 3;
for(var i = 0; i < modes; i++)
{ 
	console.log(KioApp.DoUrlSubstitution("$$KIO_USERDATA$$", i)) 
}
    

Requirements

KioWare for Windows version 8.1 or greater.