External Object Methods

Description: Hides or shows a window with special effects
Syntax: external.AnimateWindow(time, flags)
Return: none
Context: Javascript/VBScript

Description: Opens a dialog box for the user to select a folder
Syntax: external.BrowserForFolder(title, flags)
Return: string|null
Context: Javascript/VBScript

Description: Closes the current window
Syntax: external.CloseWindow()
Return: none
Context: Javascript/VBScript

Description: Exits the application
Syntax: external.ExitProgram()
Return: none
Context: Javascript/VBScript

Description: Opens a dialog box where the user can select a file for opening
Syntax: external.GetOpenFileName(title, initial-path, filters)
Return: filepath|null
Context: Javascript/VBScript

Description: Opens a dialog box where the user can select a file to save data to
Syntax: external.GetSaveFileName(title, initial-path, filters)
Return: filepath|null
Context: Javascript/VBScript

Description: Returns the current connection status
Syntax: external.InternetGetConnectedState()
Return: integer
Context: Javascript/VBScript

Description: Attempts to establish a dial-up connection
Syntax: external.InternetAutodial()
Return: boolean
Context: Javascript/VBScript

Description: Closes the activate dial-up connection
Syntax: external.InternetAutodialHangup()
Return: boolean
Context: Javascript/VBScript

Description: Prompts the user to go online if the computer is in offline mode
Syntax: external.InternetGoOnline(url)
Return: boolean
Context: Javascript/VBScript

Description: Displays a standard message box
Syntax: external.MessageBox(message, title, flags)
Return: integer
Context: Javascript/VBScript

flags coresponds to the last parameter to the Win32 function MessageBox(). It is an OR-ed combination of the following:

MB_OK0x00000000
MB_OKCANCEL0x00000000
MB_OK0x00000001
MB_ABORTRETRYIGNORE0x00000002
MB_YESNOCANCEL0x00000003
MB_YESNO0x00000004
MB_RETRYCANCEL0x00000005
MB_CANCELTRYCONTINUE0x00000006
MB_ICONHAND0x00000010
MB_ICONQUESTION0x00000020
MB_ICONEXCLAMATION0x00000030
MB_ICONASTERISK0x00000040
MB_DEFBUTTON10x00000000
MB_DEFBUTTON20x00000100
MB_DEFBUTTON30x00000200

The returned value can be one of the following:

IDOK1
IDCANCEL2
IDABORT3
IDRETRY4
IDIGNORE5
IDYES6
IDNO7

These constants are not actually defined. You must supply the actual values. Please refer to the linked MSDN page for more information.

Description: Displays a standard message box
Syntax: external.ShellExecute(operation, filepath)
Return: boolean
Context: Javascript/VBScript

Description: Changes a window's display state
Syntax: external.ShowWindow(state)
Return: boolean
Context: Javascript/VBScript

Description: Start moving the window base on the movement of the mouse cursor
Syntax: external.StartMovingWindow()
Return: none
Context: Javascript/VBScript