Quick and painless question...

Posted by Tatewaki2365 on Sun 12 Dec 2004 02:12 PM — 3 posts, 15,362 views.

#0
Well, I was just curious how one goes about setting up an alias or something (I've already set an alias for it, but I couldn't figure out how to get it to go to the command line) so that if I pushed one of the F keys, or some such, it would automaticly send a certain string of words to the command line... Such as:

I push F1 (Or some string of letters)
What goes to the command line:
emote <text> '(Here, I can insert the text that I want to start typing from)'
USA #1
You mean a macro.

Game > Configure > Macro

find the key combination you want, put the stuff there that you want (you can have it send to the command line)

If youre using F1 (or F6) you will need to check the 'F1 and F6 are macros' box in your general tab of global preferences.

If you need the macro to be smart (as in, have it do some scripting or something) you need to have it 'send' something that you wouldnt usually type (like "zqkjafwe" and then have an alias with that as match text). (Make a dummy alias, and have the macro trigger it.)
The reason for the unusual alias is so you dont accidentally run across it in normal usage, although if you want to just trigger an alias that you already have, you can have it use that.

If your key combination isn't on that list, you can still bind it using the accelerator function.
Reference this thread:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=4899
#2
Exactly what I was looking for, thanks.