I tried testing a little more to see if I could get info about the other listed hotspots.
I changed the mouseup function to this:
function who_close_mouseup(flags, hotspot_id)
Win, action = string.match(hotspot_id, "^([%a_]+):(%a+)")
Note("--- Parse ID and Window Name:")
Note("action="..action)
Note("win="..Win)
Note("hotspot_id="..hotspot_id)
hotspots = WindowHotspotList(Win)
Note("--- Info for all hotspots in ".. Win)
if hotspots then
for _, v in ipairs (hotspots) do
Note (v)
for i=1,12 do
Note("WindowHotspotInfo(\""..Win.."\", \""..v.."\", "..i..") = "..tostring(WindowHotspotInfo(Win, v, i)))
end
end
end -- if any
end
And this was the output when it was called:
--- Parse ID and Window Name:
action=close
win=HoG_Who_Window
hotspot_id=HoG_Who_Window:close
--- Info for all hotspots in HoG_Who_Window
Darwin
WindowHotspotInfo("HoG_Who_Window", "Darwin", 1) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 2) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 3) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 4) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 5) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 6) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 7) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 8) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 9) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 10) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 11) = nil
WindowHotspotInfo("HoG_Who_Window", "Darwin", 12) = nil
HoG_Who_Window:close
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 1) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 2) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 3) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 4) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 5) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 6) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 7) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 8) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 9) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 10) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 11) = nil
WindowHotspotInfo("HoG_Who_Window", "HoG_Who_Window:close", 12) = nil
TestNewbieFour
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 1) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 2) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 3) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 4) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 5) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 6) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 7) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 8) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 9) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 10) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 11) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieFour", 12) = nil
TestNewbieThree
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 1) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 2) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 3) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 4) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 5) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 6) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 7) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 8) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 9) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 10) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 11) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieThree", 12) = nil
TestNewbieTwo
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 1) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 2) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 3) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 4) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 5) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 6) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 7) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 8) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 9) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 10) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 11) = nil
WindowHotspotInfo("HoG_Who_Window", "TestNewbieTwo", 12) = nil
Testnewbieone
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 1) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 2) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 3) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 4) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 5) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 6) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 7) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 8) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 9) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 10) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 11) = nil
WindowHotspotInfo("HoG_Who_Window", "Testnewbieone", 12) = nil
|