Board index » delphi » Capture Keystrokes
drey
![]() Delphi Developer |
Tue, 04 Nov 2003 20:06:49 GMT
|
drey
![]() Delphi Developer |
Tue, 04 Nov 2003 20:06:49 GMT
Capture Keystrokes
Whats the most straight forward way to capture and record keystrokes even
when the program does not have focus? Running in system tray as icon for example. |
Udo Nesshoeve
![]() Delphi Developer |
Tue, 04 Nov 2003 20:33:34 GMT
Re:Capture KeystrokesHi drey, on Fri, 18 May 2001 08:06:49 -0400 you wrote: Quote> Whats the most straight forward way to capture and record keystrokes even for these keywords. Cheers, Global Polio Awareness Campaign 2001+ |
drey
![]() Delphi Developer |
Thu, 06 Nov 2003 00:58:04 GMT
Re:Capture KeystrokesThanks Udo for the link. I have searched through all the documentation and at least understand what I have to have to accomplish the hook, however, through all the searching I only found examples in Delphi and VB. I have also found out this appears to be an advanced function, so maybe I am biting off more than I can chew, but with a decent bcb c++ example I believe I could fiqure it out. It doesn't look like to much coding. I would need an example of how to call the hook dll in my exe and since I have never had to write my own dll, some kind of example of how the hook should be declared in BCB C++. I have v5 pro. Any help would be appreciated. drey |
Udo Nesshoeve
![]() Delphi Developer |
Fri, 07 Nov 2003 03:28:13 GMT
Re:Capture KeystrokesHi drey, on Sat, 19 May 2001 12:58:04 -0400 you wrote: Quote> Thanks Udo for the link. I have searched through all the documentation and although I can give you some general tips there's no way for me at the moment to give you a working example of c++ code. Sorry. Cheers, Global Polio Awareness Campaign 2001+ |
drey
![]() Delphi Developer |
Fri, 07 Nov 2003 07:38:13 GMT
Re:Capture Keystrokeslol. I know what ya mean. I even have Delphi v4 but have only fired it up EXE portion. I put this in an OnClick event for now because I really have no void __fastcall TConsoleForm::Button1Click(TObject *Sender) FARPROC KeylogHookProc; KeylogDLL=LoadLibrary("Keylog.dll"); /this appears to open the dll to the Quote} defined in the EXE, but from the code above, I thought it would go out to the dll and get the Proc there. Heres the Dll. LRESULT CALLBACK KeyboardHookProc( int code,WPARAM key, LPARAM lParam) return CallNextHookEx(NULL, code, key, lParam); Quote} EXE capable of checking this during compile? Do I have to add or include something to the EXE to get it to find it? I'll keep praying for help. Udo, maybe from this you can do some C++/Delphi converting? lol. drey. |
Udo Nesshoeve
![]() Delphi Developer |
Fri, 07 Nov 2003 16:12:35 GMT
Re:Capture KeystrokesHi drey, on Sun, 20 May 2001 19:38:13 -0400 you wrote: Quote> lol. I know what ya mean. I even have Delphi v4 but have only fired it up found your subject and replied without noticing I was posting to a C++ group ;) I normally start reading tons of messages of a group before I post there. Anyway. Glad I could help, at least guide you into the right direction. BTW: C++ might be a little more powerful (regarding the ability to write Cheers, Global Polio Awareness Campaign 2001+ |