If you're familiar with cheat engines AA scripts, this class might help you. Otherwise it wont do you much good. Its very simple to use but the functionality is very limited.
Heres an example also shown in the project.
Say you have one of the instructions that access trigger speed.
Code:
00768DEB - 83 7E 3C 00 - cmp dword ptr [esi+3C],00
00768DEF - 74 6A - je 00768E5B
And if you want to inject some custom code. Well a jump like that requires 5 bytes. As you can see
cmp dword ptr [esi+3C],00 is only 4 bytes, so a codecave is needed to write
mov [esi+3c],00000000.
mov [esi+3c],00000000 when read from the memory viewer is c7 46 3c 00 00 00 00
In the vb source you would write
Code:
Mem.Inject_Jmp(&H768DEB, "c7463c00000000", "837e3c00746A")
&H768DEB being the address you jump from.
"c7463c00000000" being the new bytes you want to write and
"837e3c00746A" being the default bytes.
1 click of the button writes the hack, another click puts it back to default and cleans up the cave.
If you dont know anything about code injection and mess up the default bytes, your game will crash.
Report any bugs to me, iv made alot fo changes but iv not had time to test everything.
VirusTotal
Jotti