Uncle_Vodka
Member
- Joined
- May 20, 2008
- Sythe Gold
- 0
- Messages
- 74
Ok well lets start by opening up your vb6
Click on standard exe
ok now we will need 2 text boxes , 2 command boxes , 1 timer
Now Rename one text box ( in the text property ) to " Type Message Here "
Rename the other text box ( in text property ) to " 5 " ( or any number )
Now we rename the Command1 box to " Start "
Rename the other Command box to " Stop "
Now allign those to what ever way you want to.
--
Now we move on to to the coding part
I will be nice since this a tutorial and post the code for you
To imput this code you can double click anywhere on the forum and erase what ever is on the screen and copy and paste that.
Then you click on file
Make project1.exe and name it to what ever you want
--
I hope this helps.
-BLG
Click on standard exe
ok now we will need 2 text boxes , 2 command boxes , 1 timer
Now Rename one text box ( in the text property ) to " Type Message Here "
Rename the other text box ( in text property ) to " 5 " ( or any number )
Now we rename the Command1 box to " Start "
Rename the other Command box to " Stop "
Now allign those to what ever way you want to.
--
Now we move on to to the coding part
I will be nice since this a tutorial and post the code for you
Code:
Private Sub Command1_Click()
'Makes that the timer is set to what ever's in the second textbox in seconds
Timer1.Interval = Text2.Text * 1000
'Starts the timer
Timer1.Enabled = True
End Sub
Private Sub Command2_Click()
'Stops the timer
Timer1.Enabled = False
End Sub
Private Sub Timer1_Timer()
'Works like you quickly type what ever's in the first textbox
SendKeys Text1.Text
'Works like you quickly type the enter key
SendKeys "{enter}"
End Sub
To imput this code you can double click anywhere on the forum and erase what ever is on the screen and copy and paste that.
Then you click on file
Make project1.exe and name it to what ever you want
--
I hope this helps.
-BLG







