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).
Thanks!define IDC_PASSWORD 1211
::Show
>...
Function PasswordPageShow
>!insertmacro MUI_HEADER_TEXT "Enter Password" "Enter your password to continue."
>PassDialog::InitDialog /NOUNLOAD Password /HEADINGTEXT "Enter a password"
Pop $R0 # Page HWND
GetDlgItem $R1 $R0 ${IDC_PASSWORD}
SendMessage $R1 ${EM_SETPASSWORDCHAR} 178 0
PassDialog
FunctionEnd
>
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