mIRC Homepage
Posted By: TonberryKing Popups... kinda - 13/08/03 09:19 AM
When a #channel appears on the window, you can right click it, and 3 items come up: Join, List Users, Show Topic. Is there anyway to change this?

Secondly, if I have a Custom Window, and I have a hotlink event for a specific word, can I get it to popup a menu when I right click it?

Thanks
Posted By: theRat Re: Popups... kinda - 13/08/03 10:44 AM
Not possible, w/o DLL...
Posted By: CyBot Re: Popups... kinda - 13/08/03 11:29 AM
Well to the first one, if you're talking about joining a channel then just hold alt + p, unless you mean something else, im not sure about custom windows, you can have a menu, but not specifically on a certain place, unless using a picture window i believe.
Posted By: Rich Re: Popups... kinda - 14/08/03 02:50 PM
Best solution I could think of:
Code:
on ^*:HOTLINK:*:@blah:{
  if (#* iswm $1) return
  if ($1 == blah) set %hotlink_blah $true
  else unset %hotlink_blah
  halt
}
menu @blah {
  $iif(($window($active).type == custom) && (%hotlink_blah),Blahmenu) :blah custom window
  $iif(blah isin $1-,Blahmenu) :blah listbox window
}


I'ts far from perfect though:
It will hide the #channel menu, but I couldn't get any other menu to appear.
If @blah is a custom window (/window @blah) and you move your mouse over the word 'blah', the menu will appear everytime you right-click untill you move your mouse over another word, so moving it over white space will not remove the menu.
If @blah is a listbox (/window -l @blah) the menu will appear if 'blah' is anywhere in the line you clicked on
Posted By: TonberryKing Re: Popups... kinda - 16/08/03 10:52 PM
Following Rich's idea, I couldn't get the popup to appear, but I've managed to devise a similar script to shove everything into variables and then I can use the popup to do what I want

Thanks for your ideas and help grin
© mIRC Discussion Forums