(entschuldigen, aber meine deutshe ist nicht sehr gut).
Hi fols,
I am developing an application that captures Keyboard keys pressed and mouse actions and display them on the screen ... For this, i have two hooks (WM_KEYBOARD and WM_MOUSE), each one in its own DLL.
When i click on a button, it activates both HOOKS in this way:
Delphi-Quelltext
1: 2: 3: 4: 5:
| procedure TForm1.btStartClick(Sender: TObject); begin MouseHook.Start_MouseHook; KeyHook.Start_KeyHook; end; |
The problem is that the BOTH hooks don´t work simultaneously... I mean, as the MouseHook is the 1st to begin, the KeyHook doesn´t start (in other words, just the MouseHook works, the other remains inactive).
I need both works simultaneously so, if i use the mouse, the MouseHook works; if i press a key, the KeyHook works (both displaying their results at the same time on the screen).
What´s wrong here?
Any help will be appreciated!
JOEL SILVA
Moderiert von
AXMD: Delphi-Tags hinzugefügt