04-05-2003, 02:17 AM

I'm trying to make an application that controls an internet application. On one of the pages a showModalDialog control comes up.

Is their away to control this page in Visual Basic just like a popup window?

Thanks in advance!


04-05-2003, 03:42 AM
Don't know quitte what you mean, but I think somthing like this:
Form1.Show vbModal
If its not, sorry, try to explain me what you wan't to achieve.

04-05-2003, 07:07 AM
Well thanks for your answer but i don't know if it's what i'm looking for.

I hope i can explain it correct.

I'm making an web browser dat simulates a user of the online application. This web browser sends the username en password and gets inside the application, selects the correct module. Inside this module the webbrowser selects the e-mail link and that opens in a new window.

In this window the fields on the form are filled and the form is submitted. The code behind the form (that i can't change :() sets the active control back to the main form (where the email link is selected) and popups a window.showModalDialog with the result of the submit on the email form.

My question is: how can i control this window? Get the message that's inside the window so that i can see if the message is succesfully send?

Hope you can help me.


04-07-2003, 12:35 AM
Can somebody help me out here couse i'm really stuck..

04-07-2003, 02:29 AM
I really don't understand what we are talking about.
Are you talking about Javascript/VBScript events in a HTML page?
Is it VB or VB.Net?
What is window.showModalDialog?

04-07-2003, 02:35 AM
It's Visual Basic 6.0

I'm trying to make an application that can fill in forms and submit these. After one of the submits a window.ShowModalDialog comes up. This is some kind of javascript dialogue which keepes the focus till the user clicks on the OK button.

Window.ShowModalDialog is a quick and easy way to present a popup message to the user.

The NewWindow2_event doesn't catch the window...

04-07-2003, 05:23 AM
Because it's not a HTML browser page, but a message box.

04-07-2003, 05:33 AM
Because it's not a HTML browser page, but a message box.

Yeah i know..that's the big problem...
Is their a way to get control of this window? (it opens in Internet's not an alert message)

Here is a example (

The window is opened by the window.ShowModalDialog methode...

04-07-2003, 06:51 AM
OK, never seen this before.
I'm afraid I really don't have a clue how to help you.

04-07-2003, 06:54 AM
OK, never seen this before.
I'm afraid I really don't have a clue how to help you.

Well thanks for trying to help me out here

Maybe someone else knows a solution?

04-08-2003, 02:39 AM
Has nobody encoutered this problem?

I really can't find a way to control this window...

04-08-2003, 01:10 PM
If you were using the INet control to do all your communications with the
web server, no javascript/vbscript would ever be executed. You might
have to parse the script that comes back to respond to it correctly but
then again you might not. Either way, it will be much more work because
you will have to simulate a web browser. But if you really need this kind
of control, I don't see another good way around it.

04-08-2003, 01:31 PM
Does the popup have a Title at the top that is always the same. If you can have a timer with Findwindow API to look for a window with that title and if it finds it, SENDKEYS the Enter Key to the OK button ?


04-11-2003, 02:54 AM
Well i have been thinking about the last 2 suggestions but i need to know the message that's in the just clicking on the OK is not enough...

Does somebody know if it's possible to catch a javascript alert box? I searched the forum but couldn't find the answer.. maybe i can catch this popup with that method.

Thanks in advance for your answer

04-11-2003, 12:00 PM
Try this example. It takes you to a weather page. A popup should spawn. Then it will parse the source. See if you can get it to work in your system.


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum