问题
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