Okay, I recognise a lame attempt to make a game cheat program. It would be better to spend time practicing the game than wasting time trying to cheat.

It's not working because of a wonderful things called process isolation. Of course the busy-loop stealing away as much processing time from the game as possible wouldn't help either. I'm not going to tell you how to fix any of it.