- Joined
- Nov 23, 2006
- Sythe Gold
- 1,609
- Messages
- 7,145
- Location
- Canada
- Discord Unique ID
- 178533992981594112
[TUT]Making an autotalker with interval as user input and anti-ban
How to operate it once it's done:
Type a message in both or one of your text boxes (text1 or text2). Then press either F7 or F8 and your message will appear in the place you wanted it to go (make sure you have this "place" selected).
1. Okey! Open up VB6, and start a standard EXE. Pop the following on the form:
2. Once you have all your controls, put their CAPTIONS as the following (for textboxes it's "text" not "caption"):
Text1 = F7
Text2 = F8
Text3 = Interval (Seconds, default 1)
Command1 = Apply Interval
Timer1 = (cannot be captioned)
3. CODE TIME WEEEET!!! Let's start at the top of the code page. Double click on your form, and add this:
Don't worry about what that does for now, it's kinda complicated and you'll understand it later. Then, right below that, you add this:
That's the line that gathers the keys you press, to make them do something later in the application. In this case, it'll be the hotkeys to activate the sendkeys command.
4. Then, below the last line of code, pop this in:
That tells the application that when Command1 (our command button) is clicked, it changes Timer1's interval to whatever the user enters in Text3 times 1000 (because the user types in the interval in seconds, 1000miliseconds go into a second, get it?).
5. And now, the moment of truth! The "heart" of the program! Add it below the last code.
OK. Now what this does is it tells Timer1 that if you press F7 (or another key that you can switch for F7, but we will be using buttons F7 and F8) to send the text from Text1 to the selected textbox (e.g. Runescape) then to press enter. In Runescape for example, messaging normally is you type your message in, then press enter.
Summing that code up, it just tells the program to copy the Text in either Text1 or Text2 to the selected textbox, then to press enter to "summon" that text.
NUMBER 6 AND 7 ARE OPTIONAL (anti-ban)
6. This is an anti-ban, optional but good to have. It may not look like it's making a difference, but without it you could be 1 step away from being banned. Add this in right after step 3. This is the code:
AMGz NOOOeSSsss!!! Looks complicated eh? Well in theory it's even more simple than the Sendkeys command. What this does is it gets each letter individually from Text1 and Text2 and types it in like a human. Though fast, this fools Jagex suprisingly.
7. For this next code, you're going to need a module. So go up in the menu bar at the top of VB6 and click Project > Add Module (NOT A CLASS MODULE). Go into it's code window and add this:
This piece of code is VB6-speak for "Get the time.". So that's exactly what it does. Since we used the wait function in #6, the program needs to know the time, so it can wait for the specified length of time (in this case to type in the next letter for the HumanType function).
Finally, are we done?
No, you're never done. This is just a simple code - you can add features such as extra forms, text effects, a language translating spammer...Anything! That's what's good about Visual Basic.
CREDITS

WTF WHERE'S THE SOURCE CODE!?
LOL @ U!! You won't learn if I just give a source code, which you might then just move a couple of the controls around and call it your own
Read the tut. Learn something. Stop being so lazy.
How to operate it once it's done:
Type a message in both or one of your text boxes (text1 or text2). Then press either F7 or F8 and your message will appear in the place you wanted it to go (make sure you have this "place" selected).
1. Okey! Open up VB6, and start a standard EXE. Pop the following on the form:
TEXTBOXES = 3
Multiline = True
Scrollbars = Horizontal
The 3rd textbox is kept at default settings.
COMMAND BUTTONS = 1
Keep this button at default.
TIMERS = 1 (2 if you're adding an anti-ban)
Timer1:Enabled = True
Interval = 1000
Timer2 (add only if you are doing an anti-ban): Enabled = True
Interval = 1000
2. Once you have all your controls, put their CAPTIONS as the following (for textboxes it's "text" not "caption"):
Text1 = F7
Text2 = F8
Text3 = Interval (Seconds, default 1)
Command1 = Apply Interval
Timer1 = (cannot be captioned)
3. CODE TIME WEEEET!!! Let's start at the top of the code page. Double click on your form, and add this:
Code:
Option Explicit
Don't worry about what that does for now, it's kinda complicated and you'll understand it later. Then, right below that, you add this:
Code:
Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vkey As Long) As Integer
That's the line that gathers the keys you press, to make them do something later in the application. In this case, it'll be the hotkeys to activate the sendkeys command.
4. Then, below the last line of code, pop this in:
Code:
Private Sub Command1_Click()
Timer1.Interval = Text3.Text * 1000
End Sub
That tells the application that when Command1 (our command button) is clicked, it changes Timer1's interval to whatever the user enters in Text3 times 1000 (because the user types in the interval in seconds, 1000miliseconds go into a second, get it?).
5. And now, the moment of truth! The "heart" of the program! Add it below the last code.
Code:
Private Sub Timer1_Timer()
If GetAsyncKeyState(vbKeyF7) Then
SendKeys Text1.Text
SendKeys "{Enter}"
End If
If GetAsyncKeyState(vbKeyF8) Then
SendKeys Text2.Text
SendKeys "{Enter}"
End If
End Sub
OK. Now what this does is it tells Timer1 that if you press F7 (or another key that you can switch for F7, but we will be using buttons F7 and F8) to send the text from Text1 to the selected textbox (e.g. Runescape) then to press enter. In Runescape for example, messaging normally is you type your message in, then press enter.
Summing that code up, it just tells the program to copy the Text in either Text1 or Text2 to the selected textbox, then to press enter to "summon" that text.
NUMBER 6 AND 7 ARE OPTIONAL (anti-ban)
6. This is an anti-ban, optional but good to have. It may not look like it's making a difference, but without it you could be 1 step away from being banned. Add this in right after step 3. This is the code:
Code:
Private Sub SendHumanText(What As String)
Dim Spam1 As String
Dim i As Long
For i = 1 To 3000
Going = 1
If Going = 0 Then Exit Sub
Spam1 = Mid(What, i, 1)
If Spam1 = "" Then
SendKeys "{enter}"
Going = 0
Exit Sub
End If
SendKeys Spam1
Wait Rnd(100) + Rnd(67) + Rnd(93)
Next i
End Sub
AMGz NOOOeSSsss!!! Looks complicated eh? Well in theory it's even more simple than the Sendkeys command. What this does is it gets each letter individually from Text1 and Text2 and types it in like a human. Though fast, this fools Jagex suprisingly.
7. For this next code, you're going to need a module. So go up in the menu bar at the top of VB6 and click Project > Add Module (NOT A CLASS MODULE). Go into it's code window and add this:
Code:
Public Declare Function timeGetTime Lib "winmm.dll" () As Long
Public Sub Wait(TimeOut As Long)
Dim TimeNow As Long
TimeNow = timeGetTime()
Do
DoEvents
Loop While TimeNow + TimeOut > timeGetTime()
End Sub
This piece of code is VB6-speak for "Get the time.". So that's exactly what it does. Since we used the wait function in #6, the program needs to know the time, so it can wait for the specified length of time (in this case to type in the next letter for the HumanType function).
Finally, are we done?
No, you're never done. This is just a simple code - you can add features such as extra forms, text effects, a language translating spammer...Anything! That's what's good about Visual Basic.
CREDITS
...for helping with steps 6 and 7Jazz00006
Sap
Ace
Blupig
Cruel
Dr43k0n
CFJ0
Joewnn
Stuart
Dark_Night
WTF WHERE'S THE SOURCE CODE!?
LOL @ U!! You won't learn if I just give a source code, which you might then just move a couple of the controls around and call it your own
















