CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2001
    Posts
    17

    capturing mouse evets

    Is there any way to make it so that when i hit a button in my form that it can recod the mouse evets that i do in windows so that i can use them at a later time?

    Kinda like ez macoes does.

    Any imput on this would be geatly appreciated.



  2. #2
    Join Date
    Aug 2001
    Posts
    17

    Re: capturing mouse evets

    The "n" and "r" on my keyboard sticks so it should read like this:

    Is there any way to make it so that when i hit a button in my form that it can record the mouse events that i do in windows so that i can use them at a later time?

    Kinda like ez macoes does.

    Any imput on this would be geatly appreciated.








  3. #3
    Join Date
    Dec 1999
    Location
    Dublin, Ireland
    Posts
    1,173

    Re: capturing mouse evets

    Ez Macros uses a Windows Hook ( specifically the WH_JOURNALRECORD hook ) to record the mouse and keyboard events and then it uses a WH_JOURNALPLAYBACK hook to play back the messages when the macro is run.

    You can find documentation on both of these hooks at http://msdn.microsoft.com but I have not seen a Visual Basic example as yet.

    HTH,
    Duncan

    -------------------------------------------------
    Ex. Datis: Duncan Jones
    Merrion Computing Ltd
    http://www.merrioncomputing.com
    Check out the new downloads - ImageMap.ocx is the VB control that emulates an HTML image map, EventVB.OCX for adding new events to your VB form and adding System Tray support simply, MCL Hotkey for implemenmting system-wide hotkeys in your application...all with source code included.
    '--8<-----------------------------------------
    NEW -The printer usage monitoring application
    '--8<------------------------------------------

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

Featured