well, the VB code is just fine, altho i might recommend a different "recognition" scheme..... tracking apps just by its window name is kinda lame

)
and, your trainer works also (if u made it), but u need correct memory addresses to make it work for any game........
example:
memory address 0x05832 might work for shotgun ammo in one game, but it would crash the other game, or just it would have no effect, because in the other game the shotgun shells are at 0x052135 .......
the memory addresses are just random numbers i used for an example.....
so, unless you have the correct "numbers", your trainer won't do much.... except possibly lagging the game.....