Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Enter password automation on flash control
#2
Create new thread, wait for password accessible object, set its value.
Example with QM forum login.

Macro Macro3054
Code:
Copy      Help
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")


Messages In This Thread
RE: Enter password automation on flash control - by Gintaras - 04-25-2018, 09:05 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)