How to Learn to Macro

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

demiourgos
orc pawn
orc pawn
Posts: 11
Joined: Tue May 18, 2004 12:48 pm

How to Learn to Macro

Post by demiourgos » Fri May 21, 2004 1:26 am

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.

Programmer
a hill giant
a hill giant
Posts: 195
Joined: Mon Dec 01, 2003 2:41 am

Post by Programmer » Fri May 21, 2004 3:22 am

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.

User avatar
Fuergrissa
a grimling bloodguard
a grimling bloodguard
Posts: 607
Joined: Mon Dec 08, 2003 3:46 pm
Location: UK

Post by Fuergrissa » Fri May 21, 2004 4:18 am

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

Code: Select all

/echo Hello
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.
[quote]"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."[/quote]

demiourgos
orc pawn
orc pawn
Posts: 11
Joined: Tue May 18, 2004 12:48 pm

Post by demiourgos » Fri May 21, 2004 1:27 pm

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.

chawk
orc pawn
orc pawn
Posts: 14
Joined: Sat May 08, 2004 4:08 am

Post by chawk » Fri May 21, 2004 4:01 pm

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)