Hi! I have created one program with this code for website login:
Code:
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.facebook.com")
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("email").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("pass").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
End Sub
End Class
I take the element for password and username with Horme and i found name="username" and name="password" for the 2 input of enter login datas, but when i try with the button (Access) i don't found the name...how can i found it?
Ehm...for input text of username and password i use the name and not give an error...in 90 % forum/site there aren't id or name and in one forum i try with button id but it give me an error in the line
Ehm...for input text of username and password i use the name and not give an error...in 90 % forum/site there aren't id or name and in one forum i try with button id but it give me an error in the line
GetElementById, do you know what that mean? BY ID, not BY NAME.
GetElementById, do you know what that mean? BY ID, not BY NAME.
No...In all site and forum for username and password i take the name= and it not give me an error. For button in same forum/site there is the name and if i take it the program works...but if i take for exemple of this forum the id it give me an error (and in same there isn't the id)...
If you'd take a closer look you'd notice that it's facebook.com
Oh, ok...
So.. I told you that you will need the ******* ID... the username & password only works because the ID is the same.. you will need the ID from the button >.>...
So.. I told you that you will need the ******* ID... the username & password only works because the ID is the same.. you will need the ID from the button >.>...
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.google.it")
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
End Sub
End Class
And the problem is that i don't found the name of the input (button)
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://www.google.it")
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text)
WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
End Sub
End Class
And the problem is that i don't found the name of the input (button)
Are you ******* stupid?! You need the ID and not the name.
Visual Basic 2010 Express CMD commands problem 02/29/2012 - .NET Languages - 5 Replies Hallo epvp
Kurz und knapp
Ich will per VB eine neue CMD starten und dort dann diesen code einfügen:
@echo off
cls
color 02
a: echo%random% %random% %random% %random% %random% %random% %random%
goto a
Visual Basic Login-Form problem! 01/23/2012 - General Coding - 12 Replies Hallo liebe Com.
Ich weiß nicht ob ich das richtige topic erwischt habe, wenn nicht bitte verschieben.
Zum Thema..
Ich versuche schon seit längerem eine VB Login-Form zu erstellen die über SQL / MSQL läuft, am liebsten wäre mir über mein SQL was ich auf PC hab oder solch einer Datenbank seite.
Ich hab schon das tutorial hier gesehen auf EPVP: www.elitepvpers.com/forum/epvp-coders-tutorials/58 7234-vb-2008-how-login-und-registrierung-ein-progr amm-einbauen.html
[Visual Basic 2010] Habe ein Problem mit... 10/13/2011 - .NET Languages - 11 Replies Heyho Elitepvpers. :handsdown:
Ich habe ein kleines Problem mit meinem Programm, welches ich in Visual Basic 2010 gecodet habe.
Es ist ein sogenannter "Anti AFK Bot".
Dieser schreibt jede 30Sekunden /back und das Server Passwort was man in der Textbox eingibt.
Problem:
Wenn ich auf "Start" klicke, hängt sich die Anwendung auf, bzw. keine Rückmeldung, arbeitet aber trotzdem weiter.
Visual Basic (2010) Problem 05/22/2011 - .NET Languages - 3 Replies Huhu!
Ein Anfänger braucht Hilfe... Ich!
Ich fange gerade mit dem VB Coden an.
Habe mir dazu mal VB 2010 runtergeladen & mich direkt
an ein kleines Projekt bezgl. Warrock gemacht.
Alles lief gut, bis ich eine ComboBox einfügte...
Nunja, folgender Fehler kommt:
"end of"-Anweisung erwartet
Nach langem googlen kam ich darauf, dass ich einen Fehler gemacht habe.
[Visual Basic 2010]WMI Generator Problem 04/21/2011 - .NET Languages - 0 Replies Hallo, ich bin dabei einen HWID GEN zu coden.
Ich habe mir einen WMI gen 5. von Microsoft gedownloadet, und oben auch VisualBasic.Net ausgewählt. (Prog. Sprache)
Alles funzt. sogar mein MD5 Hash Code.
Also ich bekomme den Code hier von Generator:
Imports System
Imports System.Management
Imports System.Windows.Forms