Jump to content

Mirc Toolbar Problem


WRCLiam

Recommended Posts

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?

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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 }

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...