Jump to content

WRCLiam

Members
  • Posts

    54
  • Joined

  • Last visited

Posts posted by WRCLiam

  1. I've come up with this, but still no work, status window gos crazy and mirc crashes

     

    alias k_bart_cb {
      if ($2 != mouse) {
        echo $color(info) -s */ k_bart_cb: $1-
        if ($3-4 == 1 1) if ( $scid($activecid).status = connecting || $scid($activecid).status = connected ) { 
          set %pres disc
          xdid -v k_bart 1 1 Disconnect
        }
        else {
          set %pres conn
          xdid -v k_bart 1 1 Connect
        }
      }
    }

    ================EDIT=================

     

    I've worked it out!

  2. Hey

     

    (Still trying to convert)

     

    I finaly have the slick working great, now for this

     

    the xdid below doesnt seem to be working, i've also tryed -t and -o the button is for connect and dissconnect

    alias update_k {
      if (!$dialog(k_bart_table)) { halt }
      else {
        scid $activecid
        if ( $scid($activecid).status = connecting || $scid($activecid).status = connected ) { 
          xdid -a $dname 1 1 +cvb 0 1 $rgb(255,0,0) Dis $chr(9) Tooltip
        }
        else {
          xdid -a $dname 1 1 +cvb 0 1 $rgb(255,0,0) Con $chr(9) Tooltip
        }
      }
    }
    
    ;// Callback alias for k_bart
    alias k_bart_cb {
      if ($2 != mouse) {
        echo $color(info) -s */ k_bart_cb: $1-
        if ($3-4 == 1 1) if ($scid($activecid).status = connecting || $scid($activecid).status = connected ) { scid $activecid disconnect }
        else {
          scid $activecid server
        }
        update_k
      }
    }

  3. Sorry Dan, you must have posted at the same time as me. Thanks for your help mate. Just one more question, when the toolbar is docked it still have the titlebar, and its very small, how would i get rid of the titlebar and make the toolbar ... dialog size, make any sence?

     

    cheers

     

    EDIT: Fixed!

  4. Ok, so...

     

    on *:dialog:k_bart:*:*: {
      if ($devent == init) {
        dcx Mark $dname k_bart_cb
        xdialog -b $dname +mntyz
    
       ;// Call initilisation alias
        k_bart_init_dcx
      }
    }
    
    ----------to this---------
    on *:dialog:k_bart:*:*: {
      if ($devent == init) {
        dcx Mark $dname k_bart_cb
        xdialog -b $dname +mntyz
    
       ;// Call initilisation alias
        k_bart_init_dcx
        cb_alias $dname sclick 1 1 echo -a test
      }
    }

     

    ?

  5. Hi guys, I'm having problems trying to convert a toolbar i made with MDX

     

    Where would i put the sclick for DCX button

     

    bit of code

     

      xdialog -c $dname 1 toolbar -3 -3 496 34 flat top list tooltips arrows tabstop
      xdid -l $dname 1 32
      xdid -m $dname 1 0
      xdid -a $dname 1 1 +cv 100 1 $rgb(255,0,0) Button $chr(9) Tooltip
      xdid -w $dname 1 +n 0 C:\Users\Liam\Kaleidoscope\sys\k.ico
      cb_alias $dname sclick 1 1 echo -a test
    }

     

    I did read the manual put that doesnt give much help

  6. If you could also help with this issue

     

    on start (the check box)

     

    the idea would be if the check box is checked it would display on startup, and if not checked then the dialog would not be displayed on start...

     

     

    what i came up with

     

    on *:start: {
      k_bar
      set %version $version
      if (%cb == checked) { 
        dialog -m ab ab
        did -c ab 17
      }
      else { halt
      }
    }

  7. Hi guys

     

    I need help, i've added a check-box to a dialog and i'm having problems trying to code it, its been so long :(

     

    heres what i came up with, and no worky!

     

     

    on *:dialog:ab:sclick:17: {
      if (%cb == checked) { set %cb unchecked | did -u ab 17 | echo -a 1
        elseif (%cb == unchecked) { set %cb checked | did -c ab 17 | echo -a 2
        }
      }
    }

     

×
×
  • Create New...