Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ Hyperlink

Hyperlink

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Aznvt33   (18 posts)  Bio
Date Sat 23 Aug 2008 11:12 PM (UTC)
Message
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
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #1 on Sun 24 Aug 2008 12:31 AM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 24 Aug 2008 03:28 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #3 on Fri 26 Sep 2008 09:55 PM (UTC)
Message
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.
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #4 on Sat 27 Sep 2008 04:55 AM (UTC)
Message
Quite possibly, however I can't check right now - if I don't confirm in about a week, can you remind me again please?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #5 on Sat 27 Sep 2008 10:10 AM (UTC)
Message
Will do. :)
Top

Posted by Worstje   Netherlands  (899 posts)  Bio
Date Reply #6 on Sun 05 Oct 2008 07:24 AM (UTC)
Message
Bzzzzzzzt. Reminder!
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #7 on Tue 07 Oct 2008 05:34 AM (UTC)
Message
Fixed in version 4.38 - I seemed to have put a - where I meant a +.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


18,612 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.