|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
enter text to webbrowser modal popup window, possibleI'm using a webbrowser control in VB6 to navigate to a page that has a
javascript popup window for username entry. Is there any way to enter text to that window? I tried watching for it in the WebBrowser1_NewWindow2 event but the event never fires. I tried using FindWindow to locate a window with the title text so I could use SendMessage, but the VB program stops dead in its tracks when the window pops up, it acts like a modal window. Also neither the main form or webbrowser lostfocus events fire when the dialog pops up. TIA, Mike mscir wrote:
> I'm using a webbrowser control in VB6 to navigate to a page that has a I wrote a 2nd small VB app that is run using Shell, that watches for the > javascript popup window for username entry. > Is there any way to enter text to that window? > I tried watching for it in the WebBrowser1_NewWindow2 event but the > event never fires. I tried using FindWindow to locate a window with the > title text so I could use SendMessage, but the VB program stops dead in > its tracks when the window pops up, it acts like a modal window. Also > neither the main form or webbrowser lostfocus events fire when the > dialog pops up. > TIA, > Mike popup window, enteres text into the textbox and clicks the command button, then closes itself, works great. On Fri, 21 Oct 2005 23:12:04 -0700, mscir <ms***@yahoo.com> wrote:
>I'm using a webbrowser control in VB6 to navigate to a page that has a Find out what 'URL' it sends after you've entered the data and>javascript popup window for username entry. > >Is there any way to enter text to that window? > >I tried watching for it in the WebBrowser1_NewWindow2 event but the >event never fires. I tried using FindWindow to locate a window with the >title text so I could use SendMessage, but the VB program stops dead in >its tracks when the window pops up, it acts like a modal window. Also >neither the main form or webbrowser lostfocus events fire when the >dialog pops up. duplicate that |
|||||||||||||||||||||||