Free Games Forum
Free Games Games Forums Music Forums TV Forums

  Free Games Forum Home FORUM
HOME
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN
Rules & FAQ RULES / FAQ
REPORT SPAM

Free Games Forum: Game Technology: Visual Basic / VB:
[TUT] Basic Auto-talker

 

 


thechezman14
Enthusiast


Dec 30, 2005, 6:18 PM

Post #1 of 11 (4339 views)
Shortcut
[TUT] Basic Auto-talker Can't Post

How to make a basic runescape auto-talker

1. Open Visual Basic 6.0
2. Create a new project with 1 form
3. Make 2 Textboxes, 2 CommandButtons & 1 Timer
4. Make the first Textbox say (in the text property) "Your Message here"
5. Make the second Textbox say (in the text property) "7"
6. Make the first commandbox say (in the caption property) "start"
7. Make the first commandbox say (in the caption property) "stop"
8. Put in the code (by double clicking on a button)



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




8. Make sure you have these properties

9. It should look like this



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
will MM for FREE

This is 10% luck, 20% skill, 15% concentrated power of will, 5% pleasure, 50% pain, And a 100% reason to remember the name - mike shinoda



robinx
Enthusiast


Jan 1, 2006, 6:54 AM

Post #2 of 11 (4162 views)
Shortcut
Re: [thechezman14] [TUT] Basic Auto-talker [In reply to] Can't Post

I like itSmile


ghostbusta10
Newbie


Jan 7, 2006, 5:06 PM

Post #3 of 11 (4131 views)
Shortcut
Re: [robinx] [TUT] Basic Auto-talker [In reply to] Can't Post

stop using those fakes i kno ur using reward hits it's fake cash trust me i got my friends accs banned using that stuff. u can get into big trouble.


thechezman14
Enthusiast


Jan 8, 2006, 11:34 PM

Post #4 of 11 (4126 views)
Shortcut
Re: [ghostbusta10] [TUT] Basic Auto-talker [In reply to] Can't Post

cool it m8, you can also get banned for flaming



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
will MM for FREE

This is 10% luck, 20% skill, 15% concentrated power of will, 5% pleasure, 50% pain, And a 100% reason to remember the name - mike shinoda


robinx
Enthusiast


Jan 17, 2006, 2:33 AM

Post #5 of 11 (4103 views)
Shortcut
Re: [ghostbusta10] [TUT] Basic Auto-talker [In reply to] Can't Post


In Reply To
stop using those fakes i kno ur using reward hits it's fake cash trust me i got my friends accs banned using that stuff. u can get into big trouble.



ITS in my SIG n00bMad


thechezman14
Enthusiast


Jan 17, 2006, 5:53 AM

Post #6 of 11 (4101 views)
Shortcut
Re: [robinx] [TUT] Basic Auto-talker [In reply to] Can't Post

calm it m8



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
will MM for FREE

This is 10% luck, 20% skill, 15% concentrated power of will, 5% pleasure, 50% pain, And a 100% reason to remember the name - mike shinoda


The chael
Newbie

Mar 31, 2006, 4:38 AM

Post #7 of 11 (3454 views)
Shortcut
Re: [thechezman14] [TUT] Basic Auto-talker [In reply to] Can't Post

i, I am using VB 2005 and when i enter in the code above (changing command1 to button1 as 2005 default) I get the followinf errors:




Code

Error 1 'SendKeys' is a type and cannot be used as an


Error 2 'SendKeys' is a type and cannot be used as an

Error 3 'End Sub' expected.

Error 4 Statement is not valid in a namespace.

Code



The chael
Newbie

Apr 2, 2006, 7:03 AM

Post #8 of 11 (3431 views)
Shortcut
Re: [The chael] [TUT] Basic Auto-talker [In reply to] Can't Post

Got it sorted, here is the code you need to enter for this to work if you are using VB 2005:

(keeping it inside private sub)


Code
 '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.Send Text1.Text

'Works like you quickly type the enter key
SendKeys.Send "{enter}"

End Sub



chris 8865
Newbie

Apr 10, 2006, 4:18 AM

Post #9 of 11 (3402 views)
Shortcut
Re: [thechezman14] [TUT] Basic Auto-talker [In reply to] Can't Post

It wont work for me I did exacly what u said to do i i have the same visual basic 6.0 as you, so when I put the code in a button you just said the word button you mean command button1? so any i put it in that button command1, and it comes up with erro blah blah so please help me.


coolgreen44
Senior Member

Jun 27, 2006, 5:13 AM

Post #10 of 11 (3170 views)
Shortcut
Re: [chris 8865] [TUT] Basic Auto-talker [In reply to] Can't Post

It worked great for me, Thanks.

If you would like to see an example of what this code makes.

You can download this and run spamzitup!


Cybernations


(This post was edited by coolgreen44 on Jul 4, 2006, 10:42 AM)


Burg355
Newbie

Dec 5, 2008, 5:10 AM

Post #11 of 11 (137 views)
Shortcut
Re: [thechezman14] [TUT] Basic Auto-talker [In reply to] Can't Post


Code
Public Class Form1  

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

End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.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 Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

'Stops the timer
Timer1.Enabled = False

End Sub

Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick

'Works like you quickly type what ever's in the first textbox
SendKeys(TextBox1.Text)

'Works like you quickly type the enter key
SendKeys("{enter}")

End Sub
End Class


What i put in the red font is the error i get .. what do i put ?

im using MS VISUAL BASIC EXPRESS EDITION 2008


(This post was edited by Burg355 on Dec 5, 2008, 5:20 AM)

 
 
 


Search for (options) Web Design by Web Ideas - Page loaded in: 0.16 s on (CGI/1.1)