ssCore.Keyboard.sendRelease

Simulate the release of a key (see also: Keyboard.sendPress)


Availability:

First available in version 3.0 build 2039.


Input Parameters:

hwnd - Handle of window where the key should be sent. If the hwnd is 0, the key will be sent to the window that has the input focus. If the hwnd is not 0, the specified window will become the foreground window before the key is sent.

key - The Windows virutal key code to be sent.


Output Parameters:

No output parameters.


Asynchronous Mode:

When this method is called asynchronously, a return object containing the output parameters is passed to the specified callback function.

ssCore.Keyboard.sendRelease( paramsObject [, callbackParamsObject] [, errorParamsObject] );


Synchronous Mode:

When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.

var returnObject = ssCore.Keyboard.sendRelease( paramsObject );


Notes:

None.


Examples:

The following example receives a window handle for an application to which we will send a key release.

function releaseA(hwnd)
{
    ssCore.Keyboard.sendRelease({hwnd:hwnd, key:ssKey.VK_A});
}