Old 8th January 2004, 16:45   #1
billclinton1982
Junior Member
 
Join Date: Jan 2004
Posts: 6
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
billclinton1982 is offline   Reply With Quote
Old 8th January 2004, 16:52   #2
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
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.
Joost Verburg is offline   Reply With Quote
Old 8th January 2004, 17:00   #3
billclinton1982
Junior Member
 
Join Date: Jan 2004
Posts: 6
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.
billclinton1982 is offline   Reply With Quote
Old 9th January 2004, 12:05   #4
zarged
Junior Member
 
Join Date: Oct 2003
Posts: 18
Have a look at the StrTok function in the archive, it may save you some time.
zarged is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump