[Tutorial] Adding Pointers in your VB5/6 Trainer
Due to SEVERAL private messages on this, here it is. Adding pointers in Visual Basic 5/6. Be sure to read all of it to make sure your brain understands how it works. From there you could even think of more things! Amazing really.
This tutorial is for swim in VB6. This tutorial is to teach you the basics of adding a pointer in VB6. I am assuming that you followed TheRedEye's tutorial on Creating a trainer in VB5/6 and added the API statement he got off of a website to attach the VB program to a running process. If you have not, read his tutorial first. I'm going to throw out the entire code at first. Take a look over it to see what I'll be explaining and how simple it can be broken down into. I explain more about it below the entire code.
Dim Swim As Long
Dim Swim1 As Long
Call ReadALong("Warrock", &H894E28, Swim)
Swim1 = Swim + &H54
Call WriteALong("Warrock", Swim1, 4)
Dim 'VARIABLE' As Long
^___ Sets a value. You can name 'VARIABLE' whatever you'd like. It is basically like setting a variable in C/C++. (of course no quotes around the variable) In this case, you'll need 2 variables set to make the pointer. Make sure they are not named the same thing as you will need two differently named variables later.
Call ReadALong("PROGRAM NAME", ADDRESS, VARIABLE1)
Program name is obvious. This finds the exe file in the process list to edit (this was all decleared in that API statement/module you added). Address is the address of whatever you are beginning with. Don't add the pointer yet. That is next. VARIABLE1 is the first variable you set the address to. This is for the pointer being added to it later. If you don't understand how this quite works, continue reading on. There's a chance you could make the connection.
VARIABLE2 = VARIABLE1 + POINTER
This is setting the second variable to be set as the first variable (basically the address for swim in this case) plus the pointer you are pointing to.
Call WriteALong("PROGRAM NAME", VARIABLE2, ValueSetting)
Program name is explained above. Variable2 is set to Variable1 + pointer (just like cheat engine). Valuesetting is what you want to change the value of the address + pointer to (in this case, the address + pointer is variable 2).
You can make separate buttons for this. One to turn the swim on (ValueSetting set to 4) and one to turn swim off (ValueSetting set to 0). ( 0 is also standing upright position. So basically back to normal. )
Don't forget to add the '&H' before the address/pointer you declare. This kind of a big deal. lol.
+Rep me if this helps you in any way. Thanks.
Tutorial by mains3rv3r of MPGH.
This tutorial is for swim in VB6. This tutorial is to teach you the basics of adding a pointer in VB6. I am assuming that you followed TheRedEye's tutorial on Creating a trainer in VB5/6 and added the API statement he got off of a website to attach the VB program to a running process. If you have not, read his tutorial first. I'm going to throw out the entire code at first. Take a look over it to see what I'll be explaining and how simple it can be broken down into. I explain more about it below the entire code.
Dim Swim As Long
Dim Swim1 As Long
Call ReadALong("Warrock", &H894E28, Swim)
Swim1 = Swim + &H54
Call WriteALong("Warrock", Swim1, 4)
Dim 'VARIABLE' As Long
^___ Sets a value. You can name 'VARIABLE' whatever you'd like. It is basically like setting a variable in C/C++. (of course no quotes around the variable) In this case, you'll need 2 variables set to make the pointer. Make sure they are not named the same thing as you will need two differently named variables later.
Call ReadALong("PROGRAM NAME", ADDRESS, VARIABLE1)
Program name is obvious. This finds the exe file in the process list to edit (this was all decleared in that API statement/module you added). Address is the address of whatever you are beginning with. Don't add the pointer yet. That is next. VARIABLE1 is the first variable you set the address to. This is for the pointer being added to it later. If you don't understand how this quite works, continue reading on. There's a chance you could make the connection.
VARIABLE2 = VARIABLE1 + POINTER
This is setting the second variable to be set as the first variable (basically the address for swim in this case) plus the pointer you are pointing to.
Call WriteALong("PROGRAM NAME", VARIABLE2, ValueSetting)
Program name is explained above. Variable2 is set to Variable1 + pointer (just like cheat engine). Valuesetting is what you want to change the value of the address + pointer to (in this case, the address + pointer is variable 2).
You can make separate buttons for this. One to turn the swim on (ValueSetting set to 4) and one to turn swim off (ValueSetting set to 0). ( 0 is also standing upright position. So basically back to normal. )
Don't forget to add the '&H' before the address/pointer you declare. This kind of a big deal. lol.
+Rep me if this helps you in any way. Thanks.
Tutorial by mains3rv3r of MPGH.


