For MCRIDER

How can we click on a special location of a web browser control at run time since it has no MouseMove nor Click events that we can simulate ?
minetteAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

mcriderCommented:
The answer I gave was for simulating filling out an HTML document and  clicking the submit button on an HTML document where the user knows the field names and submit button name...

Here is the answer I gave previously:


--------------------------------------------------------------------------------
You can do this with the Microsoft Internet Control.  To add this to your project, right-click the toolbar (the window with the textbox, listbox, label, etc.) and select "Components..."

Then select "Microsoft Internet Control" from the list.

You can then do something like this:


    WebBrowser1.Navigate "http://www.yourdomain.com/cgi-bin/showvar.cgi?Arg1=aaa&Arg2=bbb


Where everything in the quotes before the question mark is the URL and everything after the question mark are arguments to be passed.

The format for an argument is:

   arg=value

You separate multiple arguments with a & (ampersand character).

To give you an example, let's say this is the html code on the form you're filling out:

<form method="get" action="/cgi-bin/myscript.cgi">
<input type="text" name="uname" value="">
<input type="text" name="upwd" value="">
<input type="submit" name="Login" value="Login">
</form>


This is what you could do:

Dim UserName As String
Dim Password As String

UserName = "mcrider"
Password = "noneofyourbusiness"

WebBrowser1.Navigate "http://www.yourdomain.com/cgi-bin/myscript.cgi?uname=" & UserName & "&upwd=" & Password & "&Login=Login"

--------------------------------------------------------------------------------

Hope this helps!



Cheers!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mcriderCommented:
Thanks for the points! Glad I could help!


Cheers!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.