Skip to content
General IRCd

Mirc Toolbar Problem

A TG007 community discussion started by WRCLiam.

Discussion 12 posts
Page 1 of 1
Open
Topic #13873 · 12 published posts · 4,893 views

At the moment i'm playing around with a toolbar i made, i'm now having probs

19658218.png

on *:dialog:k_bar:sclick:4: {
  if ($did($dname,4).sel = 4) { dialog -m ab ab 
    else {
      halt
    }
  }
}
on *:dialog:k_bar:sclick:4: {
  if ($did($dname,4).sel = 2) {
    if ($scid($activecid).status = connecting || $scid($activecid).status = connected ) { scid $activecid disconnect }
    else {
      scid $activecid server
    }
    update_k
    scid $activecid window -a "status window"
  }
}

 

If i was to take away

on *:dialog:k_bar:sclick:4: {
  if ($did($dname,4).sel = 4) { dialog -m ab ab 
    else {
      halt
    }
  }
}

the connect button works.

the .sel 4 will the button next to the connect one which works fine, BUT then the .sel 2 which is the connect button wont work untill i remove the sel 4

 

make sence?

Hmmm just a guess off the top of my head but try...

 

on *:dialog:k_bar:sclick:4: {
  if ($did($dname,4).sel = 2) {
    if ($scid($activecid).status = connecting || $scid($activecid).status = connected ) { scid $activecid disconnect }
    else {
      scid $activecid server
    }
    update_k
    scid $activecid window -a "status window"
  }
  elseif ($did($dname,4).sel = 4) {
    dialog -m ab ab
    else {
      halt
    }
  }
}

 

Thanks mate, it work...

You had two of the same events. mIRC will only process the first one. That is why the second event didnt work.

One other thing i've been having problems with is docking, i've used hosdock and rebar, i'm using mirc 3.5 none of them dlls seem to be docking probably

any ideas?

Use dcx and the /xdock feature.

* agrees with travis.. xdock in dcx is the best way to go.

Get information about ircWx here

did you say mIRC 3.5? why are you using such an ancient version?

Sorry 6 35

 

Whats the alias to dcx.dll?

 

i have: alias xdock { dll $shortfn($scriptdirdcx.dll) $$1- }

 

and: xdock -t $dialog(k_bar).hwnd +h

n1373=;;DCX;;
n1374=dcx {
n1375= if ($isid) { return $dll(dll\dcx.dll,$1,$2-) }
n1376= else { dll "dll\dcx.dll" $1 $2- }
n1377=}
n1378=udcx {
n1379= if ($dcx(IsUnloadSafe)) { $iif($menu, .timer 1 0) dll -u dcx.dll }
n1380= else { echo 4 -qmlbfti2 [DCX] Unable to Unload Dll. }
n1381=}
n1382=xdid {
n1383= if ( $isid ) { return $dcx( _xdid, $1 $2 $prop $3- ) }
n1384= dcx xdid $2 $3 $1 $4-
n1385=}
n1386=xdialog {
n1387= if ( $isid ) { return $dcx( _xdialog, $1 $prop $2- ) }
n1388= dcx xdialog $2 $1 $3-
n1389=}
n1390=xpop {
n1391= if ( $isid ) { return $dcx( _xpop, $1 $prop $2- ) }
n1392= dcx xpop $2 $1 $3-
n1393=}
n1394=xpopup {
n1395= if ( $isid ) { return $dcx( _xpopup, $1 $prop $2- ) }
n1396= dcx xpopup $2 $1 $3-
n1397=}
n1398=mpopup { dcx mpopup $1 $2 }
n1399=xdock {
n1400= if ($isid) { return $dcx( _xdock, $1 $prop ) }
n1401= dcx xdock $1-
n1402=}
n1403=xtray {
n1404= if ($isid) { return $dcx(TrayIcon, $1 $prop $2-) }
n1405= dcx TrayIcon $1-
n1406=}
n1407=tab {
n1408= var %i = 1, %tab | while (%i <= $0) {
n1409= if ($eval($+($,%i),2) != $null) { %tab = $instok(%tab,$eval($+($,%i),2),$calc($numtok(%tab,9) + 1),9) }
n1410= inc %i
n1411= }
n1412= return %tab
n1413=}
n1414=shell { return $scriptdirshell.dll }

 

Travis

I take it thats the alias for dcx?

in the bit above this appears to be the dcx alias

 

dcx {
if ($isid) { return $dll(dll\dcx.dll,$1,$2-) }
else { dll "dll\dcx.dll" $1 $2- }
}

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

Those are the aliases for dcx you asked for. They come in the dcx zip file.