HtmlInput.OnKeypadInput Method

Passes a key code to the Triple-tap/Soft-keyboard control.

Note   This method has been deprecated.

Syntax

  HtmlInput
  .OnKeypadInput(
  lKeyCode
  )

Parameters

lKeyCode

Required. A Number (long) that specifies the key code of a button on the remote control. For a list of valid key codes, see MediaCenter.onRemoteEvent.

Return Values

This method does not return a value.

Remarks

An HTML application uses this method to pass arrow keystrokes from the remote control to the Triple-tap/Soft-keyboard control. To receive remote control keystrokes, include a handler in your application for the MediaCenter.onRemoteEvent event.

Example Code

The following JScript example passes the key code corresponding to the remote control's left arrow button:

var KeyCode;
KeyCode = 37;
objInput.OnKeypadInput(KeyCode);

Requirements

Library: ehkeyctl.dll

Platform: Windows XP Media Center Edition 2005 and later

See Also