borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (internet explorer)Next Topic (InternetExplorer refresh EVENT) New Topic New Poll Post Reply
AndreaVB Forum : Internet Applications : Controlling a Web Site
Poster Message
neutrall
Level: Master


Registered: 28-03-2004
Posts: 122

icon Controlling a Web Site

HI,
  I'm trying to write a nice VB application that will be able to perform a few task on a website :

1- Fillin a login Form and send it. (How do I know which field is which?)
2- Check if the browser in on the proper page.
3- Proceed with a image comparation. (Therefore, I need to load the image of the site into a imagebox, then edit the image (Which I don't know how.... yet!)

This is to created a automated buying machine for a online game.

All Help is appriciated. I'm not sure where to start.

____________________________
A Stick give a wise man something to think about... and a fool, something to put in is mouth.

06-03-2005 at 12:28 AM
View Profile Send Email to User Show All Posts Visit Homepage ICQ | Quote Reply
vbgen
Level: Moderator

Registered: 10-10-2002
Posts: 876
icon Re: Controlling a Web Site

if you would have ur own browser object in ur application, then it would be a bit easy to do number2..

'''for example your browser control is named webBrowser
dim URL_name
URL_name = webBrowser.LocationURL
'''then you can do some checking against a web address like
if URL_name = "http://www.yahoo.com" then
    '''do what you want here
else
    ''here it means that the url isn't where you want it
    ''do your error handling, either to redirect to the page
    ''you want or something else
end if


____________________________
Been busy trying to take a second degree <--it's not working out...

09-03-2005 at 07:32 PM
View Profile Send Email to User Show All Posts | Quote Reply
Vpa
Level: Sage


Registered: 14-03-2004
Posts: 66
icon Re: Controlling a Web Site

when you use a webbrowser u can use Webbrowser.Document.Body.GetElementByID(Element_ID).value or
Webbrowser.Document.Body.GetElementByName(Element_Name).value
This way you can fill in the textboxes, when you're done use Webbrowser.Document.Body.GetElementByName(Button_Name).click or the ID variant

About the image comparison, when you mean something like the attachment, this isn't possible. It is the main purpose of this image, to prevent automation



____________________________
Shondoit fais G'ot < http://home.deds.nl/~7dfp >

15-11-2005 at 10:03 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Internet Applications : Controlling a Web Site
Previous Topic (internet explorer)Next Topic (InternetExplorer refresh EVENT) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder