How to enable automatic downloads in IE11

假如想象 提交于 2019-12-13 05:02:03

问题


I using WatIn (IE11), i make click's on files then i have download dialog that shows,i need to start this download automaticly with out pressing saveAs button and typing the path. The reason is-- I have program that run's when my windows is lock and WatIn saveAs function need interactive UI sow it wont work.


回答1:


I found a way to do this, but you need to use User32.dll sendmessage() function, after you press button\link and you have your download dialog i use sendmessage to send key's i send:

1- (F6) it will select the download dialog.

2-(Tab) -it will select the first option Save.

3- (Enter) will press Save button that will save file to deafault derectory

4- For 100% i check in registry the defeaul folder of IE and easy find my file and copy it to directory that i need.

Why i use sendmessage and not sendKey?

Answer: sendmessage will still press on buttons even if windown is lock no need UI.




回答2:


Browser security will not allow this.



来源:https://stackoverflow.com/questions/24652097/how-to-enable-automatic-downloads-in-ie11

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!