Originally posted by Kammmmi
I want to have a .txt file of accounts with passwords. Then I want to load it into the program. Once loaded in I want them to be able to login so they can do what I need them to.
Based on the limited information you've provided us with, its really hard to instruct you on a whole lot.
Anyhow, here's the "idea" behind your program (I'm not going to code it for you, but this will point you in the right direction to get started, then, if you have an actual question about a specific topic let me know), I'll link you to some sort of relating resource at each step:
The first step is to read the text file, you can use OpenFileDialog (
You must login or register to view this content.) to get the text file from your user. You'll then need some method of reading the text from the actual file (
You must login or register to view this content.). From there, you need to parse the file line-by-line, however, prior to doing that, you'll need to format your text file.
Let's say you have a formatted text file that looks like this (wherein each user/pass combo is separated by a new line, and each user and pass is separated by a colon):
user:pass
user1:pass1
user2:pass2
asianinvasion:superawesome
You can then parse that text file like so:
Dim sr As New StreamReader("file.txt")
Dim s As String = ""
Dim user As String
Dim pass As String
Do
s = sr.ReadLine()
If Not s Is Nothing Then
user = s.Split(":")(0)
pass = s.Split(":")(1)
End If
Loop Until s Is Nothing
sr.Close())
You can enter the Do loop (and go into the If statement within the do loop) and further input your parsing, the username will be stored in user, and the password in pass. Of course, it might be easier to simply add each user and pass as a new element to a list or array, so after reading the text file, you have all the usernames and passwords easily accessible.
To log in you'll need to use some form of web-request, this is basically a submitting information to/querying a website.
For web requests, there's a few options, however most "pros" will tell you to use HTTP Web Requests. This form of web request is easy to implement and control, and much faster than the other option (which would be to load the website in a web browser). Read
You must login or register to view this content. for more information on web requests, and refer to
You must login or register to view this content. as questions arise.
This is literally all the knowledge you need to write your bot, and if you read all the articles (or just intelligently use trial and error) you should be able to create a bot with no problem. If you get stuck on a particular topic, or have a specific question, let me know.
---------- Post added at 11:32 AM ---------- Previous post was at 11:27 AM ----------
Originally posted by X
whats vb.net?????
VB.NET stands for Visual Basic .NET. Visual Basic is a programming language, .NET is a framework that supplies a series of classes to help developers, this all runs as a CLR application (hence the reason you need to install the .NET framework in order to run .NET applications).