ID:1746901
 
How do web browsers interpret macro in .dms files? As a conversion to Javascript with event listeners? Or is there some html syntax I'm unaware of that allows these type of definitions?

e.g.
macro
West+REP return ".west"
CTRL+S return "say"
CTRL+Z return "sleep"
CTRL+Z+UP return "stop sleep"


The only event listener I think would work with all these is key down with any key as an argument "character + character" || "character". Not sure how many characters can be catenated together. From this example I would say two. Up to two? So a definition like this internally runs javascript for html page and also sends a process to be done by the sever? That's my guess. Can any contribute a correction?

Are macros awkward in comparison to how everything else is done, just to maintain backwards compatibility? Or is it like that to be hidden and not let the average programmer/hacker(not cracker) build something that takes advantage of macros.