Hyperlink

Posted by Aznvt33 on Sat 23 Aug 2008 11:12 PM — 8 posts, 26,035 views.

#0
I'm trying to set up a trigger that'll help me weaponprobe items in a shop wares list without having to type out "wp <item #>". This is what I have:


<triggers>
  <trigger
   back_colour="8"
   enabled="y"
   match="([a-z]+)(\d{5,6})"
   match_back_colour="y"
   match_bold="y"
   match_inverse="y"
   match_italic="y"
   match_text_colour="y"
   regexp="y"
   send_to="12"
   sequence="100"
   text_colour="10"
  >
  <send>Hyperlink ("wp %0", "%0", "", "", "", 0)</send>
  </trigger>
</triggers>


The trigger fires fine, but when I try to click the hyperlink, nothing happens. I'm not sure what I'm doin wrong. I'm sorta of a newb at scripts :(



EDIT: For realm of Achaea
Netherlands #1
It looks just fine to me. However!

Nick, we've got a little bug. This little report made me try some old plugins of mine which I am sure used to work, and the hyperlinks in those have died. I'm going out on a limb here and assume that the miniwindows broke the actual 'try to match click with hyperlink' code.

Aznvt33, wait a few days till Nick brings out a new version with it fixed (he's usually pretty fast with this kind of thing), or downgrade a few versions. I can garantuee the one just prior to miniwindows being introduced works fine since I recall clicking links during my holidays. That should be version 4.33.
Australia Forum Administrator #2
Yes I confirm that is a bug, however it only seems to happen to me if:

  • You have used TextRectangle to make the text window smaller.
  • The hyperlink in question is near the end of the line - in fact, if the distance between it and the end of the line is less than the left-hand side of the text rectangle. It was testing where the text would have been, had it not been offset to the right.


It should be working (already) for straight hyperlinks if you don't use the TextRectangle script command.
Netherlands #3
I am resurrecting this thread, because...

... the code for the hint is also bugged in the same way. However, that code was not adjusted together with the code that tests for the click.
Australia Forum Administrator #4
Quite possibly, however I can't check right now - if I don't confirm in about a week, can you remind me again please?
Netherlands #5
Will do. :)
Netherlands #6
Bzzzzzzzt. Reminder!
Australia Forum Administrator #7
Fixed in version 4.38 - I seemed to have put a - where I meant a +.