The RegisterHotkey() function is much more useful and efficient.. because then the program does not need to have the focus in order for the hotkeys to work. and GetASyncKeyState does not support two key combinations like Shift+ G , etc..
One of the most basic things needed in a trainer, hotkeys to activate or deactivate cheats!
GetAsyncKeyState("A Virtual-Key Here");
GetAsyncKeyState will return true if the key is down and false if it isn't.
List of keys:
https://msdn.microsof*****m/library/de...alkeycodes.asp
Oh yeah you need to include the library "user32.lib"
THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE
"First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311
HAVING VIRTUAL DETOX
The RegisterHotkey() function is much more useful and efficient.. because then the program does not need to have the focus in order for the hotkeys to work. and GetASyncKeyState does not support two key combinations like Shift+ G , etc..
True, however GetASyncKeyState can be used for combinations of keys. BTW: Its RegisterHotKeyOriginally Posted by niggas
THE EYE OF AN ADMINISTRATOR IS UPON YOU. ANY WRONG YOU DO IM GONNA SEE, WHEN YOU'RE ON MPGH, LOOK BEHIND YOU, 'CAUSE THATS WHERE IM GONNA BE
"First they ignore you. Then they laugh at you. Then they fight you. Then you lose.” - Dave84311
HAVING VIRTUAL DETOX
System wide hotkeys are better because you don't eat up CPU time in a loop to check key state.
Yea, true, but that might interfere with other applications running on your system
system wide hooks in my opinion are not a good thing to practice.
But PowerKeyFunc() works the best IMO.
BRING BACK BT, BRING BACK SAGA, BRING BACK VF, BRING BACK MPGHCRAFT, BRING BACK HABAMON
ty for these i didnt know these before