Defining and Using Wizard FE Macro Keys

From Haelrahv Wiki

Jump to: navigation, search

A macro is simply a string of text that gets output when you press only one key. For example, if you set the Alt-A macro to be "attack ", and then pressed Alt-A, the string "attack " would be placed in the input command area. However, there are some "special" tokens that you can use within these macro definitions to make them much more powerful. In this section, we will cover these special tokens, as well as write some macros that you may want to use in your own setup.

The Wizard allows many macros to be defined. To attach a macro string to a key, you click your mouse on the "Configuration" menu, and then choose "Macro Keys". This will present you with a dialog box which contains a tab for "Alt Keys", "Ctrl Keys", and "Fkeys". Note that on the "Fkeys" macros, you can have 10 sets of these, each with a unique name. You can quickly toggle between the different Fkey macro sets by pressing the ALT key plus a number 1 through 0 (ten). The Wizard will always display the name of the active Fkey set in its window title bar.

The special tokens you can use when creating macros are:

Contents

Press Enter ( \r )

The first token you can use is '\r', which tells the macro processor to "hit the enter key". For example, this macro would prepare you to go off to battle:

get sword from my sheath\rrem my shield\r

This macro would output

get sword from my sheath
<press the Enter key>
rem my shield
<press the Enter key>

Cursor Placement ( @ )

When you put the '@' character in a macro, it tells the macro processor to "put the cursor right here". For example, if you set up a macro like this to greet people:

whisper @ 'Hi! Nice to meet you!

the processor would

(a) place the text "whisper 'Hi! Nice to meet you!" in the input line area, and then (b) position the cursor in between the words "whisper" and "'Hi! ". Then you would just key in the name and press the <Enter> key.

Prompt Me ( \? )

If you place any '\?' tokens in your macro, the macro processor will prompt you for a string to replace the \?'s with. For example, here is a macro I define as the Alt-G key (for 'G'et):

Get \?\rput \? in my backpack\r

When you hit the Alt-G key now, the program will prompt you for a string (let's say you key in "gem"), replace all occurrences of '\?' with "gem" and then output:

get gem <press Enter>
put gem in my backpack <press Enter>

Pause ( \p )

Placing a '\p' token in a macro will pause for 1 second. For example:

attack gamojab\r\p\p\pstance self taught\r

would:

attack gamojab<press Enter>
<pause 3 seconds>
stance self taught<press Enter>

Last Attacked ( \a )

This token will be replaced by the character last name

Short-cut keys:

Setting a macro key to one of the following strings will execute the following actions:

{magic} pops up the Magic Menu when you press that key.

{stance} pops up the Stance menu

{injuries} toggles the injury display between wounds/scars

{wounds} same as {injuries}

{cut} Since the Wizard totally takes over the keyboard

{copy} from Windows, these options allow you to assign

{paste} normal cut/copy/paste/clear actions for the

{clear} Windows clipboard.

{drag} shortcut to choosing "Drag/Drag Someone.." from the menu bar.

{rest}<action> puts you into "resting" mode. This is handy for when you have to step away from the computer for a while, but you don't want to be logged off. The Wizard will output an "experience" command every two minutes, followed by the action you have specified. For example:

{rest}act snores softly. Would do the following every two minutes:

exper <press enter>
act snores softly.

{script} shortcut to choosing "Scripts/Execute a Script" from the menu bar.

{record} shortcut to choosing "Scripts/Record a Script" from the menu bar.

{=script.wiz} this shortcut will execute the script specified. For example, if you have a script named "prep.wiz" in your scripts directory that preps and casts all of your normal pre-hunting defensive spells, you could fire that off from a keypress by setting the key macro string to:

{=prep} (or {=prep.wiz})

Personal tools