The Ultimate Crafting Macro
(This macro is verified as of 11 Jun 08)

[ Part I: Using the Macro | Part II: What the Macro Does | Part III: How to Modify the Macro ]
If you are comfortable with the macro system, check out the Advanced Crafting Macro Guide.


Part I
Using the Macro

Step 1: Preparation

1) Place 5 crafting tools in the first 5 slots of your toolbar.

2) Open your Game Options.

3) Under the "Controls" section, turn ON the one that says "Actions can be fired from toolbar."


4) If you have not done so already, you will need to enable Cut/Copy/Paste within the game.
There is an excellent guide on how to do it here:
http://forums.station.sony.com/swg/posts/list.m?start=0&topic_id=286050#3220810
(Updated link for new SWG forums)


Step 2: The Macro

1) Open the Command Browser

2) Select the "Macro" tab and create a "New Macro."

3) Enter the information about your new macro.
A) The name of your macro. For this example call it: MegaCraft
B) Pick an icon. Any icon is fine.
C) Paste the macro listed in the next step into this area.


4) Paste this macro into the box ("C") and click OK when you're done:

/ui action toolbarSlot00;
/pause 1;
/ui action defaultButton;
/pause 5;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createPrototype Practice noitem;
/createPrototype Practice noitem;
/pause 1;
/ui action toolbarSlot01;
/pause 1;
/ui action defaultButton;
/pause 5;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createPrototype Practice noitem;
/createPrototype Practice noitem;
/pause 1;
/ui action toolbarSlot02;
/pause 1;
/ui action defaultButton;
/pause 5;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createPrototype Practice noitem;
/createPrototype Practice noitem;
/pause 1;
/ui action toolbarSlot03;
/pause 1;
/ui action defaultButton;
/pause 5;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createPrototype Practice noitem;
/createPrototype Practice noitem;
/pause 1;
/ui action toolbarSlot04;
/pause 1;
/ui action defaultButton;
/pause 5;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/createPrototype Practice noitem;
/createPrototype Practice noitem;
/pause 1;
/macro MegaCraft;


Step 3: Prepare the crafting session.

BUG ALERT:
This macro exceeds the character limit for macros.
See "Part III: How to Modify the Macro" for more information.

The bug that prevented you from launching a macro before typing in the chat box was hotfixed on 12 Sep 06.
It is no longer necessary to type something before starting the macro.


Before you begin, it is necessary to "prime" your crafting tool so the macro will function.
If you don't do this, the macro will not work.


1) Launch a crafting tool (it doesn't matter which) by clicking it's icon in the toolbar.


2) Select the item you want to grind with from the list and then click "Next." In this example, we will be doing Chemical Survey Devices.

3) At this point it is not necessary to actually create an item. Do not add resources, simply click the "X" in the upper right to close the window.


Step 4: Launch the macro.

1) Go back to your command browser, find the icon for the macro you created and drag it into your toolbar.
I placed it in the far right slot.


2) Close any windows you may have open and activate the macro.

3) The macro will activate the first crafting tool and select the Chemical Survey Device.

4) The macro will advance to the resource input screen. YOU MUST MANUALLY PUT THE RESOURCES IN.

5) The macro will close the crafting window with a system message that says: "The crafting session has ended!"

6) You will see the timer on the first crafting tool start counting down and the macro will launch the next crafting tool.

7) The process will repeat forever.

8) Type /dump to stop the macro.


Part II
What the macro does

/ui action toolbarSlot00; Launches the first crafting tool. Crafting Tool #1
/pause 1; Wait 1 second to allow for lag.
/ui action defaultButton; Select the grinding item.
/pause 5; Wait 5 seconds for resource input.
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
Advance through all the other crafting screens.
(You will not see it do this)
/createPrototype Practice noitem;
/createPrototype Practice noitem;
Create an item in practice mode and close the crafting window.
/pause 1; Wait 1 second before launching the next tool.

/ui action toolbarSlot01; Launches the second crafting tool. Crafting Tool #2
/pause 1; Wait 1 second to allow for lag.
/ui action defaultButton; Select the grinding item.
/pause 5; Wait 5 seconds for resource input.
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
Advance through all the other crafting screens.
/createPrototype Practice noitem;
/createPrototype Practice noitem;
Create an item in practice mode and close the crafting window.
/pause 1; Wait 1 second before launching the next tool.

/ui action toolbarSlot02; Launches the third crafting tool. Crafting Tool #3
/pause 1; Wait 1 second to allow for lag.
/ui action defaultButton; Select the grinding item.
/pause 5; Wait 5 seconds for resource input.
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
Advance through all the other crafting screens.
/createPrototype Practice noitem;
/createPrototype Practice noitem;
Create an item in practice mode and close the crafting window.
/pause 1; Wait 1 second before launching the next tool.

/ui action toolbarSlot03; Launches the fourth crafting tool. Crafting Tool #4
/pause 1; Wait 1 second to allow for lag.
/ui action defaultButton; Select the grinding item.
/pause 5; Wait 5 seconds for resource input.
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
Advance through all the other crafting screens.
/createPrototype Practice noitem;
/createPrototype Practice noitem;
Create an item in practice mode and close the crafting window.
/pause 1; Wait 1 second before launching the next tool.

/ui action toolbarSlot04; Launches the fifth crafting tool. Crafting Tool #5
/pause 1; Wait 1 second to allow for lag.
/ui action defaultButton; Select the grinding item.
/pause 5; Wait 5 seconds for resource input.
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
/nextCraftingStage;
Advance through all the other crafting screens.
/createPrototype Practice noitem;
/createPrototype Practice noitem;
Create an item in practice mode and close the crafting window.
/pause 1; Wait 1 second before launching the next tool.

/macro MegaCraft; Start the macro over from the beginning.
The name you use here must be the exact name you gave to the macro.
Loop


Part III
How to modify the macro

Want to grind a different item?
You will need to prime the crafting tool again.
Go back to Step 3 and select a different item.
Then launch the macro again.

Lag causing your crafting tools to mis-fire?
Increase the delay time on the /pause 1; lines.
Each number represents a second.
Try increasing to 1.5 or 2.
The longer the pause, the slower you will grind, but you have to go slow enough for the client and the server to sync up.
It is for this reason that you shouldn't grind in laggy areas.

Need more time to input resources?
Increase the delay time on the /pause 5; lines.
The larger this number, the longer the macro will wait for you to put in the resources.

Want to actually create an item instead of merely practice?
This is actually useful if you're going to make a lot of something to sell but don't want to bother with a factory run.
Remove the words "Practice noitem" from both lines so that they read "/createPrototype;"
Note that you will not get to experiment on or give the item a custom name.

Want to use more than 5 crafting tools?
Just copy paste the part of the macro that represents a full run of a single crafting tool and change the Slot #.
So the next tool would be toolbarSlot05.
The /macro line must be the last line of the macro so paste it in above it.
Note that there is a character limit for macros and anything longer may cause issues.

Why are the last few lines of the macro missing when I log on?
The macro exceeds the character limit allowed by the game.
When you log in, the game will simply remove these excess characters and cause your macro to stop functioning.
There are two workarounds but neither is optimal:
1) Copy/Paste the macro back into the game every time you want to use it. It will work fine until you relog.
2) Remove the "Crafting Tool #5" section. This will get you under the character limit but you may not have enough crafting tools running to allow you to grind non-stop.

Want a more advanced method of macro crafting that isn't subject to the length bug?
Check out the Advanced Crafting Macro.
It's available from the Features Menu.