• Welcome to ForumKorner!
    Join today and become a part of the community.

Since everyone and their nan have checkers out.

sdk

User is banned.
Reputation
0
Yo people of MD today I am gonna make a tutorial on how to make a SM checker!

In this tutorial we are going to be using a WebClient, TextBox, Button and bgWorkers.


Lets start by adding a button, and two listview to the actual form. Names = import_button, lv_avail, lv_unavail.

So double click the button and write this code.

Code:
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Text Documents|*.txt|All Files|*.*";
ofd.ShowDialog();
string filename = ofd.FileName;
SortList(filename);

After that lets add 4 background workers. Double click on those so it makes the DoWork event.

Inside those events we can do two things, a redundant checker or call a void that checks the certain list.

But first lets sort the list.

Code:
List<string> l1 = new List<string>();
List<string> l2 = new List<string>();
List<string> l3 = new List<string>();
List<string> l4 = new List<string>();
public void SortList(string file)
{
	string[] names = System.IO.File.ReadAllLines(file);
	int list = 1;
	for(int i = 0; i < name.Length; i++)
	{
		switch(list)
		{
			case 1:
				l1.Add(name[i]);
			case 2:
				l2.Add(name[i]);
			case 3:
				l3.Add(name[i]);
			case 4:
				l4.Add(name[i]);
			case 5:
				l1.Add(name[i]);
				list = 1;
		}
		list++;
	}
	//Start Background Workers
	backgroundWorker1.RunWorkerAsync();
	backgroundWorker2.RunWorkerAsync();
	backgroundWorker3.RunWorkerAsync();
	backgroundWorker4.RunWorkerAsync();
}

Now lets do the easiest way and cleanest way to filter. To understand this you need to understand that each background worker runs on a different thread. If you called a void from the backgroundWorker it will run separately.

So lets make the void that will check.

Code:
public void CheckList(List<string> names)
{
	for(int i = 0; i < names.Count(); i++)
	{
		try 
		{
			WebClient wc = new WebClient();
			wc.DownloadString("https://instagram.com/" + names[i]);
			lv_unavail.Invoke(new Action(() => lv_unavail.Items.Add(names[i])));
		} 
		catch(Exception ex) 
		{
			lv_avail.Invoke(new Action(() => lv_avail.Items.Add(names[i])));
		}
	}
}

THEN we but the code in the background worker.

Backgroundworker 1:
Code:
CheckList(l1);
Backgroundworker 2:
Code:
CheckList(l2);
Backgroundworker 3:
Code:
CheckList(l3);
Backgroundworker 4:
Code:
CheckList(l4);

Enjoy, this should work for you guys, very simple checker.
 

PanelSMM

Active Member
Reputation
0
Although I am to lazy to follow the tutorial, I guarantee this will work, he has made me a checker before!
 

sdk

User is banned.
Reputation
0
PanelSMM said:
Although I am to lazy to follow the tutorial, I guarantee this will work, he has made me a checker before!

Yea should work just fine, I've not tested all this code and wrote it from the top of my head but should work.
 

Cred

Active Member
Reputation
0
Doobie said:
Lol, I'm a noob. Where do we type these codes in at?

I need help with that too lol!~
 

Joy

Power member.
Reputation
0
Doobie said:
Lol, I'm a noob. Where do we type these codes in at?

Cred said:
I need help with that too lol!~

It is in VB.net, I believe.
I'm trying to make it now!
Wish me luck. :p
 

Zeus

Well-Known Member
Reputation
0
Probably the best thread I've seen in a while.
 

Wax

User is banned.
Reputation
0
LMAO you trying to ruin the checking scene or what?.............
 

dopecape

Onyx user!
Reputation
0
can i use it to make a hotmail or outlook checker
 

Space Time

User is banned.
Reputation
0
"ruin the checkers scene"
Not like people were selling checkers for 10$ before anyways..

Nice stuff here though.
 

Agonyyy

User is banned.
Reputation
0
I'll give you a dollar if you can make me this and upload it to dropbox with insta twitter & tumblr lol
 
Top