Command List
In order for these functions to be available, you need to include the Shu.swc in your AIR project.
Instructions can be found here.
Executing other applications
shu.System.exec(filename:String, showGui:Boolean=false):Number show
showGui - Boolean specifing whether to display the application's GUI.
shu.System.execAsync(filename:String, showGui:Boolean=false):Number show
showGui - Boolean specifing whether to display the application's GUI.
shu.System.isRunning(pid:Number):Boolean show
shu.System.launchFile(filename:String):Boolean show
shu.System.lastOutput:String show
Database access
shu.MySQL.connect(host:String, port:Number, user:String, pass:String, dbName:String):Boolean show
port - The port number the MySQL database is running on.
user - The username to use when connecting.
pass - The password to use when connecting.
dbName - The database to use.
shu.MySQL.disconnect():void show
shu.MySQL.runQuery(query:String):Boolean show
shu.MySQL.fetchRow():Array show
shu.MySQL.seekRow(which:Number):Boolean show
shu.MySQL.rowCount:Number show
shu.MySQL.lastError:String; show
Prompts and message boxes
shu.Dialogs.messageBox(message:String, caption:String, style:Number):Number show
caption (optional) - The caption to display in the title bar of the messagebox.
style (optional) - The buttons and icons to show. This is constructed by OR'ing the style properties :
- shu.Dialogs.MB_OK
- shu.Dialogs.MB_CANCEL
- shu.Dialogs.MB_YES_NO
- shu.Dialogs.MB_ICON_ERROR
- shu.Dialogs.MB_ICON_INFORMATION
- shu.Dialogs.MB_ICON_QUESTION
- shu.Dialogs.MB_ICON_EXCLAMATION
- shu.Dialogs.MB_OK
- shu.Dialogs.MB_CANCEL
- shu.Dialogs.MB_YES
- shu.Dialogs.MB_NO
shu.Dialogs.inputBox(message:String, caption:String, defaultValue:String):String show
caption (optional) - The text to appear in the titlebar of the dialog.
defaultValue (optional) - An initial string of text to appear in the input textfield.
Paths
These properties give you some common file system paths. Note they are all read-only.shu.Paths.app:String show
shu.Paths.desktop:String show
shu.Paths.documents:String show
shu.Paths.temp:String show
Screen
shu.Screen.capture(filename:String,left:Number,top:Number,right:Number,botton:Number):Boolean show
Note that this function either takes just the first parameter or all parameters. If only the filename is supplied, the whole screen is captured. Otherwise the area specified by left, top, right and bottom is captured. The file to save to can be either a png, jpg, tiff or bmp and will be determined by the filenames extension.
left (optional) - The leftmost position to capture.
top (optional) - The topmost position to capture.
right (optional) - The rightmost position to capture.
bottom (optional) - The bottom-most position to capture.
Extend via custom DLL/dylib
N.B. The DLL/dylib must be an shu extension (eg it must implement the extapi)shu.Extension.call(handlerName, ...):* show
... - Any other parameters to pass to the handler function.
Quick Links
Latest News
New Prices + Features! - 04.03.09
We are proud to announce great new price offers on all our Shu
products, as well as features enhancements to exec and execAsync.
Read more.
New Shu Products! - 05.02.09
We are proud to announce the release of our new
installable version of Shu, as well as exciting updates across the product range. Read more.
New Release of Shu Lite! - 02.07.08
We are proud to announce the release of Shu Lite! So what is Shu Lite? - Everything Shu is but without the extra commands. Read more


