MLWindowFunctions Plugin

From Cinemar Wiki
Jump to: navigation, search

Plugin About

Plug-In to manipulate windows on the server. This plug-in allows you to Minimize, Maximize, Restore to Default, Close, Quit, Send keystrokes to and bring any window to the foreground. SENDKEYS sets focus on the window and emulates keystrokes. SENDCHARACTERS sends a keystroke message to the window's messaging queue without changing focus. It is recommended to use SENDCHARACTERS whenever possible; however, it will not work with all applications.


Plugin Syntax

MLServeCmd.MLWindowFunctions|<<Window Name (partial)>>~<<Command>>~<<Opt:


Supported commands

MINIMIZE

MAXIMIZE

NORMAL

CLOSE

QUIT

FOREGROUND

SENDKEYS

SENDCHARACTERS

Examples:

MLServeCmd.MLWindowFunctions|Notepad~MAXIMIZE

MLServeCmd.MLWindowFunctions|Notepad~SendKeys~Hello World.

MLServeCmd.MLWindowFunctions|Media Center~Minimize

One way to determine the Windows process name is to open Task Manager and see what name appears in the Applications tab.

The plus sign (+), caret (^), percent sign (%), tilde (~), and parentheses ( ) have special meanings to SendKeys. To specify one of these characters, enclose it within braces ({}). For example, to specify the plus sign, use {+}. Brackets ([ ]) have no special meaning to SendKeys, but you must enclose them in braces. To specify brace characters, use {{} and {}}.

To specify characters that aren't displayed when you press a key, such as ENTER or TAB, and keys that represent actions rather than characters, use the codes shown below:

BACKSPACE {BACKSPACE}, {BS}, or {BKSP}

BREAK {BREAK}

CAPS LOCK {CAPSLOCK}

DEL or DELETE {DELETE} or {DEL}

DOWN ARROW {DOWN}

END {END}

ENTER {ENTER}or ~

ESC {ESC}

HELP {HELP}

HOME {HOME}

INS or INSERT {INSERT} or {INS}

LEFT ARROW {LEFT}

NUM LOCK {NUMLOCK}

PAGE DOWN {PGDN}

PAGE UP {PGUP}

PRINT SCREEN {PRTSC}

RIGHT ARROW {RIGHT}

SCROLL LOCK {SCROLLLOCK}

TAB {TAB}

UP ARROW {UP}

F1 {F1}

F2 {F2}

F3 {F3}

F4 {F4}

F5 {F5}

F6 {F6}

F7 {F7}

F8 {F8}

F9 {F9}

F10 {F10}

F11 {F11}

F12 {F12}

F13 {F13}

F14 {F14}

F15 {F15}

F16 {F16}


To specify keys combined with any combination of the SHIFT, CTRL, and ALT keys, precede the key code with one or more of the following codes:

Key Code

SHIFT +

CTRL ^

ALT %

To specify that any combination of SHIFT, CTRL, and ALT should be held down while several other keys are pressed, enclose the code for those keys in parentheses. For example, to specify to hold down SHIFT while E and C are pressed, use "+(EC)". To specify to hold down SHIFT while E is pressed, followed by C without SHIFT, use "+EC".

To specify repeating keys, use the form {key number}. You must put a space between key and number. For example, {LEFT 42} means press the LEFT ARROW key 42 times; {h 10} means press H 10 times.

So Alt-Enter becomes %{ENTER}


Bugs

Feature Requests

Release Notes

v 1.0.2 is the current release