Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- BHELP On-Line: CBRIEF Macro Help - register_macro (type, command) http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
register_macro (type, command)

     Usage: Adds a command to the list of commands to be called
            automatically when a special event happens.  Commands can
            be attached to 9 different types of events.  Multiple
            commands attached to the same event type are called in the
            order registered.

Parameters: Type .int. is an event type.  See table below.  Command
            .string. is the name of the command to register, but it
            may not be a language primitive.

            EVENT TYPES:

            0 . . . . . Typed character inserted
            1 . . . . . Different file was edited
            2 . . . . . Alt-h pressed at prompt
            3 . . . . . Unassigned key pressed (used only if
                          _invalid_key does not exist)
            4 . . . . . User was idle for one second
            5 . . . . . BRIEF about to exit to DOS (via exit)
            6 . . . . . New buffer created and a file read into
                          it (via edit_file or at startup)
            7 . . . . . Ctrl-break pressed while a macro was
                        running.
            8 . . . . . Invalid character typed at a prompt.
                          (see _bad_key also)

   Returns: Nothing

See Also: call_registered_macro unregister_macro

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson