Jump to content

Mirc Check-box


WRCLiam

Recommended Posts

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

 

Link to comment
Share on other sites

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