Adblock breaks this site

Help with first program : )

Discussion in 'Programming General' started by Abysal Rush, Sep 2, 2007.

  1. Abysal Rush

    Abysal Rush Forum Addict

    Joined:
    Jul 26, 2007
    Posts:
    565
    Referrals:
    0
    Sythe Gold:
    0
    Help with first program : )

    Well i'm brand new to VB and need some help.. So first I want to make a talker or some easy thing. please make a tut or even better - a video tutorial.

    thanks in advance.
     
  2. X Zero

    X Zero Forum Addict

    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0
    Help with first program : )

    How much do u know?

    Like do you know how to add timers and buttons?
     
  3. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Help with first program : )

    I'll create one tomorrow after school if I have time.
     
  4. Swan

    Swan When They Cry...
    Retired Global Moderator

    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner
    Help with first program : )

    Alright, mind my voice, I'm home sick cos I have a cold lol.

    And I screwed the interval setting up. Instead of
    Code:
    Talk.Interval = Interval_txt.Text
    put
    Code:
    Talk.Interval = CInt(Interval_txt.Text)
    What this does is convert the string value to an integer. If you wanted to put the interval in seconds rather than Milliseconds it would be

    Code:
    Talk.Interval = Cint(Interval_txt.Text) * 1000
    Hope this helps a little bit ;)

    http://code69.greyfyre.info/Tuts/AutoTalker/AutoTalker.html
     
  5. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Help with first program : )

    well for your first program i dont suggest you make an auto typer even thought that is a basic program you arnt at that level yet. i suggest you start out with very basic stuff such as 1 line of code programs

    First Program: Hello World

    add a button
    double click on the button
    add this code:
    Code:
    MessageBox.Show("hello world")
    Second Program: Simple Web Browser
    add a button, web browser control, and a textbox
    web browser views website, textbox is where you will imput the url, and the button is to tell the web browser to navigate to the website based on the text from your textbox
    double click on your button and add this code:
    Code:
    webbrowser1.navigate(textbox1.text)
    ok now you know the minimum i feel comfortable teaching you how to make an auto typer.

    Last Program (for now): Auto Typer
    add 2 buttons, change one of the textbox text property to "start" and the other to "stop"
    add 2 textbox's, one is going to used to hold the typed phrase and the second one will be used to input the number of seconds between each time the text from the first textbox is typed.
    add 1 timer (this will be your first time using timers)

    now double click on your timer so you can go to the timer code view
    input this code:
    Code:
    sendkeys.send(textbox1.text)
    sendkeys.send("{enter}")
    that code tells the timer to send the text in textbox one and to send the key "enter"

    lets move onto the start button
    the start button will be used to activate the timer so lets input these 2 lines of code:
    Code:
    timer1.interval = textbox2.text * 1000 ' we do times 1000 because normally the time goes by milliseconds but if we times by 1000 it will go 1 second at a time and be less confusing to the user
    there is 1 more line of code for the "start" button:
    Code:
    timer1.enabled = True ' we do this so that the timer will start
    now for the last line of code this is used to stop the timer which is a very short line of code:
    Code:
    timer1.enabled = false
    you have just learned to make 3 very easy programs, you can really expand on all three programs. i wanted to make it as easy for you as possible so i made them very basic. i hope you learned a lot.

    Regards

    the indian guy
     
  6. rattytatt50

    rattytatt50 Member

    Joined:
    Oct 26, 2007
    Posts:
    67
    Referrals:
    0
    Sythe Gold:
    0
    Help with first program : )

    Like WOW skate thats an amazing tut
     
  7. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Help with first program : )

    thanks :)
     
  8. Abysal Rush

    Abysal Rush Forum Addict

    Joined:
    Jul 26, 2007
    Posts:
    565
    Referrals:
    0
    Sythe Gold:
    0
    Help with first program : )

    Yeah this is a month old. but what ever.
     
  9. skate4lifee

    skate4lifee Active Member

    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0
    Help with first program : )

    better late then never ;)

    i joined this forum a while ago but never really did much but this is kind of my "rejoining" anyways i was looking at all the posts one night and decided to answer the ones unanswered.
     
< [Release: Function] IsFight | >! RuneScape HighScores !< >


 
 
Adblock breaks this site