ID:145402
 
Code:
macro
number1
set name = "1"
return "key1"
number2
set name = "2"
return "key2"
number3
set name = "3"
return "key3"
number4
set name = "4"
return "key4"
number5
set name = "5"
return "key5"
number6
set name = "6"
return "key6"
number7
set name = "7"
return "key7"
number8
set name = "8"
return "key8"
number9
set name = "9"
return "key1"


Problem description:
K so I macro the key so that if i push 1-9 it will do the command key1. But when I press 1-9 in game it says No macro is defined. Can somebody help me?

X0Gohan0X wrote:
Code:
> macro
> number1
> set name = "1"
> return "key1"
> number2
> set name = "2"
> return "key2"
> number3
> set name = "3"
> return "key3"
> number4
> set name = "4"
> return "key4"
> number5
> set name = "5"
> return "key5"
> number6
> set name = "6"
> return "key6"
> number7
> set name = "7"
> return "key7"
> number8
> set name = "8"
> return "key8"
> number9
> set name = "9"
> return "key1"
>


Replace that code with this:

macro
southwest
set name = "1"
return "key1"
south
set name = "2"
return "key2"
southeast
set name = "3"
return "key3"
west
set name = "4"
return "key4"
center
set name = "5"
return "key5"
east
set name = "6"
return "key6"
northwest
set name = "7"
return "key7"
north
set name = "8"
return "key8"
northeast
set name = "9"
return "key1"


Then tell us if it works.
In response to KirbyRules
Nope, still doesnt work.. I dunno what could be the problem.. I saw previous about macroing numbers and I dont think I did anything wrong.
In response to X0Gohan0X
Do you have a dms file AND client.script defined?
In response to Jp
Oh yeah, that was the problem.. But now I dont understand how to change the background of my text box withing the .dms file.

I had
client
script = "<STYLE>BODY {background: #add8e6; color: black}</STYLE>"


Before, but now what would I put inside the .dms file.