WRCLiam Posted January 21, 2010 Report Share Posted January 21, 2010 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 More sharing options...
WRCLiam Posted January 21, 2010 Author Report Share Posted January 21, 2010 Your the man. Cheers mate Link to comment Share on other sites More sharing options...
WRCLiam Posted January 21, 2010 Author Report Share Posted January 21, 2010 (edited) 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 January 21, 2010 by WRCLiam Link to comment Share on other sites More sharing options...
WRCLiam Posted January 21, 2010 Author Report Share Posted January 21, 2010 (edited) ahh i got a error - * Invalid parameters: $did (line 10, script1.mrc) - i've just tried $did(ab,17) with no luck Edited January 21, 2010 by WRCLiam Link to comment Share on other sites More sharing options...
WRCLiam Posted January 21, 2010 Author Report Share Posted January 21, 2010 Thanks for the help ! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now