Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Droplist (http://forums.winamp.com/showthread.php?t=243891)

sissy 19th April 2006 01:22

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.

Red Wine 19th April 2006 01:40

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:

sissy 19th April 2006 01:57

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.

Anders 19th April 2006 02:07

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

sissy 19th April 2006 05:31

Thanks Anders, unfortunately those skills i dont have :)


All times are GMT. The time now is 17:47.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.