I am trying to find a way to capture the Lat/Long coords of a unit I have selected on the F10 map. I plan to modify an existing scratchpad mod. I'd like to add a button, when you select a unit on the map you can click the button and the coords will be copied into the clipboard or maybe have it directly pasted into the scratchpad window. Everything looks pretty strait forward except how to interact with the F10 map. Is there an object I can access? I can see the coords in a little window on the map. If I can get a handle that or the selected unit directly that would be good. There is a lot of info about lua and DCS, but very little on interacting with the UI or F10 map.
I guess I can go and start reverse engineering the lua scripts in DCS but that will take a lot longer.