Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Checking for keypress [Visual Basic]

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
noko_112
Grandmaster Cheater
Reputation: 0

Joined: 09 Jun 2009
Posts: 585

PostPosted: Fri Feb 05, 2010 8:57 am    Post subject: Checking for keypress [Visual Basic] Reply with quote

Is there anyway i chould key for a general keypress. I want to make a program that counts the number of times i press a button, but i dont know how to do it outside the actual program. (which makes it impossible for me to use it in things like word/games etc...)

Anyone that can point me in the right direction?

NOTE:
This is not a keylogger, it is more of a keycounter
Back to top
View user's profile Send private message
Xenico
Advanced Cheater
Reputation: 0

Joined: 27 Dec 2009
Posts: 94

PostPosted: Fri Feb 05, 2010 11:49 am    Post subject: Reply with quote

You have to get in the WinAPI stuff. The thing you need is hooking.
_________________
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Fri Feb 05, 2010 5:43 pm    Post subject: Reply with quote

SetWindowsHookEx
Back to top
View user's profile Send private message
iPromise
Grandmaster Cheater
Reputation: -1

Joined: 27 Jun 2009
Posts: 529
Location: Canada

PostPosted: Fri Feb 05, 2010 7:39 pm    Post subject: Reply with quote

SetWindowsHookEx with WH_KEYBOARD hook.

SetWindowsHookEx - http://msdn.microsoft.com/en-us/library/ms644990(VS.85).aspx

WH_KEYBOARD - http://msdn.microsoft.com/en-us/library/ms644984(VS.85).aspx
Back to top
View user's profile Send private message MSN Messenger
Jesper
Grandmaster Cheater Supreme
Reputation: 9

Joined: 21 Feb 2007
Posts: 1156

PostPosted: Fri Feb 05, 2010 7:49 pm    Post subject: Reply with quote

Alternatively you can use this API: http://msdn.microsoft.com/en-us/library/ms646293%28VS.85%29.aspx
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites