04-25-2018, 09:05 AM
Create new thread, wait for password accessible object, set its value.
Example with QM forum login.
Macro Macro3054
Example with QM forum login.
Macro Macro3054
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 686 376 "Dialog"
;3 ActiveX 0x54030000 0x0 0 0 686 376 "SHDocVw.WebBrowser {8856F961-340A-11D0-A96B-00C04FD705A2}"
;END DIALOG
;DIALOG EDITOR: "" 0x2040700 "*" "" "" ""
str controls = "3"
str ax3SHD="http://www.quickmacros.com/forum/showthread.php?tid=6418"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,mac "sub.PasswordThread" "" hDlg
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
#sub PasswordThread
function w
Acc a.Find(w "LINK" "Login" "" 0x3001 30)
a.DoDefaultAction
a.Find(w "TEXT" "" "state=0x20000000 0x20000040" 0x3004 30)
a.SetValue("password")