Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   More instances of custom pages with InstallOptions (http://forums.winamp.com/showthread.php?t=230980)

Jeln Pueskas 14th November 2005 12:26

More instances of custom pages with InstallOptions
 
Hello, this is my first thread - and in english...


I want to create two instances of custom pages with InstallOptions. The visualisation is okay and the first dialog works perfect with the implementation of the check routines in the "Leave"-function.

The second dialog also will get check routines, so I need the window handles for control ( GetDlgItem, FindWindow,... ).
But all trials doesn't work.

How do I get the state of a dialog item? For the first dialog I used the examples of NSIS like

GetDlgItem $2 $hwnd 1208
for the field 9

What ist the equivalent of 1208 in the second dialog?

Can anyone help me?

glory_man 14th November 2005 12:49

Same as for first dialog. This is 1208 for the field 9.

kichik 14th November 2005 19:12

With NSIS 2.11, you can use the following instead of GetDlgItem:
code:
ReadINIStr $2 "C:\path\to\page.ini" "Field 9" "HWND"

Jeln Pueskas 15th November 2005 12:07

Thank you all. Now it works. My error was to refer the wrong ini file (dialog 1). So, all trials couldn't work of course.


All times are GMT. The time now is 05:45.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.