Delphi-PRAXiS
Seite 2 von 2     12   

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Keyboard Hook (https://www.delphipraxis.net/166888-keyboard-hook.html)

jaenicke 4. Mär 2012 19:42

AW: Keyboard Hook
 
Zitat:

Zitat von Sir Rufo (Beitrag 1154489)
We are talking about a global hook for the Keyboard ... not about some hooks ;)

And that is exactly the kind of hook that does not need an external DLL, as well as global mouse hooks. But only if you use the low level hooks (WH_KEYBOARD_LL / WH_MOUSE_LL).

The kind of hook which is used here has to be inside an external DLL.

danten 4. Mär 2012 20:34

AW: Keyboard Hook
 
Liste der Anhänge anzeigen (Anzahl: 1)
When I use WH_JOURNALRECORD on my computer works without hooking DLL.

danten 4. Mär 2012 22:47

AW: Keyboard Hook
 
I really can not find anyone who would put me here to supplement my code to make it work?
Please Please Please

derseitzer 31. Jan 2017 10:52

AW: Keyboard Hook
 
Schon ein extrem alter Thread...
Aber hat jemand eine Lösung für mein Problem?
Wenn ich den Code anwende kommt bei mir nur:

[dcc32 Fehler] Unit1.pas(198): E2010 Inkompatible Typen: 'NativeInt' und 'Integer'

Zeile:
MainHook := SetWindowsHookEx(WH_JOURNALRECORD, KeyboardHook, hInstance, 0);

TiGü 31. Jan 2017 11:13

AW: Keyboard Hook
 
Welcher Datentyp hat KeyboardHook und welcher Datentyp wird als zweiter Parameter von SetWindowsHookEx erwartet?

himitsu 31. Jan 2017 14:56

AW: Keyboard Hook
 
64 Bit?

Bei 32 Bit sind diese Typen eigentlich identisch. (NativeInt ist da ein Alias)

t.roller 31. Jan 2017 18:15

AW: Keyboard Hook
 
Liste der Anhänge anzeigen (Anzahl: 1)
MainHook :=
SetWindowsHookEx(WH_KEYBOARD_LL, @KeyboardHook,0,0);

WH_JOURNALRECORD geht bei mir nicht (WIN8.1, XE7)

himitsu 1. Feb 2017 09:55

AW: Keyboard Hook
 
Du hast eine "falsche" Deklaration am Wickel.

Deine Parameter für die Windows-API sind korrekt, siehe https://msdn.microsoft.com/en-us/lib.../ms644990.aspx.
Du hast aber nicht die Windows-API erwischt, sondern "irgendwas" total Anderes aus einer anderen Unit, also aus KeyboardScreen.pas und nicht Windows.pas.


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:52 Uhr.
Seite 2 von 2     12   

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz