Results 1 to 1 of 1

Thread: Event not triggering from ActiveX EXE while mouse hook is set

  1. #1

    Thread Starter
    Member
    Join Date
    Nov 2002
    Posts
    54

    Unhappy 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
    Attached Files Attached Files

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width