Click to See Complete Forum and Search --> : capturing mouse evets


Tarendor
August 13th, 2001, 02:51 PM
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.

Tarendor
August 13th, 2001, 03:01 PM
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.

Clearcode
August 14th, 2001, 02:47 AM
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.