Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
About downloading files on the network disk
#8
@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

Code:
Copy      Help
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
Function qm_web

Code:
Copy      Help
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


Messages In This Thread
RE: About downloading files on the network disk - by win - 01-30-2019, 08:16 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)