Jump to content

Auto login


cagueca
 Share

Recommended Posts

Boas :

Tou a criar uma aplicaçao para aceder ao facebook .

A parte de por a pass e o user ja esta mas depois dizer para clicar no botao iniciar sessao nao sei como fazer ..


Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        WebBrowser1.Document.GetElementById("Email").SetAttribute("Value", TextBox1.Text)
        WebBrowser1.Document.GetElementById("Pass").SetAttribute("Value", TextBox2.Text)
'aqui falta qualquer coisa para clicar no botao iniciar sessao ..

    End Sub

Abraço

Link to comment
Share on other sites

Da mesma maneira que apanhas as inputboxes, apanha a form e depois usa o InvokeMember para chamar o submit ou apanhas o botão e chamas o click.

Algo como:

WebBrowser1.Document.GetElementById("o_meu_button").InvokeMember("click")

Sérgio Ribeiro


"Great coders aren't born. They're compiled and released"
"Expert coders do not need a keyboard. They just throw magnets at the RAM chips"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.