# How does someone go about writing a "macro"?

**URL:** <https://forum.kirupa.com/t/how-does-someone-go-about-writing-a-macro/279653>\
**Category:** programming\
**Created:** [January 17, 2009, 12:16am UTC](https://forum.kirupa.com/t/how-does-someone-go-about-writing-a-macro/279653 "2009-01-17T00:16:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![complete](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@complete](https://forum.kirupa.com/u/complete)\
**Post date:** [January 17, 2009, 12:16am UTC](https://forum.kirupa.com/t/how-does-someone-go-about-writing-a-macro/279653/1 "2009-01-17T00:16:34Z")

</div>

I know something about software engineering. I can write and run a program. But I would like to know  
something about MACROS. I don’t mean the ASSEMBLY language kind. I am talking about those programs that  
you can use perform repetitions actions on another program. I am talking about those programs that you  
can use to record a series of events on your computer, like, mouse movements and button clicks and then  
you can play them back. Some of them are elaborate enough to run only on a paricular app that you  
designate.  
I wrote one of sorts once. It was a program that launched an Excel sessions and then used the dynamic  
data exchage pipe of some kind to feed the excell session script commands. It worked.  
But something on the level of the operating system, I imagine, is a whole different story.  
How does someone go about writing a “macro”?
