Autor Beitrag
DiamondDog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Di 20.07.10 01:27 
Hallo Leute,
ich wollte mal Fragen wie ich es hinbekomme das ich abfragen kann ob eine beliebige Taste gedrückt wurde, auch außerhalb der Form?
Danke schonmal für eure Hilfe.

Mfg Dog
trm
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 491
Erhaltene Danke: 19

Windows 7x64
Delphi 7
BeitragVerfasst: Di 20.07.10 01:43 
Hallo, ohne eine Art Keylogger implementieren zu müssen (Hook), könntest Du es mit RegisterHotkey versuchen. Damit kannst Du bestimmte Tasten kontrollieren und nicht alle. Vielleicht reicht Dir das schon.
Beachte aber, dass Du damit anderen Programmen / Windows die Hotkey-Funktion evt. wegnehmen kannst.
Anders herum können andere, später gestartete Anwendungen Deinem Programm die Hotkeys "stehlen".

Gruß
~Mathias

_________________
In Erfurt gibt es eine Pension, in der es gemütlich ist, Google einfach nach Pension Fiege ;)
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10183
Erhaltene Danke: 1256

W10ent
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 20.07.10 01:45 
Moin!

Es gibt auch noch Suche in: Delphi-Forum, Delphi-Library GETASYNCKEYSTATE, aber bevor man hier was empfehlen kann wäre es wichtig zu wissen, was du machen willst. :nixweiss: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.