Skip to content
General IRCd

Mirc Check-box

A TG007 community discussion started by WRCLiam.

Discussion 5 posts
Page 1 of 1
Open
Topic #13891 · 5 published posts · 2,794 views

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

 

Your the man. Cheers mate

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

Edited Jan 21, 2010 6:19 PM by WRCLiam

ahh

 

i got a error

 

-

* Invalid parameters: $did (line 10, script1.mrc)

-

i've just tried $did(ab,17) with no luck

Edited Jan 21, 2010 6:47 PM by WRCLiam

Thanks for the help ! :P