Old 19th April 2006, 01:22   #1
sissy
Junior Member
 
Join Date: Mar 2006
Posts: 15
Droplist

Hi Guys,

Using a Droplist how can I have the text thats showning mean a code.

IE

Holidays|Shopping|Time Out
...22.......33......44....

So when Holidays is selected it returns the value 22 and not the text?

Thanks.
sissy is offline   Reply With Quote
Old 19th April 2006, 01:40   #2
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
ReadIniStr $0 <yourInstallOptions.ini> <DropList Field> <State>
strcmp $0 'Holidays' 0 +3
strcpy $0 '22'
goto next
strcmp $0 'Shopping' 0 +3
strcpy $0 '33'
goto next
..................
..................
next:

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 19th April 2006, 01:57   #3
sissy
Junior Member
 
Join Date: Mar 2006
Posts: 15
Thanks Red Wine appreciated...

Was hoping for an easier/cleaner solution, but eh we cant always get what we want and will certainly accomplish the task at hand

Would be nice to have {Holidays:22}|{Shopping:33} but im probably off with the fairys

Have a good one.
sissy is offline   Reply With Quote
Old 19th April 2006, 02:07   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
It should be possible, I think you can store the numbers as the LPARAM(userdata) for each item, but this needs a little win32 and system plugin skills to implement

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 19th April 2006, 05:31   #5
sissy
Junior Member
 
Join Date: Mar 2006
Posts: 15
Thanks Anders, unfortunately those skills i dont have
sissy 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