ID:150718
 
This is the first I've tried to define some keyboard macros in my game, and I'm having trouble. I'm using a sample from the reference, to no avail:

client
command_text = ".alt"
macro
i return "inventory"

My command text actually comes up as the text string ".alt" instead of an alt keypress. The macro doesn't work, and anything I enter on the input line I have to hit escape first.

What am I missing here?
On 8/5/01 8:06 pm Skysaw wrote:
This is the first I've tried to define some keyboard macros in my game, and I'm having trouble. I'm using a sample from the reference, to no avail:

client
command_text = ".alt"
macro
i return "inventory"

My command text actually comes up as the text string ".alt" instead of an alt keypress. The macro doesn't work, and anything I enter on the input line I have to hit escape first.

What am I missing here?

I'm not sure you need anything for the command_text, but I don't know that part as well.

Here is what some of my macros look like:

macro
say
set name = "s"
return "say \"\.."

tell
set name = "t"
return "tell"
On 8/5/01 8:06 pm Skysaw wrote:
This is the first I've tried to define some keyboard macros in my game, and I'm having trouble. I'm using a sample from the reference, to no avail:

client
command_text = ".alt"
macro
i return "inventory"

My command text actually comes up as the text string ".alt" instead of an alt keypress. The macro doesn't work, and anything I enter on the input line I have to hit escape first.

What am I missing here?

Did you put them in a script file? If so, the macro geading doesn't need to be indented under client. I have no experience with the command_text.