Re: WinAPI macro recorder
- From: "Thorsten Albers" <albersRE@xxxxxxxxxxxxxxxxxxx>
- Date: Mon, 15 Oct 2007 08:21:49 -0700
ArmsteR <davidarmstrong@xxxxxxxxxxxxxxx> schrieb im Beitrag
<1192452475.974246.64260@xxxxxxxxxxxxxxxxxxxxxxxxxxx>...
I was wondering if there is some WinAPI macro recorder out there?
Preferably freeware :P
No, of course not. How should that work? The Windows API is a collection of
libraries providing programmable functions to applications - it isn't a
language, and especially it isn't a macro language. Most of these functions
have parameters and a return code; the paramter values depend on the
individual application. And there presumably doesn't exist any application
consisting of (direct) Windows API calls only; on the contrary some
applications doesn't use direct Windows API calls at all. A Windows
application executes its own code as well as that of supplemental libraries
in response to events (window messages etc.). Sometimes it also calls
functions of the Windows API.
What one can do is monitoring the calls of an application to functions of
the Windows API for which there are some tools to be found in the net. But
it doesen make sense to record these calls and play them later again.
I have no knowledge of API and would like something like that to help
me understand more wahts going on, and give me a quick method to get a
VBA macro i need produced :)
Get yourself a good documentation on the Windows API. A first start is the
MS developer's network (MSDN). A good documentation is Dan Appleman's
"Visual Basic 5.0 Programmer's Guide to the Win32 API" (which unfortunately
is out of print). Usually (one of) the help file(s) of the application
providing the VBA programming interface offers you some basic informatin on
programming with VBA including the calls to Windows API functions.
After you have learned something about the Windows API in general find the
function you want to call and read the documentation on this function (e.g.
in the MSDN). If you even then don't know how to do it try to get a sample
code. Often there is no difference between calling the Windows API function
from VB and VBA, so a VB sample will do.
--
----------------------------------------------------------------------
THORSTEN ALBERS Universität Freiburg
albers@
uni-freiburg.de
----------------------------------------------------------------------
.
- References:
- WinAPI macro recorder
- From: ArmsteR
- WinAPI macro recorder
- Prev by Date: WinAPI macro recorder
- Next by Date: Re: WinAPI macro recorder
- Previous by thread: WinAPI macro recorder
- Next by thread: Re: WinAPI macro recorder
- Index(es):
Relevant Pages
|