Here’s the location macro I use (I’ve always hated mods. DBM was pretty much the only one I ever used consistently and I don’t use that anymore).
/script local px, py= GetPlayerMapPosition( “player” ) DEFAULT_CHAT_FRAME:AddMessage(string.format ( “(%s, %s) %s”, floor(px * 100 + 0.5), floor(py * 100 + 0.5), GetZoneText() ))
Just remember, 0,0 is the top left corner of the screen. Unlike most maps (with the odd exception of Queens & Brooklyn), you read right then down.
Note though: if you use the Wowhead addon, which I do, it now shows your grid coords on the map.