Abra Commands

Abra is copyright 1995 by Joey Hess

Abra is a library of commands that can be used in other programs.

If you were looking at the documentation of another program, and jumped here, then you can use Abra's commands and scripts in that program.


Commands


Command Syntaxes and Descriptions

  • exitwin - Exits windows, and optionally reboots or restarts the computer.

    Syntax: exitwin [restart|reboot|run progname params]


    Scripts

    If you need to run several commands one after another, you can use scripts to automate the process.

    A script is simply a list of commands, saved to a file with the extention .scr. The run command will process each command in the script file in order.

    If you want to put a comment line in a script, preceed the commant with a ';'.


    Sendkeys key reference

    (This description taken from the Visual Basic help on Sendkeys, and modified to correspond to ForeMenu)

    Each key is represented by one or more characters. To specify a single keyboard character, use the character itself. If you want to represent more than one character, append each additional character to the one preceding it. To represent the letters A, B, and C, use ABC for exp.

    The plus sign (+), caret (^), percent sign (%), tilde (~), and parentheses ( ) have special meanings to sendKeys. To specify one of these characters, enclose it inside braces. For example, to specify the plus sign, use {+}. Brackets ([ ]) have no special meaning to sendKeys, but you must enclose them in braces as well, because in other applications for Microsoft Windows, brackets do have special meaning that may be significant when dynamic data exchange (DDE) occurs. To send brace characters, use {{} and {}}.

    To specify characters that aren't displayed when you press a key (such as Enter or Tab) and keys that represent actions rather than characters, use the codes shown below:

    To specify keys combined with any combination of Shift, Ctrl, and Alt keys, precede the regular key code with one or more of the following codes:

    To specify that Shift, Ctrl, and/or Alt should be held down while several other keys are pressed, enclose the keys' code in parentheses. For example, to have the Shift key held down while E and C are pressed, use +(EC). To have Shift held down while E is pressed, followed by C being pressed without Shift, use +EC.

    To specify repeating keys, use the form {key number}; you must put a space between key and number. For example, {LEFT 42} means press the Left Arrow key 42 times; {h 10} means press h 10 times.

    Note: SendKeys can't send keystrokes to an application that is not designed to run in Microsoft Windows. Sendkeys also can't send the Print Screen (PRTSC) key to any application.


    System variables

    System variables are special codes that are changed to realtime information.

    These expressions are case sensitive.

    These can be combined in any way you like, for example: