mIRC Home    About    Download    Register    News    Help

Print Thread
#226372 28/09/10 11:00 PM
Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
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 :\


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Menus have to be created via the XPopup commands before they can be added to the XMenuBar.

Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
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.


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Remove the /mpopup mircbar command. It doesn't do what I think you're expecting and appears to misbehave anyway.

Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
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.


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
That code works here. Have you tried restarting mIRC?

Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
*restarts mirc*
crazy

okay now it works >_>

Domo arigato.

*makes notation for Collective in the contributors section*

laugh


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
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,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
It doesn't work correctly on 6.35 either.

Joined: Aug 2010
Posts: 69
N
N3M3S1S Offline OP
Babel fish
OP Offline
Babel fish
N
Joined: Aug 2010
Posts: 69
Well I haven't returned the mpopup command to the script it is staying remove as it now works perfectly without.


"There is no theory of evolution, only a list of creatures Chuck Norris allows to live."

Link Copied to Clipboard