randomfox: (Default)
[personal profile] randomfox
Right-click on a Topozone link and select the geotag item in the popup menu to generate a Geobloggers geotag for pasting into "Add a tag" at Flickr.

The status bar will display the result of the macro.

function GeoTag(hwnd)
    id(hwnd, "ID_COPY_LINK_LOCATION")
    local link = getclipboard()
    local s, replcount = string.gsub(link, ".-(%d+%.%d+).-(%-%d+%.%d+).*", "geotagged geo:lat=%1 geo:lon=%2", 1)
    if replcount > 0 then
	setclipboard(s)
	SetStatusBarText("Clipboard set to: " .. s)
    else
	SetStatusBarText("Can't generate geotag for this link")
    end
end


In menus.cfg:

Link{
.
.
.
%ifplugin luamacros
luamacros(GeoTag, GeoTag from Link)
%endif
.
.
.
}
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

randomfox: (Default)
randomfox

November 2012

S M T W T F S
    123
45678910
11121314151617
18192021222324
25262728 2930 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 14th, 2026 05:49 am
Powered by Dreamwidth Studios