1) Why are you calling the macro m50? M40-M46 are the typical M codes used for spindle speed ranges.
2) When you create an M code macro script, use lower case names for both the file AND the function inside it.
"m50.mcs" is correct, while "M50.mcs" is not correct for a file name.
function m50()
...
end
is correct and
function M50()
...
end
is NOT correct.
The FIRST thing you should do is take the example someone gives you and try it like it is. And there is no guarantee that script people throw up on the forum will work because a lot of the time the people trying to help are putting "the general idea" up to help you on your way. The rest is an exercise for the user (you).
But anyway, try it like the example was and get things working. THEN you can start renaming the macro script and function inside it.
When working with the script in the editor, it is always a good idea to try and compile it. Because compiling it in the editor will show you is there are any syntax errors. It could be as simple as a misspelled function call from a typo in the example.
So in summary, if a script is "being ignored", it is most likely because of:
1. Not using lower case names for functions and file names.
2. Not checking for syntax errors by compiling the macro script first.
Steve