[VB] VB How to Create Orkut Softwares

Discussion in 'Programming' started by movvadinesh, Feb 2, 2008.

  1. #1
    To develop a software ull need some things .. u have to use either Visual Studio.NET or VB6 .. along with a little knowledge of javascript ..

    although of u r not famalier with javascripts, need not worry .. u can use existing scripts or can learn basics here itself ..

    so for now .. just download these sofwares at ur pc if u dont have them already

    here is the link to download Visual Studio 2005, size approx 35 Mb ..

    DOWNLOAD:
    http://msdn.microsoft.com/vstudio/express/...ds/default.aspx

    So wen u r done with this .. we will be starting with 1st software

    i.e. Scrapbook Flooder


    Lesson 1: Basics

    Well this is the 1st part of tutorial where we will be learning basics controls .. such as a label, textbox and a button ..

    u can find all these in the toolbox .. which is situated in the toolbar just below menu toolbar ..

    for example.

    see this http://img517.imageshack.us/img517/8343/untitledaa5.jpg
    _______________________________________________

    now lets get over to properties ..

    u can see properties of any object by just right clicking the thing and then properties .. there r three important properties of any object, Enabled, Visible & Caption ..

    Enabled means u can click that or not, visible means is it visible or not, caption decides the name of the control which appears ..

    now u can set these properties either at run time or at designing time of a program ..

    e.g for example u want that a button to appear at the run time

    then u can use like

    button1.visible = true
    similarly button1.enabled = true

    now explore various parts of dese things so that we may proceed to next part webbrowser :p



    Step 1: Getting Started: So if u r using Visual Studio 2005 then open it .. then File >> New Project >> Windows

    Application >> give it name of ur choice , here ill use DHZ Test Flooder for vB 6.0 users just follow the same procedure

    and start with a Standard exe u can give it a name when u save the project ..

    now by default a form will appear on ur screen .. this forms the background of ur project .. by default its name is Form1 ..

    now right click the form and click properties .. ull find a property named as Caption (as I mentioned in lesson 1 ) this

    decides the name of ur form .. change this to the desired name (I m using DHZ test Flooder in this case) when u do this ull

    see the name at the top of ur form

    Step 2: Webbrowser Control: In order to access web content with ur application, u need to embedd a webbrowser in ur

    application, for this just open the toolbox and browse the botton of toolbar under All Windows forms category at the last ull

    see something like Webbrowser .. .. just drag that onto ur form .. since Visual Studio is a product from microsoft hence

    the default browser embedded in it is IE

    Step 3: Adding Buttons: Now wat all u need frm a flooder, just that it must start flooding a scrapbook as soon as u press a

    button and stop as soon as u press another button. i.e 2 basic buttons Start Flooding and Stop flooding .. so just drag 2

    buttons from the toolbox onto the form .. similarly right click them >> then properties >> change Text Property to Start

    Flooding and Stop Flooding

    Step 4: Migrating webbrowser to orkut.com: now since u r building up an orkut application all u need that ur browser must

    migrate to orkut.com as soon as u start that .. to do this just double click the main form i.e. form1, ull move to code part



    of the interface .. and it will look something like

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    End Sub

    Form1_Load decides what this form does when it gets loaded or it runs now what u want to do when it runs .. just open orkut.com .. ok ..

    embedd this in between

    webbrowser1.navigate("www.orkut.com")

    now wen ull run that application .. it will navigate to orkut.com by

    itself

    Step 5: Embedding Flooding Scripts : now comes the most imp part .. now wat u need that wen u click the Start Flooding

    button then it must start flooding scraps .. for that u need to embedd a flooding script for this just drag a testbox onto

    the form, goto properties and set visible to false, multiline property to true and then most imp part .. in properties named

    text just embedd ur javascript for flooding ..

    in this test flooder ill use script by tio

    i.e.
    java script:i=0;tio=document.getElementsByTagName('TEXTAREA').item(0).value;document.body.innerHTML+='<iframe
    name="TextFlooding" width="800" height="800"></iframe>';document.forms[1].target='TextFlooding';setInterval("document.getElementsByTagName('TEXTAREA').item(0).value=tio +' '+ i;_OS_writeScrap();i++",2000);void(0)

    now double click the button Start flooding .. it will take u to the code page shown as

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    End Sub

    embedd the following line in between

    webbrowser1.navigate(textbox1.text)

    similarly add this line at Stop Flooding button

    webbrowser1.navigate("http://www.orkut.com/Home.aspx")

    now I think u can imagine what it does wen u click these 2 buttons .. it will run the script in text box wen u click start

    flooding and will take u to home when u click stop flooding ..

    This completes ur very very basic flooding software .. just press F5 to build the application and test it :p


    Well it was too huge to write and I formatted it in a notepad on my pc .. may be it contains some bugs .. do tell me if u face any problems in implementing the same
     
    movvadinesh, Feb 2, 2008 IP
  2. movvadinesh

    movvadinesh Well-Known Member

    Messages:
    720
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #2
    Befor Moving to the next part, something important .. as u all know some of the javascripts runs only on firefox and not on IE .. and the applications we are building in that we are using only IE browser, so in order to run firefox scripts we will need to use an instance of Mozilla browser in Visual Studio 2005

    It is a activex component of Mozilla webbrowser and is known as Mozilla ActiveX control .. more information regarding it is available at

    http://www.iol.ie/~locka/mozilla/control.htm

    u have to download version 1.5 of this control in order to build mozilla applications .. it can be downloaded from

    http://www.iol.ie/~locka/mozilla/MozillaControl15.exe


    Fan Flooder


    So after a good responce from you guys .. Lets move to our next software which is a Community Creator .. Many people might feel like y am I going for this .. as this software is not of much use (I mean it just creates idle communities).. so lemme explain .. I felt that this software shud be the next so that people may have better understanding before we move to complex things .. Hope u guys will like ..

    So Lets start ..

    Step 1: Open Visual Studio 2005 from ur start menu >> File >> New Project >> Form1 Pops up .. just rename it to ur software name .. here ill use DHZ Community Creator ..

    Step 2: We will be needing 4 javascripts in these .. so drag some things onto ur form .. a webbrowser (AxMozillabrowser1 & Webbrowser1 (IE)) both will work in this case .. 2 buttons and 4 textboxes .. to contain ur scripts .. although u can directly feed javascripts into forms but its a nice programming practice to feed that into textboxes and make them run .. y this ill post after this software yea comin to the topic, we have dragged a total of 7 items 1 webbrowser, 2 buttons and 4 textboxes .. rename the 1st button to "Create" and 2nd button to "Create New"

    Step 3: Well I created 4 javascripts to make this work ..

    1.)
    java script:document.forms[1].elements[16].value="This community is created using DHZ's Community Creator .. Contact him: uid=5864958054912067163";submitForm(document.getElementById(),'submit');"

    2.)
    java script:document.forms[1].elements[2].value="DHZ Community Creator";submitForm(document.getElementById(),'submit');

    3.)
    java script:document.forms[1].elements[3].value=8;submitForm(document.getElementById(
    ,'submit');

    4.)
    java script:submitForm(document.forms[1], 'create', '');


    if u carefully look at wen u create a community 3 things are must (atleast) first name of community, second description third category from that drop down my 1st javascript fills the description in community as u can see in all created communities in my fake 2nd Fills name of community which was "DHZ Community Creator" in my case. 3rd selects Computers & Internet as category ("value=8" in javascript belongs to Comp & Internet) and 4th one is used to Submit the form ..

    Pls change the javascripts to desired values and fit these 4 javascripts into 4 textboxes which we dragged on form and set Visible property of all 4 to False so that they r not visible at runtime.

    Step 4: Now the purpose of this software is to create communities so as soon as u login it must direct you to captcha page which is this 1

    http://www.orkut.com/CaptchaConfirm.aspx?d...create&ct=0

    so at form load add this >>

    webbrowser1.navigate("http://www.orkut.com/CaptchaConfirm.aspx?d=%2FCommunityEdit.aspx%3Fmode%3Dcreate%26ct%3D0")

    this will redirect u to this page as soon as u login ..


    Step 5: Now as soon as u fill captcha and click next Community creation page pops up .. now u want as soon as u press 1st button "Create" all details must be filled in thru javascripts and form must be submitted.

    for this double click the button and add this >>>

    Webbrowser1.Navigate(TextBox2.Text)
    Webbrowser1.Navigate(TextBox3.Text)
    Webbrowser1.Navigate(TextBox1.Text)
    Webbrowser1.Navigate(TextBox4.Text)
    Button2.Enabled = True
    Button1.Enabled = False

    1st 4 lines runs those 4 javascripts at browser and rest 2 enables 2nd button "create new" and disables 1st one "Create" now as soon as u press this button ur community is created and "Create New" button i.e button2 is enabled, now wat u want as soon as u press Button2 u must be redirected to captcha Page again .. so double click button2 and add this to code

    Webbrowser1.Navigate("http://www.orkut.com/CaptchaConfirm.aspx?d=%2FCommunityEdit.aspx%3Fmode%3Dcreate%26ct%3D0")
    Button1.Enabled = True
    Button2.Enabled = False

    Voila .. we r done .. just press F5 to compile and test the application
     
    movvadinesh, Feb 2, 2008 IP
  3. JohnDa

    JohnDa Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is it free to use Visual Studio ?

    It says "Location Cannot Be Found" on the link you have.

    Quite a big tutorial. Must go through it sometime.
    If you just want to use the scrapbook flooder, then you can
    1.) copy the code from a website like orkut-scripts. blogspot. com and
    2.) just paste it in the address bar and
    3.) press Enter
     
    JohnDa, Feb 3, 2008 IP
  4. movvadinesh

    movvadinesh Well-Known Member

    Messages:
    720
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
    #4
    wait i will see
     
    movvadinesh, Feb 3, 2008 IP
  5. movvadinesh

    movvadinesh Well-Known Member

    Messages:
    720
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    110
  6. john_bboy7

    john_bboy7 Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanx man that was really helpfull. :)

    Can u reply to my pm please..
     
    john_bboy7, Mar 22, 2008 IP