View Full Version : trainer and keyboard.
pikachu5501
11-05-2007, 19:38
Ok, i did a trainer that work and all but i can't use keyboard shortcut through normal windows message. I was wondering if there is a way to poll other process input. Any hints on that would be appreciated.
Thanx in advance.
pikachu5501
12-05-2007, 11:04
It wasn't easy to find because when you search "trainer" and "c++" and "game" for example, you get all kind of crap for sales that is not related to any game cheating so i was very lucky to finally find something. Anyway!
That little function that i found seem to work so far for me:
BOOL GetKeyPress(int key)
{
return ((GetAsyncKeyState(key) & 1)==1);
}
and the call:
//do this within a timer. I set mine at 100
if(GetKeyPress(VK_F1))
// write stuff in memory
hope this code is ok and will help someone else.
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.