Orkut Profile Maker Without TIMERs  

Posted by Kunal Pradhan

Posting Projects seem to be Dumb , so i am posting the full tut ...1st download VB express edition 2008 then open new project and then from toolbar draw following -:
7 Textboxes
1 Button
1 Webbrowser

name these Textboxes From Their Properties windows as -:

vik-->the textbox to make string ..and set its visible value to hidden
fn--> First name
ln-->last name
no-->number
e1-->email
e2-->d

omain
pass--> password



and then change there text properties respectively

To navigate to the signup page , Double click on the button and Put this Code --> WebBrowser1.Navigate("https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en")

This will take us to the sign up page by clicking the button ..now the coding part of how to fill the form .. For that , Double Click on the Webbrowser and Write this Code -->


vik.Text = WebBrowser1.Url.ToString()
If vik.Text = "https://www.google.com/accounts/NewAccount?continue=http://www.orkut.com/RedirLogin.aspx?msg=1&service=orkut&hl=en" Then
WebBrowser1.Navigate("javascript:va
r vik=document.forms[0].elements;vik[1].value='" + fn.Text + no.Text + "';vik[2].value='" + ln.Text + "';vik[3].value='" + e1.Text + no.Text + e2.Text + "';vik[4].value='" + p.Text + "';vik[5].value='" + p.Text + "';vik[14].focus();void(0);")
End If
If vik.Text = "https://www.google.com/accounts/CreateAccount?continue=http://www.orkut.com/RedirLogin.aspx?msg=1&service=orkut&hl=en" Then
WebBrowser1.Navigate("https://www.google.com/accounts/ServiceLogin?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en&t=null&passive=true&skipvpage=true&sendvemail=false")
End If

If vik.Text = "http://www.orkut.com/Terms.aspx?mode=signup" Then
My.Computer.FileSystem.WriteAllText(&amp
;quot;ids.txt", e1.Text + no.Text + e2.Text + vbNewLine, True)
My.Computer.FileSystem.WriteAllText("password.txt", p.Text + vbNewLine, True)
no.Text += 1
WebBrowser1.Navigate("javascript:document.getElementById('birthYear').value= '1980';document.getElementById('terms').checked= 'true' ;_submitForm(document.forms[0], 'acceptTerms', '')
end if
if vik.Text = "http://www.orkut.com/EditSummary.aspx" Then
WeBrowser1.Navigate("javascript:document.getElementById('gender0').click();javascript:document.getElementById('country').value='91';_submitForm(document.forms[2], 'update', '');void(0)")
end if

if vik.Text = "http://www.orkut.com/Home.aspx" Then
WeBrowser1.Navigate("http://www.orkut.com/Home.aspx")
end if
if vik.Text = "http://www.orkut.com/Home.aspx" Then
Webbrowser1.Navigate("https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en")
End If

the first code will make a string of the textbox with the url of the webbrowser so that the soft can execute a js on a particular link


U R done With The Coding Part


now build the app and close and save the project ..

then go to the location where the project is saved and then bin --> Release and See there the .exe app lies

thats ur app


njoi .

credits vix




Source code Status message changer for orkut  

Posted by Kunal Pradhan

Source code Status message changer for orkut

http://www.xtrmcoder.eu/Status_Changer.rar

credits xtreme coder

orkut profile maker tutorial  

Posted by Kunal Pradhan

Make a New Project
Add 7 Textboxes to it
In the name property of them, change it to:
fname
lname
email1
x
email2
pwd
cs

Change their Text Property to: [respectively]
First Name
Last Name
username
1
@yahoo.com
Password
Enter Captcha Here

Now create 2 Buttons
Change their Text property to:
Start
Create
Stop

Add 1 WebBrowser and 5 Timers

Edit Interval of Timers:
Timer1 > 8500
Timer2 > 3500
Timer3 > 6000
Timer4 > 3000
Timer5 > 2000
You can change the timer interval according to ur internet speed

Double click start button and type:
WebBrowser1.Navigate("https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en")
Timer1.Enabled = True

Double Click create button and Type:
WebBrowser1.Navigate("javascript:var kp=document.forms[0].elements;kp[19].value='" + cs.text + "';kp[25].click();void(0);")
Timer2.enabled = true

Double click Stop Button and Type:
WebBrowser1.Navigate("")
Timer1.Enabled = False
Timer2.Enabled = False
Timer3.Enabled = False
Timer4.Enabled = False
Timer5.Enabled = False

Double Click 1st Timer and Type:
If Timer1.enabled = true then
WebBrowser1.Navigate("javascript:var kp=document.forms[0].elements;kp[5].value='" + fname.Text + "';kp[6].value='" + lname.Text + "';kp[7].value='" + email1.Text + x.Text + email2.Text + "';kp[8].value='" + pwd.Text + "';kp[9].value='" + pwd.Text + "';kp[19].focus();void(0);")
cs.text = ""
cs.focus()
end if
Timer1.enabled = false

Double click 2nd Timer and Type:
If Timer2.enabled = true then
WebBrowser1.Navigate("https://www.google.com/accounts/ServiceLogin?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en&t=null&passive=true&skipvpage=true&sendvemail=false")
end if
Timer2.enabled = false
timer3.enabled = true
Double click 3rd Timer and Type:
If Timer3.enabled = true then
WebBrowser1.Navigate("javascript:g=document.forms[0].elements;g[4].value='1980';g[5].checked=true;_submitForm(document.forms[0], 'acceptTerms', '');void(0)")
end if
Timer3.enabled = false
timer4.enabled = true

Double click 4th Timer and Type:
If Timer4.enabled = true then
WebBrowser1.Navigate("javascript:document.forms[2].elements[6].checked=true;document.forms[2].elements[16].value='91';_submitForm(document.forms[2], 'update', '');;")
end if
Timer4.enabled = false
timer5.enabled = true

Double click 5th Timer and Type:
If Timer5.enabled = true then
x.text += 1
WebBrowser1.Navigate("https://www.google.com/accounts/NewAccount?continue=http%3A%2F%2Fwww.orkut.com%2FRedirLogin.aspx%3Fmsg%3D1&service=orkut&hl=en")
end if
Timer5.enabled = false
timer1.enabled = true

Your Profile Maker is Ready!
Now Press Start Button
When Captcha is shown, enter captcha in the cs box and press create
other thing soft will do
when you want to stop, press stop Button'

Note: document form numbers can be changed by orkut by time.we will post tutorial on that later how to code the javascript even after document code has been changed.

c# video tutorials  

Posted by Kunal Pradhan

http://rapidshare.com/users/ERM977

Its a collection by someone found on net.
KPSofts is not responsible for any piracy content,If you are using it you must aware all copyrights are of original creator,not of KPSofts.KPSofts is none of related with the videos in any offense.

Create Captcha in Vb .Net  

Posted by Kunal Pradhan

Make a New Form
Make 1 Button, rename it as cmdDraw
Make 1 TextBox, rename it as txtSource
Make 1 PictureBox, rename it as picCaptcha(select the picture box
then go to properties, there will name

type the name there)

Now double click d form and remove all d text from the Coding part, if anything is der, just remove it

Now put d Code which is in dis page der:
Imports System.Drawing.Drawing2D
Imports System.Math

Public Class Form1
Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

Public Sub New()
MyBase.New()

'This call is required by the Windows Form Designer.
InitializeComponent()

'Add any initialization after the InitializeComponent() call

End Sub

'Form overrides dispose to clean up the component list.
Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
If disposing Then
If Not (components Is Nothing) Then
components.Dispose()
End If
End If
MyBase.Dispose(disposing)
End Sub

'Required by the Windows Form Designer
Private components As System.ComponentModel.IContainer

'NOTE: The following procedure is required by the Windows Form Designer
'It can be modified using the Windows Form Designer.
'Do not modify it using the code editor.
Friend WithEvents picCaptcha As System.Windows.Forms.PictureBox
Friend WithEvents txtSource As System.Windows.Forms.TextBox
Friend WithEvents Label1 As System.Windows.Forms.Label
Friend WithEvents cmdDraw As System.Windows.Forms.Button

Private Sub InitializeComponent()
Me.picCaptcha = New System.Windows.Forms.PictureBox
Me.txtSource = New System.Windows.Forms.TextBox
Me.Label1 = New System.Windows.Forms.Label
Me.cmdDraw = New System.Windows.Forms.Button
CType(Me.picCaptcha, System.ComponentModel.ISupportInitialize).BeginInit()
Me.SuspendLayout()
'
'picCaptcha
'
Me.picCaptcha.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D
Me.picCaptcha.Location = New System.Drawing.Point(32, 40)
Me.picCaptcha.Name = "picCaptcha"
Me.picCaptcha.Size = New System.Drawing.Size(192, 64)
Me.picCaptcha.TabIndex = 0
Me.picCaptcha.TabStop = False
'
'txtSource
'
Me.txtSource.Location = New System.Drawing.Point(40, 8)
Me.txtSource.Name = "txtSource"
Me.txtSource.Size = New System.Drawing.Size(120, 20)
Me.txtSource.TabIndex = 1
Me.txtSource.Text = "Visual Basic"
'
'Label1
'
Me.Label1.AutoSize = True
Me.Label1.Location = New System.Drawing.Point(8, 8)
Me.Label1.Name = "Label1"
Me.Label1.Size = New System.Drawing.Size(28, 13)
Me.Label1.TabIndex = 2
Me.Label1.Text = "Text"
'
'cmdDraw
'
Me.cmdDraw.Location = New System.Drawing.Point(176, 8)
Me.cmdDraw.Name = "cmdDraw"
Me.cmdDraw.Size = New System.Drawing.Size(64, 24)
Me.cmdDraw.TabIndex = 3
Me.cmdDraw.Text = "Draw"
'
'Form1
'
Me.AcceptButton = Me.cmdDraw
Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
Me.ClientSize = New System.Drawing.Size(248, 109)
Me.Controls.Add(Me.cmdDraw)
Me.Controls.Add(Me.Label1)
Me.Controls.Add(Me.txtSource)
Me.Controls.Add(Me.picCaptcha)
Me.Name = "Form1"
Me.Text = "Form1"
CType(Me.picCaptcha, System.ComponentModel.ISupportInitialize).EndInit()
Me.ResumeLayout(False)
Me.PerformLayout()

End Sub

#End Region

' Make a captcha image for the text.
Private Function MakeCaptchaImge(ByVal txt As String, ByVal min_size As Integer, ByVal max_size As Integer, ByVal wid As Integer, ByVal hgt As Integer) As Bitmap
' Make the bitmap and associated Graphics object.
Dim bm As New Bitmap(wid, hgt)
Dim gr As Graphics = Graphics.FromImage(bm)
gr.SmoothingMode = Drawing2D.SmoothingMode.HighQuality

Dim rectf As New RectangleF(0, 0, wid, hgt)
gr.FillRectangle(Brushes.White, rectf)

' See how much room is available for each character.
Dim ch_wid As Integer = wid \ txt.Length

' Draw each character.
Dim rnd As New Random
For i As Integer = 0 To txt.Length - 1
Dim font_size As Single = rnd.Next(min_size, max_size)
Dim the_font As New Font("Arial", font_size, FontStyle.Bold)
DrawCharacter(txt.Substring(i, 1), gr, the_font, i * ch_wid, ch_wid, wid, hgt)
the_font.Dispose()
Next i

' Mess things up a bit.
Dim x As Integer = rnd.Next(16)
Do While x < wid
gr.DrawLine(Pens.Blue, x, 0, x, hgt)
x += 8 + rnd.Next(16)
Loop
Dim y As Integer = rnd.Next(16)
Do While y < hgt
gr.DrawLine(Pens.Blue, 0, y, wid, y)
y += 8 + rnd.Next(16)
Loop
For i As Integer = 1 To 20
Dim x1 As Integer = rnd.Next(wid)
Dim y1 As Integer = rnd.Next(hgt)
Dim x2 As Integer = rnd.Next(wid)
Dim y2 As Integer = rnd.Next(hgt)
gr.DrawLine(Pens.White, x1, y1, x2, y2)
Next i

gr.Dispose()

Return bm
End Function

' Draw a deformed character at this position.
Private Sub DrawCharacter(ByVal txt As String, ByVal gr As Graphics, ByVal the_font As Font, ByVal X As Integer, ByVal ch_wid As Integer, ByVal wid As Integer, ByVal hgt As Integer)
' Center the text.
Dim string_format As New StringFormat
string_format.Alignment = StringAlignment.Center
string_format.LineAlignment = StringAlignment.Center
Dim rectf As New RectangleF(X, 0, ch_wid, hgt)

' Convert the text into a path.
Dim graphics_path As New GraphicsPath
graphics_path.AddString(txt, the_font.FontFamily, _
CInt(Font.Style), the_font.Size, rectf, string_format)

' Make random warping parameters.
Dim rnd As New Random
Dim x1 As Single = CSng(X + rnd.Next(ch_wid) / 2)
Dim y1 As Single = CSng(rnd.Next(hgt) / 2)
Dim x2 As Single = CSng(X + ch_wid / 2 + rnd.Next(ch_wid) / 2)
Dim y2 As Single = CSng(hgt / 2 + rnd.Next(hgt) / 2)
Dim pts() As PointF = { _
New PointF(CSng(X + rnd.Next(ch_wid) / 4), CSng(rnd.Next(hgt) / 4)), _
New PointF(CSng(X + ch_wid - rnd.Next(ch_wid) / 4), CSng(rnd.Next(hgt) / 4)), _
New PointF(CSng(X + rnd.Next(ch_wid) / 4), CSng(hgt - rnd.Next(hgt) / 4)), _
New PointF(CSng(X + ch_wid - rnd.Next(ch_wid) / 4), CSng(hgt - rnd.Next(hgt) / 4)) _
}
Dim mat As New Matrix
graphics_path.Warp(pts, rectf, mat, WarpMode.Perspective, 0)

' Rotate a bit randomly.
Dim dx As Single = CSng(X + ch_wid / 2)
Dim dy As Single = CSng(hgt / 2)
gr.TranslateTransform(-dx, -dy, MatrixOrder.Append)
Static prev_angle As Integer = 0
Dim angle As Integer = prev_angle
Do While Abs(angle - prev_angle) < 30
angle = rnd.Next(-60, 60)
Loop
prev_angle = angle
Debug.WriteLine(angle)
gr.RotateTransform(angle, MatrixOrder.Append)
gr.TranslateTransform(dx, dy, MatrixOrder.Append)

' Draw the text.
gr.FillPath(Brushes.Blue, graphics_path)
gr.ResetTransform()
graphics_path.Dispose()
End Sub

Private Sub cmdDraw_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdDraw.Click
Dim txt As String = txtSource.Text
Dim bm As Bitmap = MakeCaptchaImge(txt, _
22, 30, _
picCaptcha.ClientSize.Width, _
picCaptcha.ClientSize.Height)
picCaptcha.Image = bm
End Sub

Orkut Basic terms gid uid tid pid aid etc  

Posted by Kunal Pradhan

Making an orkut application or using orkut you should know these basic terms used by orkut.

Terms:
uid- user identification
tid - thread identification
aid - the album identification
pid - photo in the album

Uses:
lists, testimonials, settings and updates use xid whereas all other
features use uid or gid.

gid- for images

Random and unity:
gid - not random
uid - random

gid an uid both are unique per user
GID is the number of your avatar picture

These will useful when you want to target users via social application or vb application

Learn VB .NET easy way Part -1 Tutorial  

Posted by Kunal Pradhan

Guide to start with VB .Net

First download and install VB .NET 2008 and required components (which comes in package)
http://www.microsoft.com/express/download/ (approx. 70 mb)

After installing you can see "Microsoft Visual Basic 2008 Express Edition" in your start menu.
Open it.

Click on "project..." which is on right side of label "create".
Choose windows forms application,give name whatever you want in below name box and press ok.
you can see window like this (click on image to enlarge)
On right side panel you can see its properties panel which shows property of selected element of project.
Also you can see a toolbox there.If you can't you can enable it viw view--> toolbox(CTRL+AL+X)

Now lets make our first simple application.

Add a button from tool bar.Click button and make a button of your size in form1's area.This is similar to make a rectangle in paint.
Now you have make graphix part
as an application has two parts graphix and codings
now lets move to coding part
Double click on button you made to open the coding part
double click will open the button's default coding event i.e. button1_click
Note: you can switch between coding and designer via view menu.

Now we will give user a message on pressing the button.

So message code will be

msgbox("your message")

like
msgbox("This is my first application")

Tip: you can choose msgbox type by giving secong argument
like
MsgBox("This is my first application", MsgBoxStyle.Information)

This shows the msgbox will be windows' default information style box.

so final code will be

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
MsgBox("This is my first application", MsgBoxStyle.Information)
End Sub

Click on green arrow like play button on top to run your first application!

More options:
Project menu---> project name properties... contains useful options about your project
You can change application logo and important properties from properties of form1 (right click on form1's and area and select properties(the part where u drew button)

You can publish you application and can distribute within friends by build menu--->build application name example build windows application1

You ready to distribute application will be in D:\Documents and Settings\Kunal Pradhan\My Documents\Visual Studio 2008\Projects\"project name that you gave"\"project name that you gave"\bin\Release\application name.exe

you can send this exe file to all.

Next tutorial will be posted soon.Support us by informing friends about us.

Get all vb .net tutorials click here:List all