Reference: sendMessage
sendMessage(h, m, w, l) will send the message m to the window with handle h, and passing along the wparam w and lparam l. h, m, w, and l are unsigned integers. sendMessage returns the value returned by the function receiving the message. Examples: sendMessage(getParameter("handle", "application"), 112#16, F140#16, 0) will start the screen-saver sendMessage(getParameter("handle", "window"), 112#16, F030#16, 0) will maximize the AlgoSim window.