key presses and releases a key in the client.
Parameters
Section titled “Parameters”| Parameter | Meaning |
|---|---|
key |
The key: A–Z, 0–9, F1–F12, ESC, BACK, TAB, ENTER, PAUSE, CAPSLOCK, SPACE, PGUP, PGDN, |
END, HOME, LEFT, RIGHT, UP, DOWN, PRNSCR, INSERT, DELETE, NUMLOCK and SCROLLLOCK. |
|
ctrl, alt, shift |
Optional. Hold these down while the key is pressed. |
Details
Section titled “Details”- Without
ctrl,altorshiftthe key goes straight to the client window, which does not need to be in front. - With any of them, the client is brought to the front and the keys are pressed on the real keyboard, so the client has to keep the focus while it happens. With several clients open, modifier keys can end up in the wrong one.
- The script waits 250 ms after each
key.
Example
Section titled “Example”key F4 alt ; Alt+F4key ENTERhaltSee also
Based on the EasyUO wiki, edited for EasyUO Reforged. This text is available under the GNU Free Documentation License 1.2.