1 Attachment(s)
Event not triggering from ActiveX EXE while mouse hook is set
Hi,
I created an ActiveX EXE which includes xTimer so I can run some things asynchronously... What I want to do with it is to set a mouse hook in there and then raise an event when it detects a single or double click anywhere on the screen...
I have tested the code in an ordinary project and it works perfectly, however in this ActiveX EXE the events, which I raise when mouse click is detected, do not fire... I tried debugging it and the "RaiseEvent MyEvent" statement DOES execute, however I don't receive anything in calling program...
Even more strange is that events work before mouse is hooked and after it's unhooked.... It looks like it has a problem executing it when it's in LowLevelMouseProc procedure...
Also, I'm using mouse hooking, because I want to have complete control of the mouse, which means that other applications should not receive click events during that time
I'm attaching the sample project...
Any ideas?
Thanks,
Darko