mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jul 2006
Posts: 4,149
W
Wims Offline OP
Hoopy frood
OP Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
Code:
on *:hotlink:www.google.com:*:{
  if (($hotlink(event) == rclick)) hotlink -m @test_bug
}
menu @test_bug {
mymenu : echo -a am i even going here?
mymenu1 : echo -a am i even going here1?
}
It simply use the default behavior of the default mIRC menu when you right click an url.
If you select 'mymenu', it's the first item of the default menu for urls, so it opens in a new tab, select the second item 'mymenu1' and it will open the url in a new window.

Also confirmed for the default menu of channels.

Note that if the default menu suggests N options and your custom menu has more than N options, the Nth+1 option of your custom menu will work.
For example, right clicking a channel name gives you 4 options by default, if your custom menu, when matching channels, has 5 options, the 5th will work.

Tested on 7.32


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Confirmed.

Definitely seems new to 7.32, as I have a script that lets you choose which browser to open links in via a popup menu that no longer works.

Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks this issue has been fixed for the next version. One way around it for now is to include the default menu by using /hotlink -md.


Link Copied to Clipboard