Re: WinAPI macro recorder

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
----------------------------------------------------------------------

.



Relevant Pages

  • Re: Why do you like C more than other programming languages?
    ... because C was my first programming language? ... As for high-end PC software, I would probably say no. Try programming even a simple windows API ap and you will see why, 1000 lines of code just to get one window to appear. ... Other libraries like Borland's or the hundreds of libraries that ...
    (comp.lang.c)
  • Re: Why do you like C more than other programming languages?
    ... Programming in C with the ... At least until Microsoft gets Windows Presentation Foundation working. ... If they decide to deprecate the whole raw windows API then programmers will just ignore that version of windows and normal users will try to avoid it because none of the programs they like work on it. ...
    (comp.lang.c)
  • Re: of the Clipboard
    ... didn't know if you were familiar with Windows API. ... They are not "standard" in VBA, so you have to tell VBA where ... libraries) - and in this case it is User32.dll, ...
    (microsoft.public.excel.programming)
  • Re: Excercices
    ... Maybe you have been out of programming for a to long time. ... more a contest who is able to write the most wired macros, ... Windows API call contest). ... the heart shaped tunnel Annie posted ...
    (alt.lang.asm)
  • Re: VB6 AND VB.NET
    ... perhaps some "pseudo-object-oriented" but really procedural programming might be easier to deal with in the beginning. ... insulating the programmer from a lot of crap involving Windows API calls. ... Microsoft already caters to the education market anyhow, with ridiculously huge discounts for students, employees and faculty members. ...
    (microsoft.public.vsnet.general)