Need help?HotKey Dont Work.! - MPGH - MultiPlayer Game Hacking & Cheats
HotKey Dont Work.!
Posts 1–5 of 5 · Page 1 of 1
HotKey Dont Work.!
Hi i have a problem bout hotkeys, I already tried keydown event on form.
it doesn't work this is my code
if e.keycode = keys.insert then
me.visible = true
else
me.visible = false
end if
or this code
if keys.insert then
me.visible = true
else
me.visible = false
end if
Those Code i put On Timer,keyDown Event but now luck!
--
I don't want to use GetAsyncKeyState. I hope you know what i mean
The KeyDown event doesn't capture from other controls. You've got to set something on the Form_Load event but I can't remember what it was and I'm on my phone. It was: Me.Something = True.
EDIT - It was Me.KeyPreview = True
Set the "KeyPreview" property of your form to "true". All keypress messages will be sent to the form before they are sent to a specific control.
Why aren't you just using GetASyncKeyState, i read your post, and saw you didn't want to, but why? afaik its the easiest way to do et.
Originally Posted by Leaf
Why aren't you just using GetASyncKeyState, i read your post, and saw you didn't want to, but why? afaik its the easiest way to do et.
because GAKS is an API call and uses unnecessary resources when you can just handle key events from your form.