The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Difference between revisions of "User:Cegaiel/Macros"

From A Tale in the Desert
Jump to navigationJump to search
 
(386 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Instructions==
+
==* How to use these macros *==
 +
Note to use most of my Macros, you need the [http://www.autohotkey.com Autohotkey] program installed. Once you download and install the program, then you just click the "Read more..." links, then the "Get Code!" links to copy/paste the file into Notepad (or whatever).  Note if you are having difficulty highlighting the code, then click the Edit or View Source button at top and it will put the code inside of a form box (makes easy copy/paste). Just be sure to never save the <pre> tag at beginning or the </pre> tag at the end. Those are wiki tags. Then save your file as something.ahk (AutoHotKey) or something.mac (Actools).  All of my macros work at any resolution, except where noted otherwise (ie 1024x768 in the macro name, means some portion are hard coded for that resolution).  You will want to manually set your resolution in that case. Otherwise, no need to worry about your resolution... If my macro is in a .zip format, then you dont need to copy/paste the code, that will be included in the zip file as a .ahk file.  Just double click on it to launch.  Some of the macros are in zip format, which may include image files. Those need to stay in the same folder as the macro. Some zip files also contain a .exe file. This is a compiled version of the .ahk macro.  The .exe is a standalone version and can be ran, even if you do not have autohotkey installed on your system. You only need autohotkey installed if you are running .ahk files, not .exe.
  
Click the "Get Code!" links, below, for a copy/paste version of the code. Copy and Paste the script into Notepad and save as "something.ahk".  Yes do put the quotation marks in the file name field as this will prevent it from being named something.ahk.txt.
 
  
<b>Note: All of my scripts will work in any resolution, EXCEPT Carpentery Blade, which only works in 1024x768 modeThis particular script uses a method that can't be used with my tutorial below (Mouse clicks in any resolution), sorry!</b>
+
<b>Note:</b> If you are having difficulty copying and pasting the code on the web page, then click the Edit (or View Source) link at top and the code will be in a form text boxThen you can highlight the code (exclude the &lt;pre&gt; and &lt;/pre&gt; tag, this is a wiki tag), inside the form box, very easily.
 +
----
  
Make sure you have [http://www.autohotkey.com AutoHotKey] installed.  Then double click the .ahk file from My Computer and it will launch it and appear as an icon in system tray.  Then press the correct key combination (listed in comments for script) to execute the script.
 
  
At anytime, you can right click (Authohotkey icon in system tray) and choose Reload to start script over.
 
  
==Get Mouse Position and Color (Autohotkey)==
 
  
Just launch the script and it will show you this tooltip wherever you move the mouse.  All the information on tooltip updates in realtime as you move the mouse.
+
==Get Mouse Coordinates and Color (Autohotkey)==
 +
If you write AHK scripts, then this a great helper, where applicable.
  
[[Image:Cegcode1.jpg]]
+
*Gives accurate x,y coords on ATITD. It even realizes that the upper left corner of ATITD is 4,4, not 0,0 so very accurate, unlike some 3rd party programs that give coordinates
 +
*Displays a tooltip as you move mouse around.
 +
*Shows the hovered mouse position and color in the tooltip.
 +
*If needed, Press F2 at anytime to copy the color and mouse coordinates into Clipboard (then Paste, Ctrl+V into Notepad or something).
 +
*Also shows screen center position and the offset you are from there. Tutorial on next page to see how to code button positions to work at any resolution.
  
  
I wrote this in case I need to find the mouse position that I need to click on or if I need to find the color of where my mouse is hovering.
 
  
 +
[[User:Cegaiel/Macros/GetMousePosition | Read more...]]
  
I mainly added the color gathering portion in case I want to write a macro with the PixelSearch in autohotkey.
 
  
 +
 +
==Grass (Autohotkey)==
 +
*Enter amount of grass to collect.
 +
*Automatically walks around in a circle and collects grass without moving too far from where you started.
 +
*Great to get your [[Rhythmic_Strength|Rhythmic Strength]] skill up.
 +
*Added: 12/5/2009
 +
*Updated: 1/25/2012
 +
 +
 +
[[User:Cegaiel/Macros/Grass | Read more...]]
 +
 +
==Grow Barley 1280x1024 (Autohotkey)==
 +
*Plants 2 rows of 5 barley beds and waters/fertilizes each bed for 5 rounds, then picks them.  Yields: 2-10 barley per plant.
 +
*Option to choose Water Only or Water + Fertilizer. No weed killer used or supported.
 +
*Added 2/1/2010
 +
*Last Update: 10/16/2010
 +
 +
 +
 +
[[User:Cegaiel/Macros/Barley | Read more...]]
 +
 +
==Plane Boards (Unlimited carpentry benches) (Autohotkey)==
 +
*Supports unlimited benches, Supports any resolution
 +
*Point and middle click all your carpentry benches.
 +
*Cycles through and hovers each one, while sending the [P]lane Boards (P key) over each one very quickly.
 +
*Last Update: 1/19/2012 - Speeded it up and added delay variable so you can change if needed. Doesn't required Ctrl+Alt+W to start anymore, now automatically goes to GUI.
 +
 +
 +
[[User:Cegaiel/Macros/Plane | Read more...]]
 +
 +
==Fishing (Autohotkey)==
 +
*Point and middle click your fishing icon location
 +
*Asks for how many casts you want to do
 +
*Fish every 15s until completed.
 +
*Last Update: 1/18/2010
 +
 +
 +
 +
*<B><font color=red>T5/T6 NOTE:</font></B> While this does work on T5/T6, note that if you run out of lures, it will popup a box saying you need a lure. This macro does not detect that popupbox box (for now) and will continue trying to fish (unsuccessfully)... So make sure you are watching this close. Make sure you have an abundant supply of lures. I MAY edit this is the future to detect popups and abort script if one is detected...
 +
 +
 +
[[User:Cegaiel/Macros/Fishing | Read more...]]
 +
 +
==Popup Box Closer (Lazy man's falcon hunter helper) (Autohotkey)==
 +
*Point and middle click on a popup box with an OK button (careful, dont click on the black text in the word "OK", but on the yellowish part of the OK button.
 +
*Then just do your normal activities. Anytime a popup box occurs, it will automatically click the OK button to close it.
 +
*Originally created, to close popup boxes, when searching trees for Falcons (ie you're too tired popup box), but will close any popup box under any circumstance you might find.
 +
*Added: Feb 5, 2010
 +
 +
 +
[[User:Cegaiel/Macros/PopUpCloser | Read more...]]
 +
 +
 +
 +
==Skills Timer Clicker (Digging, Loom, Dirt, etc) (Autohotkey)==
 +
*It will walk you through the setup process via GUI menus
 +
*Monitors the black/red text in skills tab and only clicks when they are black (no longer tired)
 +
*Option to stop at a certain number of clicks or let run continuously
 +
*Option to eat grilled foods at the correct time, repeatedly
 +
*This script was created for dig sites and digging limestone/dirt, primarily. However, it would work with anything that uses a skills timer (ie the popup box that says "you are too tired to do something")
 +
*<B>Idea Uses:</b> Dig sites, Limestone, Dirt, Pumping Acqueduct, Carving, Barrel Grinder, Deep Well, Kitchen (ie Seperating [[Coconuts]]), Loom, Clinker Vat, Hookah more...
 +
 +
 +
Normally hackling rake would be included in the above <B>Idea Uses</b>, but 2 out of the 4 clicks are on different places/coordinates on the menu, so use below Rake script for that, which addresses that issue.
 +
 +
 +
*Added: 2/14/2010
 +
*Updated: 12/28/2011
  
  
Example code for color:
+
[[User:Cegaiel/Macros/SkillsTimer | Read more...]]
  
This will search for the color 0xE1D4AC at mouse position 540,341. If it finds that color, at that position (within 10 shades) then if will return errorlevel =0
+
==Hackling Rake (Autohotkey)==
 +
*It will walk you through the setup process via GUI menus
 +
*Monitors the black/red text in skills tab and only clicks when they are black (no longer tired)
 +
*Menu has recently changed (I think). The seperate/process flax options and the clean rake is no longer on the same line, in menu. This script addresses that issue (which is why the above Skill Timer script wont work on rakes)
 +
*This should work on Flax combs, too...
  
  
<pre>
+
*Added: 2/19/2010
PixelSearch, Px, Py, 540, 341, 540, 341, 0xE1D4AC, 10, Fast
+
*Updated 12/13/2011 (Now includes a routine to detect a popup box if using a Flax Comb and it breaks)
if ErrorLevel = 0
+
*Code Reposted on Jan 23, 2012 - There seemed to have been an extra line break in the script causing error on Line 34. It should be ok now.
{
 
MsgBox, Color detected
 
}else{
 
Msgbox, Color not found
 
}
 
</pre>
 
  
  
 +
[[User:Cegaiel/Macros/HacklingRake | Read more...]]
  
[[User:Cegaiel/Macros/GetMousePosition|Get Code!]]
+
==Real Seconds Stopwatch (Autohotkey)==
 +
*Not very useful, for the most part, but I created to help me time certain things. I could use something like [[ATITD Timer]], however, the time it takes to make sure that the window is in focus and hit either Start/Stop (or Enter Key), is a couple of seconds I lost. This was written for more pinpoint accuracy in seconds because all you do is hit Numpad + to start timer, and Numpad - to stop timer.
 +
*Times in 1/10 seconds for extra accuracy
 +
*Counts up from 0.0 seconds
 +
*Display the timer in a GUI window
  
==Grass (Autohotkey)==
+
*Added: 2/17/2010
Start script with Ctrl+Alt+G
+
 
 +
 
 +
 
 +
[[User:Cegaiel/Macros/StopWatch | Read more...]]
 +
 
 +
 
 +
 
 +
==Teppy and Real Seconds Timer (Great for Glazier Bench) (Autohotkey)==
 +
*Counts down from the minutes/seconds you enter
 +
*Asks if you are using Real or Teppy mode (adjusts time accordingly for Teppy)
 +
*Display the timer in a GUI window
 +
*<B>Example Use:</b> I use [[ATITD Timer]] to time 1m 40s (Real seconds), on Glazier Bench, so I know when to add 2cc. I use this macro to time my project timer (ie 120s (2m) for Sheet Glass).  Sure I could use two ATITD Timers, but I like the ability to just hit Numpad + Key to start timer, over and over (but always waits for you to hit Numpad + to begin timer).  Once you input a time, it will repeat the same time over and over. Real mode seems to be  more accurate than Teppy mode with Glazier bench, could be my lag, try for yourself and see.
  
Enter amount of grass to collect.  Walks around in a circle and collects grass without moving too far from where you started. Great to get your [[Rhythmic_Strength | Rhythmic Strength]] skill up.  The reason this is a zip file is because it contains a .png image of the grass icon that needs to be in the same directory as the script.
+
*Added: 2/17/2010
 +
*Last Update: 12/26/2010: Changed teppy multiplier from 1.07 to 1.1 for more accuracy.
  
Note recently IE downloads somtimes show the zip file as being corrupt.  If you try to download and it shows the zip file as corrupt, then you will need to download and install [http://mozilla.org  Firefox] to download correctly. Or, you can manually get the code and download the image, below.
 
  
 +
[[User:Cegaiel/Macros/Timer | Read more...]]
  
[http://www.atitd.org/wiki/tale4/images/2/2d/Grass.zip Download Zip File] (Script + Grass icon image)
+
==Flax Hammocks (Unlimited) (Autohotkey)==
 +
*Supports Grass, Papyrus and Rotten Flax only.
 +
*Asks what you are drying and qty. Walks you through setup in a GUI menu.
 +
*Loads all your hammocks, waits the correct time to dry, then unloads them all; Repeats. Will stop automatically once everything is dried.
  
-OR-
+
*Added 2/25/2010
 +
*Last Update: 12/17/2010
  
[[User:Cegaiel/Macros/Grass | Get Code!]] -AND- [[Media:Grass_icon.png | Get Grass Image]] (Right click the link and choose Save Target As...)
 
  
<b>Note:</b> The .png file needs to be in same directory as the script.
+
[[User:Cegaiel/Macros/FlaxHammock | Read more...]]
  
 +
==Improved Brick Racks (Unlimited) (Autohotkey)==
  
 +
*Supports unlimited brick racks, Supports any resolution
 +
*Asks if you are making Bricks, Firebricks or Clay bricks.
 +
*Point and middle click all your brickracks.
 +
*It will hover each of your brick racks and press the correct key [B], [F] or [C] of the type of bricks you are making.
 +
*After loading the brick racks, it will wait for the brick racks to complete and hover each rack and hit the [T]ake key to remove them and continue going.
 +
*Added: 1/18/2010
 +
*Last Update: 11/14/2010
  
==Wheat (Beta) (Autohotkey)==
 
<B>Instructions:</b>
 
  
Zoom in about half way (in F5 or F6) and lock your screen (Alt + L) to prevent your screen from moving around.
+
<b>Note:</b> This macro will <b>NOT</b> work on flimsy brick racks, only Improved brick racks!  Flimsy brick rack makes you walk to it, whereas Improved brickrack does not.
  
Start script with Ctrl+Alt+W
 
  
The script has GUI menus to walk you through the setup process, its very easy.
 
  
 +
[[User:Cegaiel/Macros/Bricks | Read more...]]
  
Basically here is how I do it.  I first minimize my chat (so I dont forget and mess up the first watering). I plant my wheat beds next (before starting the script). Once planted, I quickly move and stand in the center of all the beds. Then quickly start the script and middle click your water icon. Then middle click all your wheat beds, press OK, drag the status bar so it doesn't cover any over your wheat beds, then sit back and enjoy the show. Don't worry about what you need to click, there is a GUI dialogue that will walk you through.
+
==Pottery Wheels (Unlimited) (Autohotkey)==
  
------
+
*Supports unlimited wheels, Supports any resolution
 +
*Point and middle click all your pottery wheels.
 +
*It will hover each of your wheels and press [J]ugs key to make jugs.
 +
*It will wait for the jugs to complete and hover each wheel and hit the [T]ake key to remove items and continue going.
 +
*Added: 3/17/2010
 +
*Last Updat: 1/14/2012
  
Supports unlimited beds, but I suggest you start out small (4-6 beds) until you get used to the script.  It will hover each bed and send the H and W hotkey over each bed, back to back. Then it will wait 4 seconds and repeat the cycle.
 
  
 +
[[User:Cegaiel/Macros/PotteryWheel | Read more...]]
  
Note you <b>must</b> have the chat <b>minimized</b> or else you will see HW appear in chat bar (will not send) repeatedly.
+
==Papy Picker==
 +
*Looks for papy close to the avatar, and picks it via right click...
 +
* Added: Sep 16, 2010
 +
*Updated: Oct 10, 2010
  
  
This macro you do NOT pin up any menus, it simply remembers where all your beds are and points to them and sends the H and W key back to back. By sending the H and W key at same time, this will ensure that it will [H]arvest the wheat (if its time) or [W]ater
+
[[User:Cegaiel/Macros/PapyPicker | Read more...]]
  
  
Make sure you are standing along water, where you will be planting wheat.  Make sure you have at least one EMPTY jug (Esc, Skills, Empty Jugs), before you start the script, so that the water icon is showing on top left corner.
 
  
 +
==Make Carpentry Blades 1680x1050 (Autohotkey)==
 +
*Make 7.0k - 7.2k quality blades in 10 seconds
 +
*Many automated functions, via hotkeys, during script.
 +
*Extremely simple and repeats previously confirmed successful blades with a single click.
 +
*No need to find the same mouse coordinates over and over!
 +
*It will even automatically double F8, zoom in for you...
 +
*Asks if you're using Copper or Iron metal
 +
*Credit to [http://www.atitd.org/wiki/tale5/User:Oni/Macros Oni's T5 macro], this is based off his macro, but converted from Actools to Autohotkey; We appreciate your hard work :)
 +
*Last Update: Oct 9, 2010
 +
  
When you start the script it will tell you to point and middle click your water icon. Then it will tell you to middle click (click your mouse scroll wheel) all of your wheat beds. Enter as many as you like. Then once you click OK, it will go to work. Once you start the script, you have 7 seconds (before script begins) to move the status bar out of the way of your wheat beds.
+
[[User:Cegaiel/Macros/CarpBlade | Read more...]]
  
  
  
When you first activate the script, it will wait 3 mins and then click the water icon. Once it clicks the water icon, then it will wait another 3 mins to gather more water and so on. Most wheat beds need watering every 32-34 seconds.  So every 3 minutes is more than enough for the water icon to appear. I usually keep about 50 water jugs on me.
+
==Barrel Vise 1280x1024 (Autohotkey)==
 +
*Watches fuel and flame bars, wont add wood if the flame bar is past a certain point that would ruin the project.
 +
*Asks how many barrels you are making and runs nonstop until finished
 +
*Added: 4/15/2010
 +
*Last Update: 10/02/2010 (Adjusted coordinates for T5, tested/verified)
  
  
Bonus Tactic: if you have a Water Mine, plant your wheat next to it. If a gem pops, then hit Ctrl+P to pause the macro and get your gem. Then hit Ctrl+P again to resume where you left off at.  
+
[[User:Cegaiel/Macros/BarrelVise | Read more...]]
  
  
By the way, I took a shortcut and revamped an old mining script, so you will see alot of references to mining in the script, ^_^
 
  
 +
==Kettles (Run 1 to 21 Kettles) 1280x1024 (Autohotkey)==
  
 +
*All new for T5. I revamped my Tale 4 macro (which ran either 6 or 12 kettles) and made it so that you can select and run 1 (min) to 21 kettles (max)
  
[[User:Cegaiel/Macros/Wheat | Get Code!]]
+
*Pin up to 3 rows of 7 Kettles across top of screen (beginning top left corner).
 +
*Will click the Potash/Acid/Salt, Begin and Ignite button and load Max Wood
 +
*Will Refresh menu to show Stoke Max option and Stoke it all the way to the end.
 +
*Last cycle will Stoke Max (at 6 water and 2 wood). Uses 28 wood per kettle
 +
*Will unload (Take) the kettles automatically (and start new runs, if more than 1 run is chosen)
 +
*Added: 10/12/2010
  
==Plane Boards (Autohotkey)==
 
<B>Instructions:</b>
 
Zoom in about half way (in F5 or F6) and lock your screen (Alt + L) to prevent your screen from moving around. 
 
  
Start script with Ctrl+Alt+W
+
<b>Note:</b> I recommend using [http://www.atitd.org/wiki/tale5/Takhetu/Macros Takhetu's Kettle macro]. It pins up the windows for you and shuffles them around (just like Flax on Veggie Tales does). Where as mine you have to pin manually and it will fill your screen up.  I'm not really supporting my kettle macro anymore, as I use his macro instead now.
  
It will walk you through the setup process with GUI Menus.
 
  
------
+
[[User:Cegaiel/Macros/Potash | Read more...]]
  
If you use multiple carpentry benches to make boards, then this is for you!  It will now ask how many boards you want plane. Next a popup will tell you to middle click (click mouse wheel) all your carpentry benches.  When done click OK.  It will wait 7 seconds before the script begins. During this time, drag the status bar out of the way so it doesn't cover up any of the benches.  Then it will start hovering all your benches and clicking the P key (equivalent to [P]lane Board), faster than you can. The more benches you have the faster you will plane a full inventory of wood.
+
==Glaziers' Bench==
  
 +
*Configured for <b>1024x768 and 1280x1024</b>, instructions to configure for other resolutions, inside the code...
 +
*Timed Macro for CC and Make Glass, but also watches heat bar (will not make project outside of correct range) or add cc above 2200 degrees
 +
*Last Update: 1/14/2011
  
<b>Important:</b> You MUST minimize chat for this to work correctly.  If you dont, you will see the letter P appear in your chat bar over and over. It wont send it to chat if you forget, but you will notice it.
 
  
 +
<B>I recommend using the glass.lua thats included in Veggie Tales, instead of this macro now!</b>
  
[[User:Cegaiel/Macros/Plane | Get Code!]]
 
  
 +
[[User:Cegaiel/Macros/Glassbench | Read more...]]
  
 +
==Malting Trays (Unlimited) (Autohotkey)==
  
==Fishing (Autohotkey)==
+
*Supports unlimited trays, Supports any resolution
Start script with Ctrl+Alt+F
+
*Point and middle click all your malting trays.
 +
*It will hover each of your trays and press [M]alt key to Malt Barley.
 +
*It will wait for the trays to complete and hover each tray and hit the [T]ake key to remove items and continue going.
 +
*Last Update: 5/9/2010
  
It will walk you through with GUI menus, but heres what it will ask:
 
  
1) Enter how many times you want to cast (click the fishing icon)
+
[[User:Cegaiel/Macros/MaltingTray | Read more...]]
<BR>2) It will ask you to hover and middle click your fishing icon
 
<BR>3) It will now begin fishing and pause 15 seconds between casts
 
  
  
What makes this better than some other fishing scripts?
 
  
*The fishing icon can change positions depending on where you are standing (ie mud, sand, etc).  This script will ask you where the icon is...
 
  
*Once it reaches the the number of casts you entered, it will stop. Great if you fall asleep at your keyboard :P
+
==Grow Wheat (Unlimited beds) (Autohotkey)==
 +
*Supports unlimited wheat beds, Supports any resolution
 +
*Point and middle click all your wheat beds.
 +
*Cycles through each bed, repeatedly, sending the [W]ater and [H]arvest (H+W keys, back to back) over each one.
 +
*Automatically refills your jugs every 3 minutes
 +
*Added: 1/12/2010
 +
*Updated: 10/16/2010 (Added Timers in the GUI status screen - Time Elapsed and Time to next water gather)
 +
*Updated: 10/25/2010 - Removed 1 of the 3 steps needed to setup the macro. You no longer need to record the "Max" button to record its location. It is now found automatically, at any resolution.
  
  
 +
[[User:Cegaiel/Macros/Wheat | Read more...]]
  
[[User:Cegaiel/Macros/Fishing | Get Code!]]
 
  
  
 +
==Ore Mining (Autohotkey)==
 +
*The macro will walk you through the setup, via GUI interface. You dont really need to study this page too much.
 +
*Point and middle click all your ore stones
 +
*It will try every 3 stone combination (4 stones option avail if you want to try for extra yield on aluminum, tin) until complete.
 +
*Sends the A and S keys to the mine, so make sure you chat is minimized!
 +
*Automatically detects popups and closes them, while macro is running.
  
==Carpenter Blade 1024x768 (Autohotkey)==
 
  
<b>CREDIT:</b> Full credit for the actual carp blade making portion goes to [[User:Oni/CarpBlade1024|Oni's Carp Blade]] script, based off his ACTools macro. I simply converted it to Autohotkey and added some very useful features/hotkeys for more ease and flexiblity.  I'm not a big Actools fan and I dont trust it to make more than 1 blade at a time (batches). Theres no way to tell if the blade you are about to start making is even in the right position or at what coords. And if you do get a good quality blade, you have to blindly hope you are pointing your mouse at the same spot when you make your next blade. The features I added to this script addresses all my issues.
+
*Added: 10/24/2010
 +
*Last Update: 10/26/2010 - <b>ANOTHER</b> Major update. Make sure you have the latest version. This not only ensures that all the combos are executed correctly, but now that the mistake is corrected, it reduces the timer back down from 90s to 60s per cycle (7 stones)
 +
*Last Update: 10/30/2010 - Converted the pixelsearch method to imagesearch. It will now look for the enclosed, OK.PNG file to locatate the popup. This will reduce problems while standing on all sand terrains.
 +
*Last Update: 11/20/2010 - Added the ability to mine silver (4 stone combinations)
 +
*Last Update: 12/30/2011 - Minor update. Added a reminder in the status window to 'Hold F2 key to abort clicking' on the nodes.
 +
*Last Update: 1/3/2012 - New improved popup detection and closing.
 +
*Last Update: 1/25/2012 - New info/changes regarding silver... Read more
  
  
[[User:Cegaiel/Macros/CarpBlade|Get Code!]]
+
[[User:Cegaiel/Macros/Mining | Read more...]]
  
 +
==Sand Mining (Autohotkey)==
 +
*The macro will walk you through the setup, via GUI interface.
 +
*Asks for the pattern (ie Triple + 1 pair, or 2 pairs), all the options in [http://www.atitd.org/wiki/tale5/Guides/Mining/Sand_Mining wiki].
 +
*Whatever pattern is chosen, it will run the ore stones, as it is listed in wiki.
  
*Make 7.1k - 7.2k carpentry blades in about 10 seconds (Single keyboard click to repeat previously sucessful blades).<BR>View last image below to see the consistency.
+
*Sends the A and S keys to the mine, so make sure you chat is minimized!
*Works only in 1024x768 screen resolution
+
*Automatically detects popups and closes them, while macro is running.
*Double F8 View zoom all the way in (script will do this automatically for you, so ignore this).
+
*Runs each workload, depending on number of sets and configurable delay time, at the following speed:
*Place mouse on starting position (while hovering red dot, in image 1 & 2, below).
+
** 150 Delay = 6 to 12 seconds
*Press F2  to start making a blade (or Right Ctrl to make blade from a previously successful location - no need to move mouse with this option, position is irrelevent since it uses coords from memory)
+
** 200 Delay = 9 to 20 seconds
  
  
 +
*Added: 10/27/2010
 +
*Last Update: 12/30/2010
 +
*Last Update: 1/3/2012 - Improved popup detection and closing.
  
<b>Hotkeys:</b> (That work while the script is active/idle)
 
*F1 Help Screen
 
*F2 Make a blade and store coordinates into script memory AND clipboard
 
<B>Note:</b> The only purpose of putting into clipboard is in case you're about to log out of the game. Next time you log on (assuming you didn't move your avatar, you can just click the same coords you were using your previous session (this is where Left Shift comes into play). You can paste your last coords with Ctrl+V into notepad at anytime for later reference. If your avatar moves even a half of a step, then those coords will not be valid anymore.
 
*Right Ctrl: Make another blade from last F2 coordinates (memory)
 
*Left Shift: Show current mouse position
 
*Right Shift: Show last F2 coordinates (memory)
 
  
  
<b>Hotkeys you use after making a blade:</b>
+
[[User:Cegaiel/Macros/SandMining | Read more...]]
*Left Ctrl: Approve and unload a blade into your inventory (Automatically clicks Complete Project on menu).<br><b>Note:</b> If you uncomment the next to last line: <b>Gosub, Load</b> (uncomment meaning remove the comment/ignore tag <b>;</b>) then pressing Left Ctrl will not only unload the blade, but will execute RCtrl automatically after unloading. This means it will start another blade immediately (based on last valid F2 mouse position). Expedites making large quantities of blades. After you are comfortable with the script, I recommend you use this.
 
*SPACEBAR: Discard project and recover metal (Automatically clicks Discard on menu)
 
  
  
  
  
<b>Your Anvil MUST be aligned North to South. When loaded, the cutting edge of the blade must face West.</b><BR>Why: When you Double F8, the screen automatically changes to have North at top of screen, South at bottom of screen.
 
  
  
[[Image:Cegaiel_carp1.jpg]]
+
----
  
 +
==[[Image:t5N.gif]] Preconfigured Guild Crematories 1024x768 (Actools)==
  
<b>Tips:</b>
 
*If you keep getting 6800 quality blades no matter where you start blade/set coords with F2, then try to reposition your body a half a step or two. I found the best response to the script is to stand around where I am in screenshot, towards the bottom left corner. But standing at no higher (North) than the middle of the anvil.
 
*It has been reported to me that someone using a flat screen monitor (which is wide screen) doesn't get the correct results as I do (I use an old style square shaped CRT monitor) when using the starting position that is recommended (the red dot in the F2 starting position images, below). I believe the script would still make the blade correctly, but you might need to find a new starting position to get the desired results. But I can not confirm this since I dont have a flat screen monitor. Basically, you want to find a starting position that will make the first click on the most upper, left corner of the loaded metal (see image directly below). If your first click hits that spot, then I believe it will finish the blade correctly.
 
  
 +
<font color=red><B>NO LONGER SUPPORTED!</b></font>  &nbsp;&nbsp;&nbsp; <font color=blue>Use at your own risk</font>
  
First blow should hit about here:
 
[[Image:Cegaiel_carp5.jpg]]
 
  
 +
Crematory macro preconfigured with various guild crematories @ 1024x768 resolution.
 +
*Will work at 1024x768 already (with your own crematory) just by editing the slider and button numbers.
 +
*Can be made to work at any resolution by also editing just a few extra numbers (mouse coordinates).
 +
*Added: 1/14/2010
 +
*Last Update: 1/26/2010
  
<B>Starting position (Hit F2 here):</b>
 
{| cellpadding="2" border="1" cellspacing="0" width="180%"
 
[[Image:Cegaiel_carp2.jpg]]
 
|-
 
[[Image:Cegaiel_carp3.jpg]]
 
|}
 
  
 +
Crematories currently configured with code available:
 +
*SACFAR (Public)
 +
*Egyptian Life
 +
*ZFree
  
<b>Look at the consistency:</b>
 
  
[[Image:Cegaiel_carp4.jpg]]
+
[[User:Cegaiel/Macros/Crematory | Read more...]]

Latest revision as of 08:48, 25 January 2012

* How to use these macros *

Note to use most of my Macros, you need the Autohotkey program installed. Once you download and install the program, then you just click the "Read more..." links, then the "Get Code!" links to copy/paste the file into Notepad (or whatever). Note if you are having difficulty highlighting the code, then click the Edit or View Source button at top and it will put the code inside of a form box (makes easy copy/paste). Just be sure to never save the <pre> tag at beginning or the </pre> tag at the end. Those are wiki tags. Then save your file as something.ahk (AutoHotKey) or something.mac (Actools). All of my macros work at any resolution, except where noted otherwise (ie 1024x768 in the macro name, means some portion are hard coded for that resolution). You will want to manually set your resolution in that case. Otherwise, no need to worry about your resolution... If my macro is in a .zip format, then you dont need to copy/paste the code, that will be included in the zip file as a .ahk file. Just double click on it to launch. Some of the macros are in zip format, which may include image files. Those need to stay in the same folder as the macro. Some zip files also contain a .exe file. This is a compiled version of the .ahk macro. The .exe is a standalone version and can be ran, even if you do not have autohotkey installed on your system. You only need autohotkey installed if you are running .ahk files, not .exe.


Note: If you are having difficulty copying and pasting the code on the web page, then click the Edit (or View Source) link at top and the code will be in a form text box. Then you can highlight the code (exclude the <pre> and </pre> tag, this is a wiki tag), inside the form box, very easily.




Get Mouse Coordinates and Color (Autohotkey)

If you write AHK scripts, then this a great helper, where applicable.

  • Gives accurate x,y coords on ATITD. It even realizes that the upper left corner of ATITD is 4,4, not 0,0 so very accurate, unlike some 3rd party programs that give coordinates
  • Displays a tooltip as you move mouse around.
  • Shows the hovered mouse position and color in the tooltip.
  • If needed, Press F2 at anytime to copy the color and mouse coordinates into Clipboard (then Paste, Ctrl+V into Notepad or something).
  • Also shows screen center position and the offset you are from there. Tutorial on next page to see how to code button positions to work at any resolution.


Read more...


Grass (Autohotkey)

  • Enter amount of grass to collect.
  • Automatically walks around in a circle and collects grass without moving too far from where you started.
  • Great to get your Rhythmic Strength skill up.
  • Added: 12/5/2009
  • Updated: 1/25/2012


Read more...

Grow Barley 1280x1024 (Autohotkey)

  • Plants 2 rows of 5 barley beds and waters/fertilizes each bed for 5 rounds, then picks them. Yields: 2-10 barley per plant.
  • Option to choose Water Only or Water + Fertilizer. No weed killer used or supported.
  • Added 2/1/2010
  • Last Update: 10/16/2010


Read more...

Plane Boards (Unlimited carpentry benches) (Autohotkey)

  • Supports unlimited benches, Supports any resolution
  • Point and middle click all your carpentry benches.
  • Cycles through and hovers each one, while sending the [P]lane Boards (P key) over each one very quickly.
  • Last Update: 1/19/2012 - Speeded it up and added delay variable so you can change if needed. Doesn't required Ctrl+Alt+W to start anymore, now automatically goes to GUI.


Read more...

Fishing (Autohotkey)

  • Point and middle click your fishing icon location
  • Asks for how many casts you want to do
  • Fish every 15s until completed.
  • Last Update: 1/18/2010


  • T5/T6 NOTE: While this does work on T5/T6, note that if you run out of lures, it will popup a box saying you need a lure. This macro does not detect that popupbox box (for now) and will continue trying to fish (unsuccessfully)... So make sure you are watching this close. Make sure you have an abundant supply of lures. I MAY edit this is the future to detect popups and abort script if one is detected...


Read more...

Popup Box Closer (Lazy man's falcon hunter helper) (Autohotkey)

  • Point and middle click on a popup box with an OK button (careful, dont click on the black text in the word "OK", but on the yellowish part of the OK button.
  • Then just do your normal activities. Anytime a popup box occurs, it will automatically click the OK button to close it.
  • Originally created, to close popup boxes, when searching trees for Falcons (ie you're too tired popup box), but will close any popup box under any circumstance you might find.
  • Added: Feb 5, 2010


Read more...


Skills Timer Clicker (Digging, Loom, Dirt, etc) (Autohotkey)

  • It will walk you through the setup process via GUI menus
  • Monitors the black/red text in skills tab and only clicks when they are black (no longer tired)
  • Option to stop at a certain number of clicks or let run continuously
  • Option to eat grilled foods at the correct time, repeatedly
  • This script was created for dig sites and digging limestone/dirt, primarily. However, it would work with anything that uses a skills timer (ie the popup box that says "you are too tired to do something")
  • Idea Uses: Dig sites, Limestone, Dirt, Pumping Acqueduct, Carving, Barrel Grinder, Deep Well, Kitchen (ie Seperating Coconuts), Loom, Clinker Vat, Hookah more...


Normally hackling rake would be included in the above Idea Uses, but 2 out of the 4 clicks are on different places/coordinates on the menu, so use below Rake script for that, which addresses that issue.


  • Added: 2/14/2010
  • Updated: 12/28/2011


Read more...

Hackling Rake (Autohotkey)

  • It will walk you through the setup process via GUI menus
  • Monitors the black/red text in skills tab and only clicks when they are black (no longer tired)
  • Menu has recently changed (I think). The seperate/process flax options and the clean rake is no longer on the same line, in menu. This script addresses that issue (which is why the above Skill Timer script wont work on rakes)
  • This should work on Flax combs, too...


  • Added: 2/19/2010
  • Updated 12/13/2011 (Now includes a routine to detect a popup box if using a Flax Comb and it breaks)
  • Code Reposted on Jan 23, 2012 - There seemed to have been an extra line break in the script causing error on Line 34. It should be ok now.


Read more...

Real Seconds Stopwatch (Autohotkey)

  • Not very useful, for the most part, but I created to help me time certain things. I could use something like ATITD Timer, however, the time it takes to make sure that the window is in focus and hit either Start/Stop (or Enter Key), is a couple of seconds I lost. This was written for more pinpoint accuracy in seconds because all you do is hit Numpad + to start timer, and Numpad - to stop timer.
  • Times in 1/10 seconds for extra accuracy
  • Counts up from 0.0 seconds
  • Display the timer in a GUI window
  • Added: 2/17/2010


Read more...


Teppy and Real Seconds Timer (Great for Glazier Bench) (Autohotkey)

  • Counts down from the minutes/seconds you enter
  • Asks if you are using Real or Teppy mode (adjusts time accordingly for Teppy)
  • Display the timer in a GUI window
  • Example Use: I use ATITD Timer to time 1m 40s (Real seconds), on Glazier Bench, so I know when to add 2cc. I use this macro to time my project timer (ie 120s (2m) for Sheet Glass). Sure I could use two ATITD Timers, but I like the ability to just hit Numpad + Key to start timer, over and over (but always waits for you to hit Numpad + to begin timer). Once you input a time, it will repeat the same time over and over. Real mode seems to be more accurate than Teppy mode with Glazier bench, could be my lag, try for yourself and see.
  • Added: 2/17/2010
  • Last Update: 12/26/2010: Changed teppy multiplier from 1.07 to 1.1 for more accuracy.


Read more...

Flax Hammocks (Unlimited) (Autohotkey)

  • Supports Grass, Papyrus and Rotten Flax only.
  • Asks what you are drying and qty. Walks you through setup in a GUI menu.
  • Loads all your hammocks, waits the correct time to dry, then unloads them all; Repeats. Will stop automatically once everything is dried.
  • Added 2/25/2010
  • Last Update: 12/17/2010


Read more...

Improved Brick Racks (Unlimited) (Autohotkey)

  • Supports unlimited brick racks, Supports any resolution
  • Asks if you are making Bricks, Firebricks or Clay bricks.
  • Point and middle click all your brickracks.
  • It will hover each of your brick racks and press the correct key [B], [F] or [C] of the type of bricks you are making.
  • After loading the brick racks, it will wait for the brick racks to complete and hover each rack and hit the [T]ake key to remove them and continue going.
  • Added: 1/18/2010
  • Last Update: 11/14/2010


Note: This macro will NOT work on flimsy brick racks, only Improved brick racks! Flimsy brick rack makes you walk to it, whereas Improved brickrack does not.


Read more...

Pottery Wheels (Unlimited) (Autohotkey)

  • Supports unlimited wheels, Supports any resolution
  • Point and middle click all your pottery wheels.
  • It will hover each of your wheels and press [J]ugs key to make jugs.
  • It will wait for the jugs to complete and hover each wheel and hit the [T]ake key to remove items and continue going.
  • Added: 3/17/2010
  • Last Updat: 1/14/2012


Read more...

Papy Picker

  • Looks for papy close to the avatar, and picks it via right click...
  • Added: Sep 16, 2010
  • Updated: Oct 10, 2010


Read more...


Make Carpentry Blades 1680x1050 (Autohotkey)

  • Make 7.0k - 7.2k quality blades in 10 seconds
  • Many automated functions, via hotkeys, during script.
  • Extremely simple and repeats previously confirmed successful blades with a single click.
  • No need to find the same mouse coordinates over and over!
  • It will even automatically double F8, zoom in for you...
  • Asks if you're using Copper or Iron metal
  • Credit to Oni's T5 macro, this is based off his macro, but converted from Actools to Autohotkey; We appreciate your hard work :)
  • Last Update: Oct 9, 2010


Read more...


Barrel Vise 1280x1024 (Autohotkey)

  • Watches fuel and flame bars, wont add wood if the flame bar is past a certain point that would ruin the project.
  • Asks how many barrels you are making and runs nonstop until finished
  • Added: 4/15/2010
  • Last Update: 10/02/2010 (Adjusted coordinates for T5, tested/verified)


Read more...


Kettles (Run 1 to 21 Kettles) 1280x1024 (Autohotkey)

  • All new for T5. I revamped my Tale 4 macro (which ran either 6 or 12 kettles) and made it so that you can select and run 1 (min) to 21 kettles (max)
  • Pin up to 3 rows of 7 Kettles across top of screen (beginning top left corner).
  • Will click the Potash/Acid/Salt, Begin and Ignite button and load Max Wood
  • Will Refresh menu to show Stoke Max option and Stoke it all the way to the end.
  • Last cycle will Stoke Max (at 6 water and 2 wood). Uses 28 wood per kettle
  • Will unload (Take) the kettles automatically (and start new runs, if more than 1 run is chosen)
  • Added: 10/12/2010


Note: I recommend using Takhetu's Kettle macro. It pins up the windows for you and shuffles them around (just like Flax on Veggie Tales does). Where as mine you have to pin manually and it will fill your screen up. I'm not really supporting my kettle macro anymore, as I use his macro instead now.


Read more...

Glaziers' Bench

  • Configured for 1024x768 and 1280x1024, instructions to configure for other resolutions, inside the code...
  • Timed Macro for CC and Make Glass, but also watches heat bar (will not make project outside of correct range) or add cc above 2200 degrees
  • Last Update: 1/14/2011


I recommend using the glass.lua thats included in Veggie Tales, instead of this macro now!


Read more...

Malting Trays (Unlimited) (Autohotkey)

  • Supports unlimited trays, Supports any resolution
  • Point and middle click all your malting trays.
  • It will hover each of your trays and press [M]alt key to Malt Barley.
  • It will wait for the trays to complete and hover each tray and hit the [T]ake key to remove items and continue going.
  • Last Update: 5/9/2010


Read more...



Grow Wheat (Unlimited beds) (Autohotkey)

  • Supports unlimited wheat beds, Supports any resolution
  • Point and middle click all your wheat beds.
  • Cycles through each bed, repeatedly, sending the [W]ater and [H]arvest (H+W keys, back to back) over each one.
  • Automatically refills your jugs every 3 minutes
  • Added: 1/12/2010
  • Updated: 10/16/2010 (Added Timers in the GUI status screen - Time Elapsed and Time to next water gather)
  • Updated: 10/25/2010 - Removed 1 of the 3 steps needed to setup the macro. You no longer need to record the "Max" button to record its location. It is now found automatically, at any resolution.


Read more...


Ore Mining (Autohotkey)

  • The macro will walk you through the setup, via GUI interface. You dont really need to study this page too much.
  • Point and middle click all your ore stones
  • It will try every 3 stone combination (4 stones option avail if you want to try for extra yield on aluminum, tin) until complete.
  • Sends the A and S keys to the mine, so make sure you chat is minimized!
  • Automatically detects popups and closes them, while macro is running.


  • Added: 10/24/2010
  • Last Update: 10/26/2010 - ANOTHER Major update. Make sure you have the latest version. This not only ensures that all the combos are executed correctly, but now that the mistake is corrected, it reduces the timer back down from 90s to 60s per cycle (7 stones)
  • Last Update: 10/30/2010 - Converted the pixelsearch method to imagesearch. It will now look for the enclosed, OK.PNG file to locatate the popup. This will reduce problems while standing on all sand terrains.
  • Last Update: 11/20/2010 - Added the ability to mine silver (4 stone combinations)
  • Last Update: 12/30/2011 - Minor update. Added a reminder in the status window to 'Hold F2 key to abort clicking' on the nodes.
  • Last Update: 1/3/2012 - New improved popup detection and closing.
  • Last Update: 1/25/2012 - New info/changes regarding silver... Read more


Read more...

Sand Mining (Autohotkey)

  • The macro will walk you through the setup, via GUI interface.
  • Asks for the pattern (ie Triple + 1 pair, or 2 pairs), all the options in wiki.
  • Whatever pattern is chosen, it will run the ore stones, as it is listed in wiki.
  • Sends the A and S keys to the mine, so make sure you chat is minimized!
  • Automatically detects popups and closes them, while macro is running.
  • Runs each workload, depending on number of sets and configurable delay time, at the following speed:
    • 150 Delay = 6 to 12 seconds
    • 200 Delay = 9 to 20 seconds


  • Added: 10/27/2010
  • Last Update: 12/30/2010
  • Last Update: 1/3/2012 - Improved popup detection and closing.


Read more...





T5N.gif Preconfigured Guild Crematories 1024x768 (Actools)

NO LONGER SUPPORTED!     Use at your own risk


Crematory macro preconfigured with various guild crematories @ 1024x768 resolution.

  • Will work at 1024x768 already (with your own crematory) just by editing the slider and button numbers.
  • Can be made to work at any resolution by also editing just a few extra numbers (mouse coordinates).
  • Added: 1/14/2010
  • Last Update: 1/26/2010


Crematories currently configured with code available:

  • SACFAR (Public)
  • Egyptian Life
  • ZFree


Read more...