Table of Contents

Keyboard

This object allows you to simulate keyboard actions.

Functions

Keyboard

Constructor function.

Syntax

var myObject = new Keyboard();

Methods

pressKey

Presses a key.

Syntax

myObject.pressKey(key);

Arguments

  1. key - (string) the key to press

Returns

Exceptions

Notes

The key parameter can be a single letter or a key name.

releaseKey

Releases a key.

Syntax

myObject.releaseKey(key);

Arguments

  1. key - (string) the key to release

Returns

Exceptions

Notes

The key parameter can be a single letter or a key name.

triggerKey

Triggers a key. (press and release)

Syntax

myObject.triggerKey(key);

Arguments

  1. key - (string) the key to trigger

Returns

Exceptions

Notes

The key parameter can be a single letter or a key name.

writeText

Write text.

Syntax

myObject.writeText(text);
myObject.writeText(text, delay);

Arguments

  1. text - (string) the text to write
  2. delay - (int) the pause duration (milliseconds) between each character [Added in Actionaz 3.5.0.]

Returns

Exceptions