![]() |
#1 |
Junior Member
Join Date: Dec 2007
Posts: 3
|
PassDialog - Password SetFocus Problem
Hi all,
I'd like to know how I can set focus to the password box (I am using the password-only parameter). PHP Code:
I've searched through the forums, and tried the System::Call "user32::SetFocus(i r1, i 0x0007, i,i)i" code, but it doesn't seem to work. I am using the PassDialog plugin: http://nsis.sourceforge.net/PassDialog_plug-in |
![]() |
![]() |
![]() |
#2 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
You passed SetFocus the wrong parameter and some extra unnecessary parameters. It's R1 and not r1 and the 3 extra parameters shouldn't be there.
code: NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Dec 2007
Posts: 3
|
kichik,
Many thanks, I appreciate the reply =] Unfortunately, the code doesn't work, it still doesn't set focus to the password box. Attached is my script. Can you please let me know where to place it? Thanks! ![]() |
![]() |
![]() |
![]() |
#4 |
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,343
|
You override $R0 in your script with the HWND of the Next button. You also got IDC_PASSWORD wrong. It's 1214 and not 1211.
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Dec 2007
Posts: 3
|
That did it, thanks!
![]() |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|