Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
iluminati
Newbie


Joined: 05 Apr 2005
Posts: 8

PostPosted: Mon Jul 21, 2008 3:38 am   

Macro Keys
 
I noticed that a number of keys I used to use for macros in zmud do not seem to work in cmud. Is there a way to get the following keys to work?

cursor keys, PGUP, PGDN, HOME, END
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Mon Jul 21, 2008 4:24 am   
 
They work fine for me. *shrug*

Go to Package Editor, click New -> Macro, click on the name box (I believe that's what it is) and press the appropriate button.

Or, just do

#KEY INS {whatever}
#KEY UP {whatever}
#KEY DOWN {whatever}
#KEY LEFT {whatever}

and so forth.

Charneus
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Mon Jul 21, 2008 8:35 pm   
 
Actually, I was looking into this and another post about allowing macros to be assigned to the arrow keys. I found that CMUD *does* already have a way to do this, and Charneus is on the right track.

The problem is that the Ctrl-K Define Macro popup window doesn't recognize the arrow keys. So you have to use the syntax Charneus gave to define an arrow key macro:

#KEY UP {whatever}

But you *also* need to go into your Preferences and in the Command Line tab, turn on the "Allow alphanumeric keys to be macros". I an renaming this option in v2.33 to "Allow any key to be a macro" to make it a bit more obvious. This option allows you to define *any* key to be a macro, even a key like "A", etc. So be careful with it.
Reply with quote
iluminati
Newbie


Joined: 05 Apr 2005
Posts: 8

PostPosted: Mon Jul 21, 2008 10:01 pm   
 
The "Allow alphanumeric keys to be macros" option did the trick. Thanks guys.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net