Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Application Server

EnableDisableKeys() function

  • Last UpdatedJun 17, 2024
  • 1 minute read

Enables/disables key filters for the Alt, Escape, and Windows keys.

Category

View

Syntax

EnableDisableKeys(AltKey, EscKey, WinKey);

Parameters

AltKey

Integer to enable or disable key filters for the Alt key:

1 = enable filter (disable Alt key)

0 = disable filter (enable Alt key)

EscKey

Integer to enable or disable key filters for the Escape key:

1 = enable filter (disable Esc key)

0 = disable filter (enable Esc key)

WinKey

Integer to enable or disable key filters for the Windows key:

1 = enable filter (disable Win key)

0 = disable filter (enable Win key)

Remarks

Disabling the Alt key also disables the Win+L key combination (for locking the Windows desktop). Win+L is the shortcut for another combination of keys that involves the Alt key. Thus, disabling the Alt key also disables the shortcut for locking the Windows desktop.

Disabling the Esc key disables it for all actions.

Example(s)

EnableDisableKeys(0,0,0); // enable all three keys

EnableDisableKeys(1,1,1); // disable all three keys

EnableDisableKeys(0,0,1); // enable Alt and Escape keys, disable Windows key.

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in