C Board  

Go Back   C Board > Platform Specific Boards > Windows Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 08-04-2005, 06:37 AM   #16
Registered User
 
Join Date: Aug 2003
Posts: 288
to clear the char array, you could do either

logged_keys[0] = '\0';

or

strcpy(logged_keys, "");
X PaYnE X is offline   Reply With Quote
Old 08-04-2005, 09:13 AM   #17
C++ Enthusiast
 
jmd15's Avatar
 
Join Date: Mar 2005
Location: MI
Posts: 532
Like Tonto said, why not try ZeroMemory? Oh and cgod what compiler were you using to make that "HotKey" keylogger?
__________________
Trinity: "Neo... nobody has ever done this before."
Neo: "That's why it's going to work."
c9915ec6c1f3b876ddf38514adbb94f0

Last edited by jmd15; 08-04-2005 at 09:18 AM.
jmd15 is offline   Reply With Quote
Old 08-07-2005, 04:28 AM   #18
Banned
 
Join Date: Oct 2004
Posts: 253
MSVC 7.0, it should work on any compiler tho.
cgod is offline   Reply With Quote
Old 08-07-2005, 09:15 AM   #19
the magic penguim
 
Join Date: Jul 2005
Posts: 91
You know that RegisterHotKey only works for the program that's running it don't you? It dosen't set a system wide hook.
lala123 is offline   Reply With Quote
Old 08-07-2005, 03:11 PM   #20
C++ Enthusiast
 
jmd15's Avatar
 
Join Date: Mar 2005
Location: MI
Posts: 532
I don't like the RegisterHotKeys way of doing it, I'm gonna write a DLL and it WILL work, even if it takes me a little while. Oh I am using Dev-C++ and it seems to not like some of your code.
__________________
Trinity: "Neo... nobody has ever done this before."
Neo: "That's why it's going to work."
c9915ec6c1f3b876ddf38514adbb94f0
jmd15 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Simulate Keys with a Keyboard Hook guitarist809 Windows Programming 3 11-14-2008 08:14 PM
C++ Global Keyboard Hook darknite135 C++ Programming 4 02-01-2008 07:36 PM
Keyboard hook joecaveman Windows Programming 2 09-03-2005 08:07 AM
How to keep static data in a keyboard hook? junbin Windows Programming 1 01-19-2003 03:24 AM


All times are GMT -6. The time now is 05:42 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22