🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #315

Re: need help with SetWindowsHook

#315
From: Jeff Anderson
Date: Sat, 11 Apr 1992 01:01
33 lines
2359 bytes
In article <1992Apr05.010123.28661@microsoft.com> deanm@microsoft.com (Dean Mccrory) writes:
>It depends on which hook you are installing (WH_xxxxx).  The specifics
>of the parameters/retval are discussed in the docs for each of the
>hooks in the SDK (under SetWindowsHook topic).
>
>In many of the hooks, lParam points to a structure that has the 
>info you want.

The one thing I have yet to find documented is the ParamH and ParamL
words in the event structure for Journal Record.  I have been trying to
write a keyboard macro recorder for our app so that the user can record
keystrokes, assign them to a key and play them back in the current or
future sessions.  I was able to get it to work in the current session
with Journal Record.  What I need to be able to do is save them to disk
and play them back in future sessions.

The Recorder does what we want but it hoses up if our app is not in the
foreground.  For example, I had our app up and Word for Windows 2.0  I
presses a function key in Word and the recorder came up with a dialog box
telling me it could not play it back to the correct window.  Even though
we bring up and tear down the recorder when our app comes up and goes
away, unsohpisticated users often close it while they are running our app
because the don't know what it is or why it is up (as an icon).

Sorry if I missed relevent posts, I was out all week and articles over a
few days were expired.

-------------------------------------------------------------------------------
Jeff Anderson       jeff@sporty.col.oh.us 	     jaa@rsch.oclc.org
H: 614-252-7563     B7 f+ t w dc g+ k+ s- e r        jeff@sporty.UUCP 
W: 614-764-6222     "You were traveling at over 80,000 k.p.h. only 10 
meters from Cadet Albert, and you didn't even know his orientation?!!" -ST:TNG
-------------------------------------------------------------------------------
Technical Details
Message-ID: <1992Apr11.010122.13106@sporty.col.oh.us>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!n8emr!uncle!sporty!jeff
References: <1992Mar24.225659.27158@seq.uncwil.edu> <1992Apr05.010123.28661@microsoft.com>

Show Full Headers
Complete Article Headers
Newsgroups: comp.windows.ms.programmer
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!n8emr!uncle!sporty!jeff
From: jeff@sporty.col.oh.us (Jeff Anderson)
Subject: Re: need help with SetWindowsHook
Organization: J.A. Anderson & Company, Columbus, OH US
Date: Sat, 11 Apr 1992 01:01:22 GMT
Message-ID: <1992Apr11.010122.13106@sporty.col.oh.us>
References: <1992Mar24.225659.27158@seq.uncwil.edu> <1992Apr05.010123.28661@microsoft.com>
Lines: 33