Public Member Functions | |
SendMessage ([in] VARIANT Control, LONG Message, LONG wParam, VARIANT lParam,[out, retval] VARIANT *pVal) | |
Use this method to send a message to an control. | |
PostMessage ([in] VARIANT Control, LONG Message, LONG wParam, VARIANT lParam,[out, retval] VARIANT *pVal) | |
Use this method to post a message to an control. | |
AddMessageHandler ([in] IDispatch *Control, LONG Message, VARIANT MessageHandler) | |
Use this specify a event handler for processing some message. | |
RegisterWindowMessage ([in] BSTR Message,[out, retval] ULONG *MessageId) | |
Registeres a new window message. | |
EnumWindows ([out, retval] IDispatch **Result) | |
Returns a list of the Window objects that represents top level windows. | |
SendCopyData ([in] VARIANT Control,[in] BSTR Data,[out, retval] VARIANT *pVal) | |
Sends WM_COPYDATA message to a Window. | |
PostCopyData ([in] VARIANT Control,[in] BSTR Data,[out, retval] VARIANT *pVal) | |
Sends WM_COPYDATA message to a Window. | |
CreateClipboard ([in, defaultvalue(FALSE)] VARIANT_BOOL ClipboardViewer,[out, retval] IDispatch **Clipboard) | |
Creates a Clipboard object. | |
GetFileSysIconIndexSmall ([in] BSTR pVal,[in, defaultvalue(0)] ULONG FileAttributes,[out, retval] ULONG *Result) | |
Retrieves the index of a system image list icon (small) for a file. | |
GetFileSysIconIndexLarge ([in] BSTR pVal,[in, defaultvalue(0)] ULONG FileAttributes,[out, retval] ULONG *Result) | |
Retrieves the index of a system image list icon (large) for a file. | |
UuidCreate ([out, retval] BSTR *Result) | |
Creates a new UUID. | |
CreateIconBuilder ([out, retval] IDispatch **Result) | |
Creates a new IconBuilder object. | |
CreateExecutor ([out, retval] IDispatch **Result) | |
Creates a new Executor object. | |
Properties | |
IDispatch *R | SystemImageListSmall [] |
Returns a system image list object that contains small icon images. | |
IDispatch *R | SystemImageListLarge [] |
Returns a system image list object that contains large icon images. | |
VARIANT_BOOL R | IsWindowsXP [] |
Returns "TRUE", if we have Windows XP or later. | |
VARIANT_BOOL R | IsWindowsVista [] |
Returns "TRUE", if we have Windows Vista or later. | |
VARIANT_BOOL R | IsWindows7 [] |
Returns "TRUE", if we have Windows 7 or later. | |
VARIANT_BOOL R | IsWindows8 [] |
Returns "TRUE", if we have Windows 8 or later. | |
VARIANT_BOOL R | IsThemeActive [] |
Returns "TRUE", if a visual style is active. |
ProgId: “Scripting.WindowSystemObjectExtensions”.
AddMessageHandler | ( | [in] IDispatch * | Control, | |
LONG | Message, | |||
VARIANT | MessageHandler | |||
) |
Use this specify a event handler for processing some message.
Control | The control. | |
Message | The message identifier. | |
MessageHandler | The event handler. |
o = new ActiveXObject("Scripting.WindowSystemObject") f = o.CreateForm(0,0,0,0) f.ClientWidth = 500 f.ClientHeight = 300 f.CenterControl() f.Text = "Web Browser" t = f.Menu.Add("File") t.Add("Exit","ESC").OnExecute = CloseFormHandler Browser = f.CreateActiveXControl(0,0,0,0,"{8856F961-340A-11D0-A96B-00C04FD705A2}") Browser.Align = o.Translate("AL_CLIENT") f.Show() Browser.Control.Navigate(StartupDir() + "ActiveXNoContextMenu.js.htm") ext = new ActiveXObject("Scripting.WindowSystemObjectExtensions") ext.AddMessageHandler(Browser,WM_RBUTTONDOWN = 0x0204, MessageHandler) ext.AddMessageHandler(Browser,WM_RBUTTONDBLCLK = 0x0206, MessageHandler) o.Run() function MessageHandler(Sender,Message,WParam,LParam,Handled,Result) { Handled.Value = true } function CloseFormHandler(Sender) { Sender.Form.Close() } function StartupDir() {s = WScript.ScriptFullName; s = s.substring(0,s.lastIndexOf("\\")+1); return s; }
CreateClipboard | ( | [in, defaultvalue(FALSE)] VARIANT_BOOL | ClipboardViewer, | |
[out, retval] IDispatch ** | Clipboard | |||
) |
CreateExecutor | ( | [out, retval] IDispatch ** | Result | ) |
CreateIconBuilder | ( | [out, retval] IDispatch ** | Result | ) |
EnumWindows | ( | [out, retval] IDispatch ** | Result | ) |
GetFileSysIconIndexLarge | ( | [in] BSTR | pVal, | |
[in, defaultvalue(0)] ULONG | FileAttributes, | |||
[out, retval] ULONG * | Result | |||
) |
Retrieves the index of a system image list icon (large) for a file.
pVal | File name. | |
FileAttributes | If not 0 that the function will not attempt to access the file specified by pVal. Rather, it should act as if the file specified by pVal exists with the file attributes passed in FileAttributes, |
Result | Icon Index. |
GetFileSysIconIndexSmall | ( | [in] BSTR | pVal, | |
[in, defaultvalue(0)] ULONG | FileAttributes, | |||
[out, retval] ULONG * | Result | |||
) |
Retrieves the index of a system image list icon (small) for a file.
pVal | File name. | |
FileAttributes | If not 0 that the function will not attempt to access the file specified by pVal. Rather, it should act as if the file specified by pVal exists with the file attributes passed in FileAttributes, |
Result | Icon Index. |
PostCopyData | ( | [in] VARIANT | Control, | |
[in] BSTR | Data, | |||
[out, retval] VARIANT * | pVal | |||
) |
PostMessage | ( | [in] VARIANT | Control, | |
LONG | Message, | |||
LONG | wParam, | |||
VARIANT | lParam, | |||
[out, retval] VARIANT * | pVal | |||
) |
Use this method to post a message to an control.
Control | The control. | |
Message | The message identifier. | |
wParam | The wParam. | |
lParam | The lParam. |
pVal | The result. |
RegisterWindowMessage | ( | [in] BSTR | Message, | |
[out, retval] ULONG * | MessageId | |||
) |
Registeres a new window message.
See RegisterWindowMessage in the WinAPI.
Message | Message name. |
MessageId | Message ID. |
SendCopyData | ( | [in] VARIANT | Control, | |
[in] BSTR | Data, | |||
[out, retval] VARIANT * | pVal | |||
) |
SendMessage | ( | [in] VARIANT | Control, | |
LONG | Message, | |||
LONG | wParam, | |||
VARIANT | lParam, | |||
[out, retval] VARIANT * | pVal | |||
) |
Use this method to send a message to an control.
Control | The control. | |
Message | The message identifier. | |
wParam | The wParam. | |
lParam | The lParam. |
pVal | The result. |
UuidCreate | ( | [out, retval] BSTR * | Result | ) |
VARIANT_BOOL R IsThemeActive |
Returns "TRUE", if a visual style is active.
VARIANT_BOOL R IsWindows7 |
Returns "TRUE", if we have Windows 7 or later.
VARIANT_BOOL R IsWindows8 |
Returns "TRUE", if we have Windows 8 or later.
VARIANT_BOOL R IsWindowsVista |
Returns "TRUE", if we have Windows Vista or later.
VARIANT_BOOL R IsWindowsXP |
Returns "TRUE", if we have Windows XP or later.
IDispatch* R SystemImageListLarge |
Returns a system image list object that contains large icon images.
pVal | ImageList. |
IDispatch* R SystemImageListSmall |
Returns a system image list object that contains small icon images.
pVal | ImageList. |