mIRC Home    About    Download    Register    News    Help

Print Thread
7.27: hotlink rclick event fails to open menu #239537 06/11/12 08:01 PM
Joined: Sep 2003
Posts: 30
O
Ook Offline OP
Ameglian cow
OP Offline
Ameglian cow
O
Joined: Sep 2003
Posts: 30
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

Re: 7.27: hotlink rclick event fails to open menu [Re: Ook] #239546 07/11/12 08:48 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
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.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: 7.27: hotlink rclick event fails to open menu [Re: Ook] #239570 08/11/12 11:54 AM
Joined: Dec 2002
Posts: 4,563
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,563
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.