@TheVig
Thank you for sharing your experience.
I am currently experiencing two problems. I hope someone can provide some suggestions. Thanks in advance:
1. Because I open IE directly, it is not always effective, so I created a dialog box and built-in IE browser control, but my code can't run.
2. If you use the account password to log in to the network disk, it will save the cookie, how to clear the cookie after getting the link.
Macro Macro3
Function qm_web
Thank you for sharing your experience.
I am currently experiencing two problems. I hope someone can provide some suggestions. Thanks in advance:
1. Because I open IE directly, it is not always effective, so I created a dialog box and built-in IE browser control, but my code can't run.
2. If you use the account password to log in to the network disk, it will save the cookie, how to clear the cookie after getting the link.
Macro Macro3
qm_web ;;Function Custom Dialog Built-in IE Browser Control
;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
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