PDA

View Full Version : checking if a key is pressed?



K2Hacker
01-21-2008, 01:36 PM
I've the spent the last 30 mins trying to figure out how to check if a key is pressed.

How do you do this? I need it to be able to check for the key even if the process is running in the background.

Help would be very appericated!

Hammer
01-21-2008, 01:42 PM
You mean for something like a keylogger?

K2Hacker
01-21-2008, 01:43 PM
No, like hotkeys...

wicherh
01-27-2008, 10:01 AM
put this in ur module

Public Declare Function GetKeyPress Lib "user32" Alias "GetAsyncKeyState" (ByVal key As Long) As Integer

Now put this in:
if getkeypress(look at the sticky) then
blablabla
end if