My favorites | Sign in
Logo
                
Search
for
Updated May 31, 2009 by soubok
Labels: doc
jswinhost  
jswinhost executable

jswinhost executable

home > JSLibs > jswinhost -

Description

jswinhost (javascript windows host) is a small executable file that run javascript programs under a windows environment. The main difference with jshost is the jswinhost does not create any console windows.

Methods

Properties

Configuration object

see jshost

Remarks

There is no way to specify the script to execute using the command line. You have to create a .js file using the name of the host. By default, jswinhost.exe is the name of the host and jswinhost.js is the script the host execute.

Because jwinshost do not use a console window, errors and printed messages will not be displayed.

However, you can write your own output system:

LoadModule('jswinshell');
configuration.stdout = new Console().Write;
configuration.stderr = MessageBox;
LoadModule('jsstd');
Print('toto');
hkqjsfhkqsdu_error();

Embedding JS scripts in your jswinhost binary

see jshost


Sign in to add a comment
Hosted by Google Code