如何启用IE11自动下载 [英] How to enable automatic downloads in IE11

查看:536
本文介绍了如何启用IE11自动下载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

,我做点击文件的话,我有下载对话框显示,我需要与出pressing的saveAs按钮,并输入路径全自动开始下载。
究其原因is--我有一个运行的时候,我的窗户是锁和华廷的saveAs功能需要交互的UI母猪它不会工作计划。

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.

推荐答案

我发现了一个办法做到这一点,但你需要使用User32.dll中的SendMessage()函数,以后你preSS按钮\\链接,你有您的下载对话框,我使用SendMessage函数来发送关键的我送:

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),它会选择下载对话框。

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

2-(标签) - 它会选择第一个选项保存。

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

3-(回车)将preSS保存按钮,将文件保存到deafault derectory

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

4- 100%我检查注册表中的IE defeaul文件夹,并容易找到我的文件,并将其复制到我需要的目录。

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.

为什么我使用SendMessage函数,而不是sendKey?

Why i use sendmessage and not sendKey?

答:SendMessage函数仍将美元按钮p $ PSS即使windown是锁定不需要UI

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

这篇关于如何启用IE11自动下载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆