Help with first program : )

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

Help with first program : )
  1. Unread #1 - Sep 2, 2007 at 11:17 PM
  2. Abysal Rush
    Joined:
    Jul 26, 2007
    Posts:
    565
    Referrals:
    0
    Sythe Gold:
    0

    Abysal Rush Forum Addict

    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.
     
  3. Unread #2 - Sep 5, 2007 at 2:50 AM
  4. X Zero
    Joined:
    Jan 21, 2007
    Posts:
    577
    Referrals:
    0
    Sythe Gold:
    0

    X Zero Forum Addict

    Help with first program : )

    How much do u know?

    Like do you know how to add timers and buttons?
     
  5. Unread #3 - Sep 6, 2007 at 7:25 AM
  6. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    Help with first program : )

    I'll create one tomorrow after school if I have time.
     
  7. Unread #4 - Sep 6, 2007 at 9:01 PM
  8. Swan
    Joined:
    Jan 23, 2007
    Posts:
    4,957
    Referrals:
    0
    Sythe Gold:
    0
    Sythe's 10th Anniversary Member of the Month Winner

    Swan When They Cry...
    Retired Global Moderator

    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
     
  9. Unread #5 - Oct 19, 2007 at 3:18 AM
  10. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    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
     
  11. Unread #6 - Oct 28, 2007 at 7:53 AM
  12. rattytatt50
    Joined:
    Oct 26, 2007
    Posts:
    67
    Referrals:
    0
    Sythe Gold:
    0

    rattytatt50 Member

    Help with first program : )

    Like WOW skate thats an amazing tut
     
  13. Unread #7 - Oct 28, 2007 at 2:59 PM
  14. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    Help with first program : )

    thanks :)
     
  15. Unread #8 - Oct 28, 2007 at 3:26 PM
  16. Abysal Rush
    Joined:
    Jul 26, 2007
    Posts:
    565
    Referrals:
    0
    Sythe Gold:
    0

    Abysal Rush Forum Addict

    Help with first program : )

    Yeah this is a month old. but what ever.
     
  17. Unread #9 - Oct 28, 2007 at 4:38 PM
  18. skate4lifee
    Joined:
    Jul 22, 2007
    Posts:
    108
    Referrals:
    1
    Sythe Gold:
    0

    skate4lifee Active Member

    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 !< >

Users viewing this thread
1 guest


 
 
Adblock breaks this site