mIRC Home    About    Download    Register    News    Help

Topic Options
#261482 - 11/10/17 11:29 PM Menu field does not triggering
DooMaster Offline
Mostly harmless

Registered: 11/10/17
Posts: 1

I am trying to handle via single-click on the dialog to make it trigger so I can perform to act like a button for a specific reason, but it seems that it does not, I've try to use 'mouse' devent too but I did not got any response, I know that I can use items and handle their ids but I want only to trigger when someone single-click only on the menu.

dialog test {
  title ""
  size -1 -1 265 50
  option dbu
  menu "Click here to see that is not trigger", 1

ON *:DIALOG:test:*:*: {
  if ($devent == menu) {
    if ($did == 1) { echo -a GOTCHA! > $did($did).text }

#261483 - 12/10/17 07:52 AM Re: Menu field does not triggering [Re: DooMaster]
Khaled Offline

Planetary brain

Registered: 04/12/02
Posts: 4130
Loc: London, UK
Thanks for your bug report. The "menu" type cannot be triggered as it is the title of a menu, not an actual menu item. Only a menu "item" can send a Windows message that indicates selection of that item. You will need to add an "item" to the menu to enable selection of a specific menu item.