|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2015
Posts: 25
|
referencing Data entered in NSIS Dialog Designer Form
I have a form(created with NSIS Dialog Designer) with 1 checkbox, 1 groupbox, 2 RadioButtons(grouped together), 2 textboxes, 1 password, 3 Labels on it. How would I reference the data that is entered in the form.
edit: I have tried the $R0-$R4 and $0 - $4 and it gave me nothing (fnc_Config is located in DialogTest1.nsdinc) code: Last edited by coderwolf; 25th February 2015 at 13:01. Reason: further clarification |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
nsDialogs.nsh has some helper functions you can use...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2015
Posts: 25
|
Do the "handle variables" section hold the Hwnd values to be used in the GetUserData? If not , how would I get the HWND variables needed?
|
|
|
|
|
|
#4 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
I have never used that dialog designer so I don't know. I would guess they are in that .nsdinc file...
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Feb 2015
Posts: 25
|
They are. I am not sure of all the sides of NSIS as well. I am just 3 days into using it. And there are some areas that are still confusing to me.
The relevant pieces appear to be: (inside the nsdinc file) code: I tried this as a change to the below function in my file and it did not work. code: |
|
|
|
|
|
#6 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Pop $hCtl_Config_TB_FTPUser is the part that saves the hwnd.
I assume you got a compiler warning, don't ignore them! nsDialogs::GetUserData $hCtl_Config_TB_FTPUser IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#7 | |||
|
Junior Member
Join Date: Feb 2015
Posts: 25
|
this was a temporarily put aside project, however, I had another one come up that was very similar.
On the below project I am getting no results in the Variables I am trying to get the data out of. The dialog was also created by the Coolsoft NSIS Dialog Designer. What am I doing wrong? Office Path.nsdinc(Form file) contains: (FR_*_BTN is the button of a FileRequest, FR_*_TXT is the TextBox portion of it) Quote:
Quote:
Quote:
|
|||
|
|
|
|
|
#8 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Use the NSD_GetText macro to read text from a edit field. GetUserData only has data if you add something there yourself with SetUserData.
IntOp $PostCount $PostCount + 1 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|