PDA

View Full Version : [Tutorial]Make Vb6 trainer



Dxt-Cobra
08-24-2007, 11:05 AM
Im assuming you have vb6,ok lets get started.
im not going to get in depth of the properties.(color,clip controls,etc.)


Open vb6,hit make new Standard.exe,now we have are basic form page.

1.We need to rename this,notice on the righthand side.You will see project1 properties.
if you notice caption is highlighted,in our properties box.thats the name of our forum.go ahead and rename it.My Trainer V1.0 or w/e.

2.ok you need this module,for warrock
too add this module,at the top left of vb6 by the file,and edit,under it is a pic
http://img413.imageshack.us/img413/2202/vb6trianereditdn3.gif









Public Const PROCESS_ALL_ACCESS = &H1F0FFF
Dim f1holder As Integer
Dim timer_pos As Long

'API Declaration
Public Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Long
Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
Public Declare Function ReadProcessMem Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long

Public Function WriteAByte(gamewindowtext As String, address As Long, value As Byte)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
WriteProcessMemory phandle, address, value, 1, 0&
CloseHandle hProcess
End Function

Public Function WriteAnInt(gamewindowtext As String, address As Long, value As Integer)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
WriteProcessMemory phandle, address, value, 2, 0&
CloseHandle hProcess
End Function

Public Function WriteALong(gamewindowtext As String, address As Long, value As Long)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
WriteProcessMemory phandle, address, value, 4, 0&
CloseHandle hProcess
End Function

Public Function ReadAByte(gamewindowtext As String, address As Long, valbuffer As Byte)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
ReadProcessMem phandle, address, valbuffer, 1, 0&
CloseHandle hProcess
End Function

Public Function ReadAnInt(gamewindowtext As String, address As Long, valbuffer As Integer)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
ReadProcessMem phandle, address, valbuffer, 2, 0&
CloseHandle hProcess
End Function

Public Function ReadALong(gamewindowtext As String, address As Long, valbuffer As Long)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
ReadProcessMem phandle, address, valbuffer, 4, 0&
CloseHandle hProcess
End Function

Public Function ReadAFloat(gamewindowtext As String, address As Long, valbuffer As Single)
Dim hWnd As Long
Dim pid As Long
Dim phandle As Long
hWnd = FindWindow(vbNullString, gamewindowtext)
If (hWnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If

GetWindowThreadProcessId hWnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If

ReadProcessMem phandle, address, valbuffer, 4, 0&
CloseHandle hProcess
End Function



Public Function WriteAFloat(gamewindowtext As String, address As Long, value As Single)
Dim hWnd As Long
Dim pid As Long
Dim phandle As Long

hWnd = FindWindow(vbNullString, gamewindowtext)
If (hWnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If

GetWindowThreadProcessId hWnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If

WriteProcessMemory phandle, address, value, 4, 0&
CloseHandle hProcess
End Function


ok now we have our module,were ready to build our trainer
now heres how to do a button and hotkeys

3.now to add a button,go to the lefthand side,to the toolbar,double click a button,now you have a button on your form,click it to put were you want it.Notice you can resize it and whatnot.ok now

4.rename this button,look into the properties box again,now your in the properties of this button,scroll threw it,look for caption(and rename it)

5.Adding a code to this button,double click the button,now your in the coding part of the button/trainer.this is what you should see



Private Sub Command1_Click()

End Sub


ok,we want to put in our addie like so.ill do gps



Private Sub Command1_Click()
Call WriteAlong("WarRock", &H90DC84 , 1)
End Sub


Notice its Writing along our addie we use in uce with &H infront(vb code &H)with a value of 1 for on.To do the Off code it would be in another button of course and a value of 0,like so



Private Sub Command2_Click()
Call WriteAlong("WarRock", &H90DC84 , 0)
End Sub


ok,moving on

6.hotkeys,You need two timers for this
you need to Add A Timer,In the toolbox with the button
ok now goto the properties of the timer,Righthand side(when you add something into your trainer or form it will automaticlly be in the properties for that timer or button.in properties look for the interval set it to 1.
now double click on that timer to add in our code(this timer is for the hotkey.



If GetKeyPress (VbKeyNumpad0)then
If Timer2.Interval = 0 Then Timer2.Interval = 1
Else: Timer2.Interval = 0
End If


now if you notice GetKeyPress(VBkey) is our hotkey command
heres a few for pointers
VBKeyNumpad0-9
VbKeyShift
VbKeyP
ok and the rest of the code
If Timer2.Interval = 0 Then Timer2.Interval = 1
Else: Timer2.Interval = 0,
this will tell our trainer to turn on the timer we want,by changeing the interval

7.now add the second timer,(leave the interval as 0)and add our code for the cheat,again i will use gps



Call WriteALong("WarRock", &H90DC84 ,1)


hopefully You get my point to a hotkey,If you dont understand start with buttons first.

now we have a gps hack with buttons and a hotkey.lets test our trainer before saving.go to the play button at the top.
p.s you must have warrock opened up for your trainer to work.

if everything tested out fine and worked then we are ready to save our trainer.exe

8.go to file and save your trainer,change the names to what you want,then go back to file and look for make project1.exe or w/e u named it.exe and your done find your trainer inside C:\Program Files\Microsoft Visual Studio\VB98

and thats it.woot woot

soon i will post how to add more hotkeys to the same timer,and change the looks of your trainer,even how to add your own icons.etc.

jawad_33
08-31-2007, 12:56 PM
Tnx :d :d :d :d

SH15TER
09-06-2007, 12:07 PM
lolz i dont understand -__-?

DRILLKID122
09-10-2007, 03:56 PM
the address is the same for CE right?

wr194t
09-11-2007, 03:48 PM
the address is the same for CE right?Yeah just with 2 00 at the start: 943A16 Scope for VB6, 00943A16 Scope for CE.

p3ri0d
09-11-2007, 03:58 PM
Yeah just with 2 00 at the start: 943A16 Scope for VB6, 00943A16 Scope for CE.

That doesn't matter anything... you can put 00943A16 in VB and 943A16 in CE and it will still do the same thing. :rolleyes:

wr194t
09-11-2007, 03:59 PM
That doesn't matter anything... you can put 00943A16 in VB and 943A16 in CE and it will still do the same thing. :rolleyes:Oh right, i never knew that :p.

HydroQc
02-07-2008, 03:32 PM
Well there is ONE! thing i don't understantd...For the hot keys...Hoe do i do them? I get a code but the lines are disapearing when i put the timer code....

should i get a code lie this

Private Sub Timer1_Timer()
If GetKeyPress(vbKeyNumpad0) Then
If Timer2.Interval = 0 Then Timer2.Interval = 1
Else: Timer2.Interval = 0
End If

End Sub

OR


If GetKeyPress(vbKeyNumpad0) Then
If Timer2.Interval = 0 Then Timer2.Interval = 1
Else: Timer2.Interval = 0
End If

And when I want to make hack for stamina...I juste have to change the adress...In this case ->
&H90DC84 or do i have to change all the code

So if i have to change the adress i will put
Private Sub Command1_Click()
Call WriteALong("WarRock", &NB OF MY ADRESS?, 1)
End Sub

virus7799
02-07-2008, 05:38 PM
Well there is ONE! thing i don't understantd...For the hot keys...Hoe do i do them? I get a code but the lines are disapearing when i put the timer code....

should i get a code lie this

Private Sub Timer1_Timer()
If GetKeyPress(vbKeyNumpad0) Then
If Timer2.Interval = 0 Then Timer2.Interval = 1
Else: Timer2.Interval = 0
End If
End Sub

OR


If GetKeyPress(vbKeyNumpad0) Then
If Timer2.Interval = 0 Then Timer2.Interval = 1
Else: Timer2.Interval = 0
End If

And when I want to make hack for stamina...I juste have to change the adress...In this case ->
&H90DC84 or do i have to change all the code

So if i have to change the adress i will put
Private Sub Command1_Click()
Call WriteALong("WarRock", &NB OF MY ADRESS?, 1)
End Sub


First of all, the stamina code looks like this in a timer:



Private Sub Timer1_Timer()
Dim Stamina As Long
Dim Stamina1 As Long
Call ReadALong("WarRock", &H1332A20, Stamina)
Stamina1 = Stamina + &H288
Call WriteALong("Warrock", Stamina1, 1120403456)
End Sub

Then if you wanna put this in a button which you press for ON:

Pirvate Sub Command1_Click()
Timer1.Enabled=True
End Sub

For off:

Pirvate Sub Command1_Click()
Timer1.Enabled=False
End Sub

Post any questions here.

HydroQc
02-07-2008, 07:33 PM
So....I have to put a timer for EACH hack?? Each of them or only stamina one...Can someone give me a good but old script that is still working now on VB6 so i can analyse it and understand it...???

virus7799
02-07-2008, 08:31 PM
So....I have to put a timer for EACH hack?? Each of them or only stamina one...Can someone give me a good but old script that is still working now on VB6 so i can analyse it and understand it...???

Yeah basically, each hack needs to be put in a timer. (Unless you want to put scope in a button, which doesnt need a timer.) If you want to do hotkeys, this is how it would be formatted. I'm using superjump/skysotmer as an exmaple:


Private Sub Timer1_Timer()
If GetKeyPress(vbKeyZ) Then
Dim SuperJump As Long
Dim SuperJump1 As Long
Dim SuperJump2 As Single
Call ReadALong("WarRock", &1332A20, SuperJump)
SuperJump1 = SuperJump + &H178
SuperJump2 = Text1.Text
Call WriteAFloat("WarRock", SuperJump1, SuperJump2)
End If
End Sub

What this basically does is when you press the key 'Z' you will jump up in the sky. If you hold 'Z', it will be like Skystormer.

Remember, this code would be detected in like 5 mins. I belive PB does a scan every 5 mins. You would need to change a lot of strings if you wanted to make this undetected for some time.

I don't have any old codes that I can give you because I gave up coding in Vb6 some time ago. It's better to learn and code yourself. Copy and pasting won't get you anywhere.

If you have any questions post them.

jeffrey1994
02-08-2008, 08:34 AM
CAN SOMEONE MAKE A MODULE O.o !!!! post it here..

A NEW MODULE?!!

bigfoot
02-08-2008, 10:29 PM
learn to make your own undetected module. It'll be hard at first, but one you get the hang of it you'll get better and better

HydroQc
02-09-2008, 01:38 PM
Are timers only for hot keys...Or are they for making a hack to work??

legendar
06-27-2008, 06:23 PM
i have a question when ive made my first hack i made like this Call Wryteabyte (&HAddy + &H0, &HPlayerpointer ) and then depends how many pointers there are if are 3 pointers the code will look like this
Call Wryteabyte (&HAddy + &H0, &HPlayerpointer )
Call Wryteabyte (&HAddy + &H1, &HPlayerpointer )
Call Wryteabyte (&HAddy + &H2, &HPlayerpointer )
and the off buttons where different addyes but this works only at some hacks no?because i know that stamina hack are with dims...or superjump

frostbitekid
06-27-2008, 06:24 PM
i have a question when ive made my first hack i made like this Call Wryteabyte (&HAddy + &H0, &HPlayerpointer ) and then depends how many pointers there are if are 3 pointers the code will look like this
Call Wryteabyte (&HAddy + &H0, &HPlayerpointer )
Call Wryteabyte (&HAddy + &H1, &HPlayerpointer )
Call Wryteabyte (&HAddy + &H2, &HPlayerpointer )
and the off buttons where different addyes but this works only at some hacks no?because i know that stamina hack are with dims...or superjump

WTH are you trying to make?

Firesnipe
06-27-2008, 06:46 PM
i have a question when ive made my first hack i made like this Call Wryteabyte (&HAddy + &H0, &HPlayerpointer ) and then depends how many pointers there are if are 3 pointers the code will look like this
Call Wryteabyte (&HAddy + &H0, &HPlayerpointer )
Call Wryteabyte (&HAddy + &H1, &HPlayerpointer )
Call Wryteabyte (&HAddy + &H2, &HPlayerpointer )
and the off buttons where different addyes but this works only at some hacks no?because i know that stamina hack are with dims...or superjump
Sorry to say but that is all wrong
I think you need to check a few other tut's on pointers
So try finding a Stamina or Super Jump or No fall Damage tut for VB6 because your coding a bit off

legendar
06-27-2008, 06:50 PM
i used this for coding invi opk,anti-kick,boneshot,svp,esp b ut i used other player pointers i didn't used 1 for on an 0 for off but maybee that was for only that kind of hacks
P.S.:Can somebody say me how to code premium??

frostbitekid
06-27-2008, 06:51 PM
Yea, offsets are not as easy as that. Try VB08, its so much easier than VB6.

Firesnipe
06-27-2008, 06:52 PM
Btw I forgot to say
But WriteByte isn't the same as WriteLong
Unless you changed WriteLong string to WriteByte

labowsky
07-01-2008, 11:03 PM
hey thanks i needed this tut xD

hiro101
08-14-2008, 09:13 AM
Im assuming you have vb6,ok lets get started.
im not going to get in depth of the properties.(color,clip controls,etc.)


Open vb6,hit make new Standard.exe,now we have are basic form page.

1.We need to rename this,notice on the righthand side.You will see project1 properties.
if you notice caption is highlighted,in our properties box.thats the name of our forum.go ahead and rename it.My Trainer V1.0 or w/e.

2.ok you need this module,for warrock
too add this module,at the top left of vb6 by the file,and edit,under it is a pic
http://img413.imageshack.us/img413/2202/vb6trianereditdn3.gif









Public Const PROCESS_ALL_ACCESS = &H1F0FFF
Dim f1holder As Integer
Dim timer_pos As Long

'API Declaration
Public Declare Function GetWindowThreadProcessId Lib "user32" (ByVal hwnd As Long, lpdwProcessId As Long) As Long
Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Long, ByVal bInheritHandle As Long, ByVal dwProcessId As Long) As Long
Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long
Public Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Public Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal Classname As String, ByVal WindowName As String) As Long
Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer
Public Declare Function ReadProcessMem Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Long, ByVal lpBaseAddress As Any, ByRef lpBuffer As Any, ByVal nSize As Long, lpNumberOfBytesWritten As Long) As Long

Public Function WriteAByte(gamewindowtext As String, address As Long, value As Byte)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
WriteProcessMemory phandle, address, value, 1, 0&
CloseHandle hProcess
End Function

Public Function WriteAnInt(gamewindowtext As String, address As Long, value As Integer)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
WriteProcessMemory phandle, address, value, 2, 0&
CloseHandle hProcess
End Function

Public Function WriteALong(gamewindowtext As String, address As Long, value As Long)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
WriteProcessMemory phandle, address, value, 4, 0&
CloseHandle hProcess
End Function

Public Function ReadAByte(gamewindowtext As String, address As Long, valbuffer As Byte)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
ReadProcessMem phandle, address, valbuffer, 1, 0&
CloseHandle hProcess
End Function

Public Function ReadAnInt(gamewindowtext As String, address As Long, valbuffer As Integer)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
ReadProcessMem phandle, address, valbuffer, 2, 0&
CloseHandle hProcess
End Function

Public Function ReadALong(gamewindowtext As String, address As Long, valbuffer As Long)
Dim hwnd As Long
Dim pid As Long
Dim phandle As Long
hwnd = FindWindow(vbNullString, gamewindowtext)
If (hwnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If
GetWindowThreadProcessId hwnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If
ReadProcessMem phandle, address, valbuffer, 4, 0&
CloseHandle hProcess
End Function

Public Function ReadAFloat(gamewindowtext As String, address As Long, valbuffer As Single)
Dim hWnd As Long
Dim pid As Long
Dim phandle As Long
hWnd = FindWindow(vbNullString, gamewindowtext)
If (hWnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If

GetWindowThreadProcessId hWnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If

ReadProcessMem phandle, address, valbuffer, 4, 0&
CloseHandle hProcess
End Function



Public Function WriteAFloat(gamewindowtext As String, address As Long, value As Single)
Dim hWnd As Long
Dim pid As Long
Dim phandle As Long

hWnd = FindWindow(vbNullString, gamewindowtext)
If (hWnd = 0) Then
MsgBox "The Game Is Not Working", vbCritical, "Error"
End
Exit Function
End If

GetWindowThreadProcessId hWnd, pid
phandle = OpenProcess(PROCESS_ALL_ACCESS, False, pid)
If (phandle = 0) Then
MsgBox "Can't get ProcessId", vbCritical, "Error"
Exit Function
End If

WriteProcessMemory phandle, address, value, 4, 0&
CloseHandle hProcess
End Function


ok now we have our module,were ready to build our trainer
now heres how to do a button and hotkeys

3.now to add a button,go to the lefthand side,to the toolbar,double click a button,now you have a button on your form,click it to put were you want it.Notice you can resize it and whatnot.ok now

4.rename this button,look into the properties box again,now your in the properties of this button,scroll threw it,look for caption(and rename it)

5.Adding a code to this button,double click the button,now your in the coding part of the button/trainer.this is what you should see



Private Sub Command1_Click()

End Sub


ok,we want to put in our addie like so.ill do gps



Private Sub Command1_Click()
Call WriteAlong("WarRock", &H90DC84 , 1)
End Sub


Notice its Writing along our addie we use in uce with &H infront(vb code &H)with a value of 1 for on.To do the Off code it would be in another button of course and a value of 0,like so



Private Sub Command2_Click()
Call WriteAlong("WarRock", &H90DC84 , 0)
End Sub


ok,moving on

6.hotkeys,You need two timers for this
you need to Add A Timer,In the toolbox with the button
ok now goto the properties of the timer,Righthand side(when you add something into your trainer or form it will automaticlly be in the properties for that timer or button.in properties look for the interval set it to 1.
now double click on that timer to add in our code(this timer is for the hotkey.



If GetKeyPress (VbKeyNumpad0)then
If Timer2.Interval = 0 Then Timer2.Interval = 1
Else: Timer2.Interval = 0
End If


now if you notice GetKeyPress(VBkey) is our hotkey command
heres a few for pointers
VBKeyNumpad0-9
VbKeyShift
VbKeyP
ok and the rest of the code
If Timer2.Interval = 0 Then Timer2.Interval = 1
Else: Timer2.Interval = 0,
this will tell our trainer to turn on the timer we want,by changeing the interval

7.now add the second timer,(leave the interval as 0)and add our code for the cheat,again i will use gps



Call WriteALong("WarRock", &H90DC84 ,1)


hopefully You get my point to a hotkey,If you dont understand start with buttons first.

now we have a gps hack with buttons and a hotkey.lets test our trainer before saving.go to the play button at the top.
p.s you must have warrock opened up for your trainer to work.

if everything tested out fine and worked then we are ready to save our trainer.exe

8.go to file and save your trainer,change the names to what you want,then go back to file and look for make project1.exe or w/e u named it.exe and your done find your trainer inside C:\Program Files\Microsoft Visual Studio\VB98

and thats it.woot woot

soon i will post how to add more hotkeys to the same timer,and change the looks of your trainer,even how to add your own icons.etc.
didnt work mine crashed

Firesnipe
08-14-2008, 09:15 AM
Because all VB6 hacks are patched
PB will not allow any .exes to use WriteProcessMemory
The WriteProcessMemory is in your module

hiro101
08-14-2008, 10:20 AM
Because all VB6 hacks are patched
PB will not allow any .exes to use WriteProcessMemory
The WriteProcessMemory is in your module

ok so fire what do i do if i wana make a hack?

Renji513
08-14-2008, 11:10 AM
ok so fire what do i do if i wana make a hack?

LEARN C++ TO MAKE D3D Hooks

snipersmile

Vescovo
08-14-2008, 11:13 AM
instead of writeproccessmemory couldn't you just use pokes?

Firesnipe
08-14-2008, 12:23 PM
Pokes?
Can you explain what those are?

Vescovo
08-14-2008, 12:50 PM
Pokes?
Can you explain what those are?

I dont think vb6 has them implemented but its pretty cool
just go to wikepedia its really simple.

surviva001
08-15-2008, 07:35 PM
mine crashed:oopzeies:mad::(:oopzeies:oopzeies:oopzeies :oopzeiesfgt60fgt42snipersmilesniperheadshot2fgt28

azakma
02-20-2009, 02:01 PM
Thanks its good for me(I begin andim big naab Snifff)

c4rl05cb
03-03-2009, 12:11 PM
very good tuttorial thank you

zack1855
03-27-2009, 03:00 PM
Dose this work for vista i had some problems with it my trainer freezes up do i have to run it as admin i tried that but it still freezed up idk whats wrong

sevile89
03-28-2009, 07:50 PM
thank you ^^

phuong121212
04-02-2009, 07:00 PM
thax kinda help a lil

dutch
04-03-2009, 01:04 PM
thax kinda help a lil
its patched :P all .exe files are patched learn c++ dll

superbarnie
04-03-2009, 08:14 PM
cool i used to make trainers for flash games i never made a trainer for a regular game.

darksoulest
04-10-2009, 10:55 AM
whats does vb6 stand for????

dutch
04-10-2009, 01:12 PM
whats does vb6 stand for????

visual basic 6 :P if u try to make a trainer for online games not on the www then try learning c++

ZippoXy5
04-10-2009, 05:40 PM
Oh thanks =D im a pro vb6 but is was searching for the declaration xD

yamakickhi
04-17-2009, 06:56 PM
:skeetskeet:skeetskeet:skeetskeet:skeetskeet:skeet skeet:skeetskeet:skeetskeet

xenaro6191
09-16-2009, 06:05 AM
I Don't Understand for my ProjecT?? Finish Code help me?? Error Code?

xenaro6191
09-18-2009, 08:55 AM
I Don't Understand GIVE me A Video Or Complete Tutorial ScreenShots....! THXX..... WatEver