Archive: Getting user input using MUI and a MULTISELECT list box.


Getting user input using MUI and a MULTISELECT list box.
Hi, I'm a new user of NSIS trying to find the more information possible:).I'm using MUI, I've got a "myfile.ini" wich describes a custom page,and when I try to get the 'State' of a 'listbox' with 'Flags=MULTISELECT|EXTENDEDSELECT'using :

MUI_INSTALLOPTIONS_READ $0 "myfile.ini" "Field 1" "State"

It seems $0 contain all the options chosen separeted by a '|' and I can't do a 'strcmp' to verify : "is this particulary option selected ?"

I'd like to know if someone has developped a function or something to isolate every options that were selected by the user ?

Yes, I know, I could do that all alone, but I don't want to lose my time if it's already done;) Moreover, it'd be useful to have such a function integrated (I don't know how:))

Thanks


There doesn't seem to be a function in the archive. You can create one using the NSIS string commands.

About the integration of functions: Things that easily done using the scripting language (and you can even share the function) won't be added because it will increase the overhead.


Thanks for this quick answer.So I'm gonna write this function,I'll post it once done in the case of someone 'd be interrested.


Have a look at the StrTok function in the archive, it may save you some time.