Keystroke Point of Sale Help


Scripts - Keyboard Macro Example

The following example shows how a Keyboard Macro Script works.

In this example, Inventory Stock Number 1234 is an item that:

- Resembles several other Inventory items

- Has no price tag on it

Since the Clerk must identify the item visually and then enter it by hand, the following Keyboard Macro Script is used to simplify the process.

SendKeys={UP}^{F2}
Play=C:\ksdata\i1234.wav



The SendKeys line of the macro moves the cursor up one line in the transaction and displays the picture of Inventory Stock Number 1234 (if one is available) using the Keystroke Picture Viewer.

SendKeys= is the command used to run a Keyboard Macro.

Keystroke interprets everything after the SendKeys= command as keyboard input.

{UP} is the Script code used to represent the Up arrow key (without the braces, Keystroke would interpret UP as the U key followed by the P key).

When the Script runs (after the line item entry is complete and the cursor has moved down to the next line), {UP} moves the cursor back up to the line with the scripted item.

^ is the Script code used to represent the [Ctrl] key (no braces are required).

{F2} is the Script code used to represent the [F2] function key.


The Play line of the macro plays the sound file C:\ksdata\1234.wav.

Play= is the command used to play a sound file.

C:\ksdata\ is the path to the location of the sound file.
i1234.wav is the name of the sound file (which is a voice recording of the Description of Inventory Stock Number 1234).


The result of the Keyboard Macro running when Inventory Stock Number 1234 is entered on a transaction is the picture of the item being shown and the audio recording of the item's description being heard.

See:

Keyboard Macro Script

Scripts Contents

Keystroke Help Table Of Contents