Hi everyone,
On install, my plugin creates a bunch of aliases for directions from an xml file. These directions are then displayed in a miniwindow and given a hotspot, when a user clicks on the hotspot, the plugin should call the alias.
I have got it working right now like so:
The hotspot_id is the string name of the alias. I can execute aliases that already exist (ones setup through the GUI) by simply doing "Execute(alias_name)", why does this not seem to be possible for aliases loaded via ImportXML? I would I think I could simply do the above code like so:
Thanks for the help!
Andrew
On install, my plugin creates a bunch of aliases for directions from an xml file. These directions are then displayed in a miniwindow and given a hotspot, when a user clicks on the hotspot, the plugin should call the alias.
I have got it working right now like so:
function goto_area(flags, hotspot_id)
iStatus, alname, almatch, alresponse, alflags, alscriptname = GetAlias(hotspot_id)
Execute(almatch)
end -- function
The hotspot_id is the string name of the alias. I can execute aliases that already exist (ones setup through the GUI) by simply doing "Execute(alias_name)", why does this not seem to be possible for aliases loaded via ImportXML? I would I think I could simply do the above code like so:
function goto_area(flags, hotspot_id)
Execute(hotspot_id)
end -- function
Thanks for the help!
Andrew