try this
Macro Macro301
Macro Macro301
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: "" 0x2040800 "*" "" "" ""
str controls = "3"
str ax3SHD
if(!ShowDialog(dd &sub.DlgProc &controls)) ret
#sub DlgProc
function# hDlg message wParam lParam
sel message
,case WM_INITDIALOG
,mac "sub.WaitForLoaded" "" hDlg
,case WM_DESTROY
,case WM_COMMAND goto messages2
ret
;messages2
sel wParam
,case IDOK
,case IDCANCEL
ret 1
#sub WaitForLoaded
function hDlg
SHDocVw.WebBrowser we3
we3._getcontrol(id(3 hDlg))
we3.Navigate("http://www.quickmacros.com/download.html")
opt waitmsg 1
rep() 0.01; if(!we3.Busy) break
30 WV hDlg
;can use acc here
Acc a.Find(hDlg "LINK" "Download" "value=http://www.quickmacros.com/quickmac.exe" 0x2005 3)
a.DoDefaultAction
;or can use htm instead both work speed about the same
;Htm e=htm("B" "Download" "" hDlg "0" 1 0x1 30)
;e.Click
int w=wait(0 WA win("File Download - Security Warning" "#32770"))
act w
0.5
but id(4427 w)
int w1=wait(0 WA win("Save As" "#32770"))
but id(1 w1)
int w2=wait(0 WA win("Download complete" "#32770"))
but id(2 w2)
clo hDlg