[TuT] Making a trainer with VB..
First of all. This is completely leeched off PGH. (Check my siggy, dun care if I gets banned) Enjoy.
WriteLongPointer = Replace this with the WriteLongPointer code in your module (should be on left side of module maker)
WriteMemory = Replace this with the WriteMemory code in your module (should be on left side of module maker)
cshell.dll = Module address
&H451014 = &H + address/pointer
&H2C = &H + your Offset
1 = value you want
2 = type of byte
Now that the timer part is done. You need buttons to enable then, go back to your toolbox and add a button.
If you want timer1 to be enabled then add this code to the button:
If you want timer1 to be disabled then add this code to the button:
To finish off building your trainer:
Go to File > Save All.
Go to Build > Build <APPLICATION NAME>
Building it will fail IF you have any errors in the error window (ignore warnings). There will always be an error popping up because of the module maker, feel free to use a different one.
Code:
Add this code if you have a simple pointer without HEX:dim string1 as long dim string2 as integer string1 = readdll("cshell.dll") 'module of your address string2 = "&H" + Hex(string1 + &H451014) Call WriteMemory(string2,1,2)
WriteLongPointer = Replace this with the WriteLongPointer code in your module (should be on left side of module maker)
WriteMemory = Replace this with the WriteMemory code in your module (should be on left side of module maker)
cshell.dll = Module address
&H451014 = &H + address/pointer
&H2C = &H + your Offset
1 = value you want
2 = type of byte
Now that the timer part is done. You need buttons to enable then, go back to your toolbox and add a button.
If you want timer1 to be enabled then add this code to the button:
Code:
Timer1.Enabled = True
Code:
Timer1.Enabled = False
Go to File > Save All.
Go to Build > Build <APPLICATION NAME>
Building it will fail IF you have any errors in the error window (ignore warnings). There will always be an error popping up because of the module maker, feel free to use a different one.
