Send key

Modified on Mon, 5 Oct at 1:54 PM

With BaseExtensions we are able to make Office applications think a key has been pressed.

This is useful in certain cases, for example where a module will cause the Office application to enter Keytip mode - the same as pressing the Alt-key.

This is the command for sending key:

XML
<Cmd case="BaseExtensions:send-key" key="xx"/>

Parametres

Key

The key you wish to send. Must reflect values contained in this list.

Note: Some keys, like the "Escape" key, requires curly brackets

Below commands can be used in a module to emulate first ALT, then Escape-key press.

XML
<Cmd case="BaseExtensions:send-key" key="%"/>
<Cmd case="BaseExtensions:send-key" key="{ESC}"/>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article