Simple Auto-Talker Tutorial!

Discussion in 'Archives' started by kyle99, Jun 28, 2007.

Simple Auto-Talker Tutorial!
  1. Unread #1 - Jun 28, 2007 at 7:06 PM
  2. kyle99
    Joined:
    May 29, 2007
    Posts:
    62
    Referrals:
    0
    Sythe Gold:
    0

    kyle99 Member

    Simple Auto-Talker Tutorial!

    For VB 6

    Components:

    TextBox
    Name: textbox
    Text: Message

    TextBox
    Name: Text1
    Message: Time

    Command Button
    Name: Command1
    Text: Start

    Command Button
    Name:Command 2
    Text: Stop

    Timer
    Name: Timer1
    Enabled: False

    Right click anywhere on the form, and type in this code:

    Code:
    Private Sub Command1_Click()
    Timer1.Interval = Text1 * 1000
    Timer1.Enabled = True
    
    End Sub
    
    Private Sub Command2_Click()
    Timer1.Enabled = False
    End Sub
    
    
    
    Private Sub Timer1_Timer()
    SendKeys textbox
    SendKeys "{enter}"
    End Sub
    
    
    And ur done :)
     
  3. Unread #2 - Jun 29, 2007 at 2:43 AM
  4. Covey
    Joined:
    Sep 9, 2005
    Posts:
    4,510
    Referrals:
    9
    Sythe Gold:
    9
    Discord Unique ID:
    807246764155338833
    Discord Username:
    Covey#1816

    Covey Creator of EliteSwitch
    Retired Sectional Moderator Visual Basic Programmers

    Simple Auto-Talker Tutorial!

    if you enter a letter into that textbox its going to die.
    you might want to add the code on command1_click():
    Code:
    if val(text1) = "0" then msgbox "please enter a NUMBER into the text box": text1 = empty: exit sub
     
  5. Unread #3 - Jul 1, 2007 at 11:34 AM
  6. Crimson47
    Joined:
    Jun 23, 2007
    Posts:
    154
    Referrals:
    0
    Sythe Gold:
    0

    Crimson47 Active Member
    Banned

    Simple Auto-Talker Tutorial!

    uhmm this is a good tutorial but i think the auto typer could be a little better..
     
  7. Unread #4 - Jul 2, 2007 at 9:09 PM
  8. Blupig
    Joined:
    Nov 23, 2006
    Posts:
    7,145
    Referrals:
    16
    Sythe Gold:
    1,609
    Discord Unique ID:
    178533992981594112
    Valentine's Singing Competition Winner Member of the Month Winner MushyMuncher Gohan has AIDS Extreme Homosex World War 3 I'm LAAAAAAAME
    Off Topic Participant

    Blupig BEEF TOILET
    $5 USD Donor

    Simple Auto-Talker Tutorial!

    I've seen this same tut over and over...Make it more interesting, everyone knows this!
     
< selling mage pure/str | Selling amazing range 2her! >

Users viewing this thread
1 guest


 
 
Adblock breaks this site