mIRC Home    About    Download    Register    News    Help

Print Thread
#226372 28/09/10 11:00 PM
N
N3M3S1S
N3M3S1S
N
this involves the xmenubar command.

Code:
;menubar call back

alias dxmb { 

  if ($1 == $null) {
    xmenubar -M dxmb
    xmenubar -g
    xmenubar -a deluxe mIRC
    xmenubar -a deluxe File
    xmenubar -a deluxe View
    
  }

  else {
    echo -a Menubar: $1-
  }

}
alias undo { xmenubar -r }


/dxmb is what initiates the toolbar. /undo is what returns it back to the normal mIRC toolbar.

Well whenever I use this command it changes it over to the DCX menu bar but none of the items appear, and the call back alias returns this error msg: D_ERROR -a (Cannot find menu "deluxe".)

??? And I cant figure out how to add items to the new menus. The DCX help file seemed very vague on this feature :\

#226378 29/09/10 03:59 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Menus have to be created via the XPopup commands before they can be added to the XMenuBar.

N
N3M3S1S
N3M3S1S
N
So

Code:
;menubar

alias dxmb {

  mpopup mircbar 1
  xpopup -c deluxe officexp
  xpopup -m deluxe
  xpopup -s deluxe +m
  xmenubar -M dxmbcb
  xmenubar -g
  xpop -a deluxe 1 $chr(9) + 15000 0 Connect
  xpop -a deluxe 1 $chr(9) + 15001 0 Disconnect
  xmenubar -a deluxe mIRC

}

;callback alias

alias dxmbcb { echo -a Menubar: $1- }

;undo (temp cmd)

alias undo {
  if ($dialog(dxtb) != $null) { dialog -x dxtb }
  xpopup -d deluxe
  xmenubar -r
}


This is what I've got so far. But when the menu pops up, it drops down but the text is not there :\

Frustration is beginning to kick in now I've been messing with this damn thing all day.

#226388 29/09/10 07:59 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
Remove the /mpopup mircbar command. It doesn't do what I think you're expecting and appears to misbehave anyway.

N
N3M3S1S
N3M3S1S
N
Code:
;menubar

alias dxmb {

  ;mpopup mircbar 1
  xpopup -c deluxe officexp
  xpopup -m deluxe
  xpopup -s deluxe +m
  xmenubar -M dxmbcb
  xmenubar -g
  xpop -a deluxe 1 $chr(9) + 15000 0 Connect
  xpop -a deluxe 1 $chr(9) + 15001 0 Disconnect
  xmenubar -a deluxe mIRC

}


No difference. Same results.

dcx_tools.mrc or the callback alias are not returning any error messages either.

#226391 29/09/10 08:12 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
That code works here. Have you tried restarting mIRC?

N
N3M3S1S
N3M3S1S
N
*restarts mirc*
crazy

okay now it works >_>

Domo arigato.

*makes notation for Collective in the contributors section*

laugh

Joined: Jan 2007
Posts: 1,155
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,155
The mpopup command doesn't seem to work correctly with mirc7.1.

DJ_Sol #226434 30/09/10 06:43 AM
Joined: Dec 2002
Posts: 3,015
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,015
It doesn't work correctly on 6.35 either.

N
N3M3S1S
N3M3S1S
N
Well I haven't returned the mpopup command to the script it is staying remove as it now works perfectly without.


Link Copied to Clipboard