HTML Screensaver Maker - The object external Specification

Overview - Download - Support

Object external properties

int external.X Gets or sets the x-coordinate of the upper-left corner of the window.
int external.Y Gets or sets the y-coordinate of the upper-left corner of the window.
int external.Width Gets or sets the width of the window.
int external.Height Gets or sets the height of the window.
bool external.IsOnline Check if the Internet Connection State is active.
bool external.HandleEvents Gets or sets if application should be monitoring mouse and keyboard events.
string external.Version Gets the Moonlight21 Version.
string external.UserProfile Gets the path for the application data of a user.
string external.ExecutablePath Gets the path for the executable file that started the application, including the executable name.
string external.WorkDirectory Gets the path for the temporary script folder.
string external.SplashScreenHTML Gets or sets the HTML code to be use for splash screen.

Object external methods

array external.WinList() Returns the caption of all desktop windows.
string external.GetEnvironmentVariable(string variable) Retrieves the value of an environment variable from the current process.
void external.SoundPlay(string SoundLocation) Plays a .wav sound.
void external.setPreference(string key, string value) Stores key as a persistent preference with the value value.
array external.getPreference(string key) Returns the value associated with the preference key.
array external.openFileDialog() Prompts the user to select a file.
string external.folderBrowserDialog() Prompts the user to select a folder.
array external.GetFiles(string path) Return a list of all file of a directory.
array external.GetDirectories(string path) Return a list of all subfolder of a directory.
void external.Resize(int width, int height) Resizes the window.
void external.Move(int x, int y) Moves the window.
bool external.FileExists(string path) Determines whether the specified file exists.
bool external.DirectoryExists(string path) Determines whether the given path refers to an existing directory on disk.
void external.Close() Close the application.
object external.XMLHttpRequest() Create a crossdomain XMLHttpRequest object.

Object external.XMLHttpRequest properties

Function object.onreadystatechange Event handler for an event that fires at every state change.
Function object.onload Event handler for an event that fires at completed request.
int object.readyState Returns the state of the object: 0 = uninitialized, 1 = loading, 2 = loaded, 3 = interactive, 4 = complete.
string object.responseText Returns the response as a string.
int object.status Returns the status as a number (e.g. 404 for "Not Found" or 200 for "OK").
string object.statusText Returns the status as a string (e.g. "Not Found" or "OK").

Object external.XMLHttpRequest methods

string object.getAllResponseHeaders() Returns the complete set of http headers as a string.
string object.getResponseHeader(string label) Returns the string value of a single header label.
void object.open(string method, string URL, bool async) Assigns destination URL, method, and other optional attributes of a pending request.
void object.send(string content) Sends the request.
void object.setRequestHeader(string label, string value) Adds a label/value pair to the http header to be sent.