well I need to read the when the r key is pressed. If I don't use a key logger the only other way would be to directly inject a hack in a .dll file into the game. Hmm that might be easier, but there's still the whole issue of sending values to the speedhack window. You know what. Now that you mention it it would be easier to just create a compeltly new speed hack then do what I was planning to do o_O...
Change of plans:
I need to figure out how to make a speed hack. I might be able to find the source code for dark_bytes speed hack.
EDIT: Found the source for Dark Byte's speedhack, but he wrote in Delphi >_> I have no idea wtf that is, but it looks sort of similar to any other HLL. Here you could take a look if you want. In theory all I would have to make it do is set the speed when the r key is pressed... It's too bad I don't really know the language.