|
Now apparently I've been too fast to post this cause I myself cant get these directions to work with Autoit V 2.64 and other people seem to have the same problem. So I'll be trying to get some other version and try them out.
"Well, let me tellyou . I am using autoIT V2.64 and the goto does not goto. It ALWAYS comes up with unable to find requested label. Yes the colon is ont he label, yes the are both spelled EXACTLY the same, yes i have tried it with/without spaces, yes i even copied the example that is in hte help comman and it didn't work either. So, anyone have suggestions? "
But if any of you want to give it a go yerself use the link from the first post and I suggest trying another version of Autoit than 2.64.
I'll post again as soon as I find a version that works.
I'll just copy and paste the article for those that cant access the page:
Date Added: December 30, 2003
Views: 1227
Rating : 7.00 From 3 Voter(s)
Step 1: The setup
You need to set up your toolbar so it has two bars. In the top bar(slots 00-06) place your seven crafting tools (the number of tools will vary depending on how long the crafting time is for each item being crafted. This prevents over lapping). In the bottom bar (slots 12-18) you will be placing corresponding macro buttons.
The macros need to be like so. The following example would be for Slot 12.
/ui action toolbarSlot00;
/selectDraftSchematic ##;
This is for Slot 13:
/ui action toolbarSlot01;
/selectDraftSchematic ##;
For slots 14-18 just increase the Slot##
For the draft schematic is a bit tricky. You need to find the draft schematic for the item you want to craft but it varies per person. The easiest thing to do is open your tool and enter /selectDraftSchematic ##; ## equals any random number. After you find out what that random number selects exit out and open your draft schematic listing by pressing ctrl+d and selecting the draft schematic tab. Find the schematic that the random number selected and then find the schematic you want to use. Count the difference between the two and try again with the craft tool until you get the correct schematic. When you get the schematic number substitute that number in the macros on the second bar.
The last macro you have to make is going to be placed in the last slot on the top bar. The macro is as follows:
/nextCraftingStage;
/nextCraftingStage;
/createPrototype practice no item;
/createPrototype practice no item;
Now for inventory setup. The easiest thing you can do is only place the resources needed for the crafting in your inventory. This will prevent resources you dont want to use from getting in the way.
Ok once all this is setup you need to use the AutoIt reveal program. The easiest thing to do for visibility and ease of use between the game and the AutoIt program is to setup the game to run in windowed mode. You can do this by starting the game and before selecting the play button go to options and check run in windowed mode and run in borderless window mode. Next set your screen resolution to 1280x1024 if you can. Play the game and then setup the reveal window to be visible.
Step 2: Recording the locations.
The next step is to record the locations of the buttons. Let you cursor hover over each of the macro buttons on the bottom row of your toolbar and record the x,y location that is posted in the reveal window. You need to do this for the NextCraftingStage macro that is in the last slot in the top bar. Now you need to open up one of your toolbar crafting window with the schematic you will be using and record the x,y location for each of the resources. Now with alll of this recorded we can start with the AutoIt program code. The one I will be showing as an example will be the one I used to make an armor upgrade kit to progress through armorsmith. Therefore there were two locations for metal and one for chemical. Just for this example I included messages to explain what is going on using the // symbol. Do not include these with the final code.
Sleep, 3000 //This has the program pause for 3 seconds to allow me to select the game window.
Goto, myLoop //This sends the code to the function myLoop
myLoop: //This is the function myLoop
LeftClick, 586, 53 //This clicks on the first macro button to open the first tool. Insert the x,y locations here for the first macro tool button. Remember these numbers are for the macro I used.
Sleep, 2000 //Pause for 2 seconds
LeftClick, 87, 225 //This is the first click on the first resource
LeftClick, 87, 225 //This is the second click on the first resource (This and the first make a double click)
Sleep, 500 //Pause for a 1/2 second
LeftClick, 87, 225 //This is the first click on the first resource for the second box of metal needed for the armor upgrade kit.
LeftClick, 87, 225 //This is the second click on the first resource (This and the first make a double click)
Sleep, 500 //Pause for a 1/2 second
LeftClick, 131, 225 //This is the first click on the second resource.
LeftClick, 131, 225 //This is the second click on the second resource.
Sleep, 2000 //Pauses for 2 seconds
LeftClick, 1001, 20 //This clicks on the next crafting stage to finish the process and get the practice xp.
Sleep, 2000 //Pauses for 2 seconds
LeftClick, 619, 53 //Clicks on the next crafting tool macro and starts the process over again. Insert the x,y locations here for the second macro tool button.
Sleep, 2000
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 131, 225
LeftClick, 131, 225
Sleep, 2000
LeftClick, 1001, 20
Sleep, 2000
LeftClick, 651, 53
Sleep, 2000
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 131, 225
LeftClick, 131, 225
Sleep, 2000
LeftClick, 1001, 20
Sleep, 2000
LeftClick, 682, 53
Sleep, 2000
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 131, 225
LeftClick, 131, 225
Sleep, 2000
LeftClick, 1001, 20
Sleep, 2000
LeftClick, 747, 53
Sleep, 2000
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 131, 225
LeftClick, 131, 225
Sleep, 2000
LeftClick, 1001, 20
Sleep, 2000
LeftClick, 780, 53
Sleep, 2000
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 131, 225
LeftClick, 131, 225
Sleep, 2000
LeftClick, 1001, 20
Sleep, 2000
LeftClick, 812, 53
Sleep, 2000
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 87, 225
LeftClick, 87, 225
Sleep, 500
LeftClick, 131, 225
LeftClick, 131, 225
Sleep, 2000
LeftClick, 1001, 20
Sleep, 2000
Goto, myLoop //This starts the loop over again.
some more of the posts that might be helpful:
Answer to huracan's question: Make sure you have the "S" in Sleep capitalized, and "L" and "C" in LeftClick in caps as well. That should help! Answer to post's question: to stop autoit's loop, I usually alt+tab out of the game, and then you should see the icon for autoit running in your task bar by your clock. You can right click it and hit exit. Also, I just want to say that after reading the SWG forums that we have to be careful when using programs like AutoIt... There are still some questions regarding if it's against the EULA, and may be considered cheating. I'm not saying anything for or against it, just sayin to be careful!
The last macro is to cycle through the rest of the crafting session. With the Goto,myLoop... make sure you don't have the colon after the Goto statement... Only have the colon after the myLoop statement. Like this: Goto,myLoop and then myLoop: Make sure you have the "L" capitalized on both or not on both.
_________________ "Build a man a fire, and he'll be warm for a day. Set a man on fire, and he'll be warm for the rest of his life."
Terry Pratchett.
Drek
|