Go Back   FileForums > Games > Game Coders
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-05-2007, 18:38
pikachu5501 pikachu5501 is offline
Senior Member
 
Join Date: Oct 2006
Location: canada
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
pikachu5501 is on a distinguished road
trainer and keyboard.

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.
Reply With Quote
Sponsored Links
  #2  
Old 12-05-2007, 10:04
pikachu5501 pikachu5501 is offline
Senior Member
 
Join Date: Oct 2006
Location: canada
Posts: 101
Thanks: 0
Thanked 1 Time in 1 Post
pikachu5501 is on a distinguished road
Found it (i think)

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:

Code:
BOOL GetKeyPress(int key)
{
return ((GetAsyncKeyState(key) & 1)==1);
}
and the call:

Code:
//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.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -7. The time now is 15:01.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com