I have just checked and the following is the default display (minus color) of a fserver ad
- File Server Online Triggers:«/ctcp DaveC !trigger1» Sends:«0/1» Queues:«0/20» Accessed:«0 times» Online:«0/4» RCPS:«0 cps by n/a» Served:«0B in 0 files» Current BW:«0 cps» AQT:«No Wait» Serving:«901 files» MOTD: -= Invision 2.0 Build 3515
I have seen a variety of differing formats these 6 cover i beleave 99%
File Server Online Trigger: «*»*
File Server Online Triggers:«*»*
File Server Online! Trigger:«*»*
File Server Online! Triggers:«*»*
«File Server Slot Free» Trigger:«*»*
«File Server Slot Free» Triggers:«*»*
You well note the « » surround the triggers in everycase, this maybe only the case in the channels i visit, however since it seems the default invision setting also.
I would assume the trigger is the text represented by * between
trigger:«*» And its multiple triggers in
Triggers:«*» the sepeartor between triggers is
• or
$+($chr(32),$chr(149),$chr(32)) (incase that translates wrong on the forum)
As a second question... can a hotlink span multiple words? I can't seem to make it work. In the example of /ctcp test me trigger, I'd like a person to be able to double click on any part of the trigger.
Well that depends how you want to define what a hotlink is.
Programaticly the answer is NO, the match text section of a hotlink well not match across words so
on ^*:HOTLINK:*«*»*:#:{
Well NEVER match
Trigger:«/ctcp DaveC !trigger1»You would have to use
on ^*:HOTLINK:*:#:{
And then using $hotlinepos (returns word position then line number in window, help file infers its the other way around <eeek!>) check if the word your on ($1) in $hotline is inside part of a trigger, if so RETURN if not HALT
you then do the same on
on *:HOTLINK:*:#:{
but trigger the trigger as its been clicked.
This generates what appears to be multi word hotlinks, but is infact a seperate hotlink detection for each word (you notice while over the spaces the mouse changes back lol)
****
Having said all of that above, one consideration is the shear volume of code having to be processed over and over and over which u want to try an minimize.
(When i did mine it covered Invision Polaris Excursion SysReset & FireServ). It ran ok but i decided to go a different way in the end.
Heres something like what i did.
Captured text with ON ^*:TEXT:*:#{
pharsed the line for being a fserver add
located the trigger
stripped the trigger of control codes
replaced $chr(160) with ctrl-r,ctrl-r,$chr(160)
replaced $chr(32) with $chr(160)
added to the front ctrl-b,ctrl-b,ctrl-r and to the end ctrl-r,ctrl-b,ctrl-b
inserted the trigger back into the line
displayed the line
halted
.
Hotlinked with ON ^*:HOTLINK:$($+(ctrl-b,ctrl-b,ctrl-r,*,ctrl-r,ctrl-b,ctrl-b)):#:{ return }
.
Hotlinked with ON *:HOTLINK:$($+(ctrl-b,ctrl-b,ctrl-r,*,ctrl-r,ctrl-b,ctrl-b)):#:{
replaced $chr(160) with $chr(32)
replace ctrl-r,ctrl-r,$chr(32) with $chr(160)
striped control codes
had the trigger so activated it.
* As you can see this way the hotlink is simply on a already "marked up" (for a better word) hotlink, and thus the mouse over processing is minute.
* I did it this way, becuase i was also already recording triggers by nick as they appeared and originally just adding ctrl-r at the begining and end of them for easy siting on the line for cut and pasting, so i thought well why not just mark them up as a special hotlink.
PS: just remebered i said in PM's as well (namely @find's)
*Found:* Use the trigger:
* in the channel.*
*Found:* Use the trigger:
**Found * To access this, type
* in the channel.*
*Found * To access this, type
*these are the matching texts that locate the trigger, in 99% of the pm lines, blue star is the trigger
Hope I helped rather than hindered your progress. :-)