ID:146294
 
Code: macros.dms
macro
g
return "get"
Numpad8
return "attack_head"
Numpad5
return "attack_chest"
Numpad7
return "attack_lhand"
Numpad9
return "attack_rhand"
Numpad1
return "attack_lfoot"
Numpad3
return "attack_rfoot"


Problem description: Whenever I attempt to use a preset macro. It tells me that there is no defined macro for the button. I've checked to make sure my macro matches which button I'm attempting to use as a macro and I have no idea what is going wrong. I looked at ShadowDarke's tut on macros and it says to use a .dms file and I used notepad to save the coding as a .dms file and I used "" to make sure it's not saved as a .txt file but somewhere something is going wrong.

For numpad 5, it is "center". For numpad 1, it is "Southwest". For numpad 8, it is "North".

Get it?

Also, you need to put macros in a script file, not a code file.

[edit] If you need to know where a script file is, go to
file > new > dropdown menu > script(dms) > name > Ok
In response to Hiddeknight
How exactly do you place coding into a script file? I thought that maybe using the program notepad to code in the macros and importing it into DM would work. It shows up as a script file.

As for the Numpad# lemme go back and see if those work.

[Edit]
Here's what it does:
[No macro is defined for "5". Toggle macro-mode to use the command prompt, or preface commands with "/".]


[No macro is defined for "1". Toggle macro-mode to use the command prompt, or preface commands with "/".]


[No macro is defined for "7". Toggle macro-mode to use the command prompt, or preface commands with "/".]


[No macro is defined for "8". Toggle macro-mode to use the command prompt, or preface commands with "/".]


[No macro is defined for "9". Toggle macro-mode to use the command prompt, or preface commands with "/".]


[No macro is defined for "2". Toggle macro-mode to use the command prompt, or preface commands with "/".]


[No macro is defined for "3". Toggle macro-mode to use the command prompt, or preface commands with "/".]
In response to Synicus
actually, im having this problem too and mine is in a script file
In response to Cheetoz
Did you even read what I said? It is not Numpad 1, It is Southwest.

THAT is how you refer to it... Hold on.

Numpad 1 = Southwest
Numpad 2 = South
Numpad 3 = Southeast
Numpad 4 = West
Numpad 5 = Center
Numpad 6 = East
Numpad 7 = Northwest
Numpad 8 = North
Numpad 9 = Northeast
In response to Hiddeknight
I am opposed to giving you your code, but I want to get this simple problem over with...

macro
g return "get"
North return "attack_head"
Center return "attack_chest"
Northwest return "attack_lhand"
Northeast return "attack_rhand"
Southwest return "attack_lfoot"
Southeast return "attack_rfoot
In response to Hiddeknight
Hiddeknight wrote:
Did you even read what I said? It is not Numpad 1, It is Southwest.


I did refer to the macros as such and that is what it returned. Now before you go into a fit let me ask you something. Would Numlock have any adverse effects on this issue? O_o
In response to Synicus
If numlock is off, Then they will activate no matter what.
In response to Hiddeknight
You simply put that in the script file, as shown above... except you have to indent them in, not with the spacebar, with tab, obviously.
In response to Hiddeknight
I was asking because I have NumLock on (standard) and I figured that the program may be reading my keys as only num and not as directions (e.g. Center, North, etc.)
In response to Synicus
Right, look, did the script file with that code work or not? Because this is really simple and I have other things I could be doing, you know...
In response to Hiddeknight
Thank your for your help. Sorry to annoy you I just needed a little guidance. Sorry to anyone who's had to suffer through reading this.

In response to Synicus
You haven't awnsered me, does it work?
In response to Hiddeknight
Yes it worked. I tinkered with it a bit and found that the return had to match the name that was given to the verb and I had to turn of NumLock.
In response to Hiddeknight
His macro names were perfectly valid. Also, you most certainly can do your programming in a different text editor as long as you save it as a text file with a DM code or script file extension.
In response to Synicus
Lol, ok.