02-01-2019, 12:57 AM
How to make the code of behind , operate the Front window in the sub-process
Macro Macro3
Macro Macro3
mac sub.ie
;Click the download button in the dialog
int w=wait(3 WV win("Dialog" "#32770"))
Acc a.Find(w "LINK" "Download" "" 0x3001 3)
a.DoDefaultAction
;Clean up the cookie code
#sub ie
str dd=
;BEGIN DIALOG
;0 "" 0x90C80AC8 0x0 0 0 400 222 "Dialog"
;3 ActiveX 0x54030000 0x0 0 0 400 222 "SHDocVw.WebBrowser {8856F961-340A-11D0-A96B-00C04FD705A2}"
;END DIALOG
;DIALOG EDITOR: "" 0x2040701 "*" "" "" ""
str controls = "3"
str ax3SHD="http://quickmacros.com/"
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1