AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Keyboard Hook

Ein Thema von danten · begonnen am 4. Mär 2012 · letzter Beitrag vom 1. Feb 2017
Antwort Antwort
Seite 2 von 2     12   
Benutzerbild von jaenicke
jaenicke

Registriert seit: 10. Jun 2003
Ort: Berlin
9.345 Beiträge
 
Delphi 11 Alexandria
 
#11

AW: Keyboard Hook

  Alt 4. Mär 2012, 19:42
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.
Sebastian Jänicke
Alle eigenen Projekte sind eingestellt, ebenso meine Homepage, Downloadlinks usw. im Forum bleiben aktiv!
  Mit Zitat antworten Zitat
danten

Registriert seit: 19. Feb 2012
Ort: Czech Republic, Prag
126 Beiträge
 
Delphi 10.1 Berlin Architect
 
#12

AW: Keyboard Hook

  Alt 4. Mär 2012, 20:34
When I use WH_JOURNALRECORD on my computer works without hooking DLL.
Miniaturansicht angehängter Grafiken
kbh.png  
Daniel
  Mit Zitat antworten Zitat
danten

Registriert seit: 19. Feb 2012
Ort: Czech Republic, Prag
126 Beiträge
 
Delphi 10.1 Berlin Architect
 
#13

AW: Keyboard Hook

  Alt 4. Mär 2012, 22:47
I really can not find anyone who would put me here to supplement my code to make it work?
Please Please Please
Daniel
  Mit Zitat antworten Zitat
derseitzer

Registriert seit: 12. Okt 2016
235 Beiträge
 
Delphi 10 Seattle Professional
 
#14

AW: Keyboard Hook

  Alt 31. Jan 2017, 10:52
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);
  Mit Zitat antworten Zitat
TiGü

Registriert seit: 6. Apr 2011
Ort: Berlin
3.060 Beiträge
 
Delphi 10.4 Sydney
 
#15

AW: Keyboard Hook

  Alt 31. Jan 2017, 11:13
Welcher Datentyp hat KeyboardHook und welcher Datentyp wird als zweiter Parameter von SetWindowsHookEx erwartet?
  Mit Zitat antworten Zitat
Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.136 Beiträge
 
Delphi 12 Athens
 
#16

AW: Keyboard Hook

  Alt 31. Jan 2017, 14:56
64 Bit?

Bei 32 Bit sind diese Typen eigentlich identisch. (NativeInt ist da ein Alias)
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat
t.roller
(Gast)

n/a Beiträge
 
#17

AW: Keyboard Hook

  Alt 31. Jan 2017, 18:15
MainHook :=
SetWindowsHookEx(WH_KEYBOARD_LL, @KeyboardHook,0,0);

WH_JOURNALRECORD geht bei mir nicht (WIN8.1, XE7)
Miniaturansicht angehängter Grafiken
keyboardsreen-1.jpg  
  Mit Zitat antworten Zitat
Benutzerbild von himitsu
himitsu

Registriert seit: 11. Okt 2003
Ort: Elbflorenz
43.136 Beiträge
 
Delphi 12 Athens
 
#18

AW: Keyboard Hook

  Alt 1. Feb 2017, 09:55
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.
Garbage Collector ... Delphianer erzeugen keinen Müll, also brauchen sie auch keinen Müllsucher.
my Delphi wish list : BugReports/FeatureRequests
  Mit Zitat antworten Zitat
Antwort Antwort
Seite 2 von 2     12   


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 01:13 Uhr.
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