sendkeys during the apearance of dialogbox

杀马特。学长 韩版系。学妹 提交于 2019-12-11 20:33:32

问题


I need to use sendkeys during the appearance of ShowSaveAsDialog in VB.2010 webbrowser control. But it seemed that it's not functioning because it waits first for the dialog to be closed before it activates.

Here is my code:

WebBrowser1.ShowSaveAsDialog()
Timer1.Enabled = True

*in the timer event

SendKeys.Send("AAAAAA")<br>
SendKeys.Send("{TAB}")<br>
SendKeys.Send("{TAB}")<br>
SendKeys.Send("{ENTER}")<br>
Timer1.Enabled = False

I need to send the "AAAAAAA" to the file name but its not working...

来源:https://stackoverflow.com/questions/19924391/sendkeys-during-the-apearance-of-dialogbox

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