mIRC Homepage

7.27: hotlink rclick event fails to open menu

Posted By: Ook

7.27: hotlink rclick event fails to open menu - 06/11/12 08:01 PM

Code:
menu @hotlink.menu {
  Test Menu
  .test Item: echo -s test
}
on *:hotlink:*http://*:*: {
  if ($hotlink(event) == rclick) hotlink -md @hotlink.menu
}
on *:hotlink:*test*:*: {
  if ($hotlink(event) == rclick) hotlink -md @hotlink.menu
}


Use this code & echo the line

Code:
test test test http://boss.com/file.png


Then right click over the word test, no menu appears.
right click over the url & only the default menu appears.

The custom menu is never shown.
The above code works fine in mIRC v7.25 but not in v7.27
Posted By: argv0

Re: 7.27: hotlink rclick event fails to open menu - 07/11/12 08:48 AM

This only explains the differing behaviour between your events: you have a ":" in your http matchtext, which causes problems with the event syntax. You probably want:

Code:
on *:hotlink:$(*http $+ $chr(58) $+ //*):*: { ...


It doesn't explain why /hotlink doesn't work.
Posted By: Khaled

Re: 7.27: hotlink rclick event fails to open menu - 08/11/12 11:54 AM

Thanks for the bug report. It appears that one of the hotlink bug fixes in v7.26 has caused the hotlink menu feature to no longer work. This issue has been fixed for the next version.
© 2019 mIRC Discussion Forums