In this video, I’ll show you how to make a basic page-filling bot in C#.
Sorry for my poor english and my bad voice.. My primary language is french.
The SendData method can be found here :
http://charnycoding.pastebin.com/Vr9m5mRB
The HTML page can be found here :
http://charnycoding.pastebin.com/HvnHnuaT
The ID of each HTML elements can be found in the source code of the page.
In this video, I’m using Visual C# 2008, Notepad++ and Firefox.
If you need some C# advices or help, you can contact me at the following email :
CharnyCoding@Hotmail.com
Duration : 0:5:0
Use something like …
Use something like :
HtmlElementCollection elements = WebBrowser.Document.All;
foreach(HtmlElement element in elements)
{
if(element.GetAttributes(“name”)==NAME_HERE)
{
element.SetAttributes(“value”, TEXT_HERE);
}
}
Can we get elements …
Can we get elements by name? Some text fields on some of the websites do not have ids.
You might want to …
You might want to edit the names of your videos. There is a big difference between C# and C#.NET. Just thought I would point that out.
Fyi, on your video, …
Fyi, on your video, you set the wrong textbox for user and password. Should be flipped.
Trying it out right …
Trying it out right now!
I tried the hello world for vb.net thing and it worked 🙂
How to I make it into a applications sort of thing so I can load it directly, instead of going into visual Basic, then loading it.