Xojo Developer Conference
25/27th April 2018 in Denver.
MBS Xojo Conference
6/7th September 2018 in Munich, Germany.

Platforms to show: All Mac Windows Linux Cross-Platform

WindowsScriptMBS.AllowUI as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Windows MBS Win Plugin 10.0 No Yes No Yes, Windows only No
Function: Enable or disable display of the UI.
Example:
dim w as new WindowsScriptMBS

w.Language = "VBScript"

w.AddCode "a = 1"
w.AddCode "b = 2"

w.AllowUI = true
w.ExecuteStatement "msgbox a+b" // shows 3

w.AllowUI = false
w.ExecuteStatement "msgbox a+b" // shows exception with access denied

Exception e as WindowsScriptErrorExceptionMBS
MsgBox e.message
Notes: (Read and Write property)

Feedback, Comments & Corrections

WindowsScriptMBS.Error as WindowsScriptErrorMBS
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Windows MBS Win Plugin 10.0 No Yes No Yes, Windows only No
Function: The current error status.
Notes: (Read only property)

Feedback, Comments & Corrections

WindowsScriptMBS.Language as String
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Windows MBS Win Plugin 10.0 No Yes No Yes, Windows only No
Function: Language engine to use.
Example:
dim w as new WindowsScriptMBS

w.Language = w.kLanguageJScript

MsgBox w.Language // shows "JScript"

w.Language = w.kLanguageVBScript

MsgBox w.Language // shows "VBScript"
Notes:
Use kLanguageVBScript or kLanguageJScript constants.
Setting this property calls reset internally.
(Read and Write property)

Feedback, Comments & Corrections

WindowsScriptMBS.Lasterror as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Windows MBS Win Plugin 10.0 No Yes No Yes, Windows only No
Function: The last error code.
Notes:
0 is no error. -1 is a parameter error on the plugin side. All other codes are from Windows.
(Read and Write property)

Feedback, Comments & Corrections

WindowsScriptMBS.SitehWnd as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Windows MBS Win Plugin 10.0 No Yes No Yes, Windows only No
Function: The window handle for the window being parent to any window the scripts create.
Example:
dim w as new WindowsScriptMBS
w.SitehWnd = window1.handle
Notes:
The window is used as the parent window for message boxes, alerts, etc.
(Read and Write property)

Feedback, Comments & Corrections

WindowsScriptMBS.Timeout as Integer
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Windows MBS Win Plugin 10.0 No Yes No Yes, Windows only No
Function: Length of time in milliseconds that a script can execute before being considered hung.
Notes: (Read and Write property)

Feedback, Comments & Corrections

WindowsScriptMBS.UseSafeSubset as Boolean
Type Topic Plugin Version macOS Windows Linux Console & Web iOS
property Windows MBS Win Plugin 10.0 No Yes No Yes, Windows only No
Function: Force script to execute in safe mode and disallow potentially harmful actions.
Notes: (Read and Write property)

Feedback, Comments & Corrections

The items on this page are in the following plugins: MBS Win Plugin.




Links
MBS Xojo Plugins