Input API
Methods
The WMKS core
object uses input API methods to send keyboard input to the server or VM.
sendInputString()
Sends a string as keyboard
input to the server.
- Parameters
- Type: string.
- Return Value
- None
- Example Call
- wmks.sendInputString("test");
sendKeyCodes()
Sends a series of special key
codes to the VM. The input is an array of key codes and the method sends
keydown events for each key code in the order listed. This method sends keyup
events for each in reverse order. Use this method to send key combinations such
as Alt+Tab.
For a list of key codes, see
Javascript Key Codes.
- Parameters
- Type: array. Each element in the array can be a keycode or a Unicode character, where keycode is for non-printable keys, and Unicode is a negative number for printable characters. With Unicode, a negative integer such as -118 represents the Latin small letter v.
- Return Value
- None
- Example Call
- wmks.sendKeyCodes([18,9]) ; // Alt + Tab
sendCAD()
Sends a Control+Alt+Delete
key sequence to the connected VM.
- Parameters
- None
- Return Value
- None
- Example Call
- wmks.sendCAD();