Page 1 of 1
How to Learn to Macro
Posted: Fri May 21, 2004 1:26 am
by demiourgos
Would just like a few suggestions on where to look, perhaps some books, on learning how to do this. I know it is C++, but what is Visual C++, what is the difference? Would you recommend any particular books to help me on the road to macrodom?
Any information you can give would be helpful! Thanks alot.
Posted: Fri May 21, 2004 3:22 am
by Programmer
MQ Macros are not C++, it is its own language. The best source to learning it is going to come from reading the many macros people have posted, and pay attention to the comments within them. Eventually, doing this, you'll be able to understand the flow of code and why it does what it does.
C++ is a programming language. Visual C++ is an integrated development environment that can turn C++ code and its associated libraries into something your computer can execute. MQ is written in C++, specifically designed to compile within the Visual C++ environment, and the script interface it exposes natively to end users is its own language.
Posted: Fri May 21, 2004 4:18 am
by Fuergrissa
I would take a simple macro and play with it, put a few echos in it at certain points get it to do something ingame, then take 2 macros and make one you will find out alot more than trying to read up on it.
a simple command like
inserted anywhere in the code will not affect the macro at all and may enable you to understand the flow alot more. I usually echos numbers in sequence to understand the flow.
Posted: Fri May 21, 2004 1:27 pm
by demiourgos
TY much, for your advice :) I was hoping for an easier answer because the manuals for macro authoring aren't much more than listing the commands and very little of defining their usage to an inexperienced fellow like myself. I'll just work with what I've got then.
Posted: Fri May 21, 2004 4:01 pm
by chawk
Browse the Macro Snippets section. I found it rather useful for seeing how to accomplish small tasks and having the code right there. Learn by example is often the best way. 8)