Question was is there any way to differentiate any links or say click marks on a page that could trigger different events?
worldrave,
Here's what I'm doing, and it works very nicely, with a minimum of work. I create a UserEvent event string for each command or multigroup that I want to start from the web plugin.
My links on the HTML pages take the simplest possible form:
"http://dvd.cooldog.com/filename.html?*eventString"
The script looks for the star, strips it off, and calls TriggerEvent with "eventString". That's it. One script, triggered by ALL web events. I did the bit with the '*', just in case I decided to do anything any different at a later date.
Here's the LUA script:
Code:
if (strsub(pld1, 1, 1) == "*") then
TriggerEvent(strsub(pld1, 2), 142)
end
You need to be running the latest pre-release version to use this wonderfully simple method.
Regards,
Paul