System.postMessage() This page was last modified over 30 day(s) ago and has 0 comment(s)


Back to System Class Summary

Availability
Windows

Usage
mdm.System.postMessage(windowID:Number, messageNo:Number, wParam:Number, lParam:Number):Void

Parameters
windowID:Number - Window handle

messageNo:Number - Message identifier

wParam:Number - wParam value

lParam:Number - lParam value

Returns
Nothing

Description
Sends a system message (by using the Windows API PostMessage procedure) to the specified window.

Notes
To retrieve a list of running windows and their window handles use System.getWindowList().

This command should only be used for sending simple messages, and will ONLY work on Windows that are able to receive and process these specific messages. Structures and Events should not be sent and will not work.

Here is a full list of windows messages. Please note that a lot of messages are unusable from within a Zinc application.

Example Code
//Here, the 'WM_QUIT' message is sent to the specified window:
mdm.System.postMessage(5024, 18, 0, 0);

mdm.System Class Example Downloads
No Example Downloads Available


Registered Users must be logged in to 'MyAccount' to add a Comment - Log In Here
  After Logging In, Click Here to Refresh This Page