SilverScreen Solid Modeler

scriptwin_execute

scriptwin_execute

Previous topic Next topic  

scriptwin_execute

Previous topic Next topic JavaScript is required for the print function  

 

SilverPlusRect

SilverEngineRect

 

int scriptwin_execute( int handle, char *fmt, ... )

 

int handle;  // A script window handle returned via scriptwin_open

char *fmt;   // A pointer to a null-terminated format string

 

 




Synopsis

#include "silver.h"

 

The scriptwin_execute function executes a SilverScreen command in a script window.

 

 

Parameters

handle is a script window handle returned by scriptwin_open

 

fmt is a null-terminated string that contains the desired format specifiers.

 

 

Return Value

scriptwin_execute returns TRUE if handle is a script window handle returned by scriptwin_open and if the command environment is successfully established, and FALSE otherwise.

 

 

Remarks

Script windows are exclusive to the SilverPlus and SilverEngine platforms.

 

Care must be used to match format string tokens  with parameters, or else a stack overflow or underflow could occur.

 

 

See Also

ss_command, scriptwin_open, scriptwin_close, fprintf for format string syntax

 

 

Example

See the ScriptWin SilverPlus sample application for an example.