<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.atitd.org/wiki/t5w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimbly</id>
	<title>ATITD5 - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://www.atitd.org/wiki/t5w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimbly"/>
	<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/tale5/Special:Contributions/Jimbly"/>
	<updated>2026-04-06T02:51:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=83441</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=83441"/>
		<updated>2011-03-10T04:58:13Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Changelog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
'''NOTE: If you use VeggieTales with the ATITD window in the background, the macros will work much better if you set ATITD to ''High Priority Mode'' under Options | Interface Options | Priority'''&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a month, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via public SVN: svn://bigscreensmallgames.com/other/VeggieTales .  Commit access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
[[VeggieTales Scripting Reference]]&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.59 - updated &amp;quot;start macro&amp;quot; text to indicate that putting the ATITD window in focus or changing the priority mode is required.  Integrated script changes from Cegaiel, KasumiGhia, Skyfeather, Mazaki: flax improvements, clay gather, CC helper, essence creation, paper press fix.&lt;br /&gt;
* v1.58 - added srKeyEvent function for sending keyboard presses&lt;br /&gt;
* v1.57 - changed flax_seeds to be able to rip out beds upon finishing, and also able to repeat multiple times.  Added optional support for adding to a bonfire and eating carrots to wood.lua.&lt;br /&gt;
* v1.56 - added Fine Glass Rods/Pipes and Glass Blades to glass macro.  Fixed numpad input in text entries.  Added Kasiya's barley macro.&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
* 3rd party Updates by [[User:KasumiGhia]]&lt;br /&gt;
** [[User:KasumiGhia/lua|Generic Flax]] scripts: handles all known flaxes.&lt;br /&gt;
&lt;br /&gt;
*3rd Party Updates by Cegaiel&lt;br /&gt;
**For those having problems with the macro getting hung up on &amp;quot;Refocusing windows&amp;quot; AND the occasional freezing during planting  - [[User:Cegaiel | View Update]]&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
* [[User:Makazi/Macro#CC Assist|CC Assist]] a modified multi_click script by [[User:Makazi|Makazi]]&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
* 3rd party Updates by [[User:KasumiGhia]]&lt;br /&gt;
** modified [[User:KasumiGhia/lua|Onion]] Script handles differently shaped fields, allows use away from water, other changes.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
2010/09/23: Almelkehdes: As someone with advanced arthritis, I can't tell you how much I appreciate your work on those macros. Thank you Thank you!&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Macros&amp;diff=83437</id>
		<title>Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Macros&amp;diff=83437"/>
		<updated>2011-03-10T04:49:27Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Jimbly's Macros */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Macros==&lt;br /&gt;
&lt;br /&gt;
Well, I see some people are discussing/sharing macros, and I think that's a good thing. Nobody likes the tedium of clicking, and not everyone has the ability to write good macros/scripts to handle that while they are there.&lt;br /&gt;
&lt;br /&gt;
REMEMBER - it is '''ILLEGAL''' to go afk while macroing. If a eGenesis staff member catches you, you could be banned for breaking the terms of service.&lt;br /&gt;
&lt;br /&gt;
With that in mind, let's make this a normal page of the wiki.&lt;br /&gt;
&lt;br /&gt;
All macros are {{5ok}} unless otherwise specified.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[User:Anka/Macros|Anka's Macros]]===&lt;br /&gt;
I'm back and will be updating all of my old macros&lt;br /&gt;
*Barley&lt;br /&gt;
*Charcoal Hearth&lt;br /&gt;
*Charcoal Oven&lt;br /&gt;
*Firepit - autohotkey&lt;br /&gt;
*Endless Flax&lt;br /&gt;
*MultiTool&lt;br /&gt;
*Multiple Resolutions - some are 1920x1080 only for now.&lt;br /&gt;
&lt;br /&gt;
===Iggy's Macros===&lt;br /&gt;
*[[Macros/Iggys|Iggy's AutoHotKey Macros]]&lt;br /&gt;
**[[Macros/Iggys/Flax|Flax Macro]] &lt;br /&gt;
**[[Macros/Iggys/Misc/Clicker|Clicking Macro]]&lt;br /&gt;
**[[Macros/Iggys/Gather|Clay, Grass &amp;amp; Slate Macro]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Rogarian's Macros (Windows Executables)===&lt;br /&gt;
* [http://nemesis2.qx.net/pages/ATITD R-Cubed (Windows Only)]&lt;br /&gt;
** R-Cubed is simple program that will allow one to easily pick up grass, slate and clay. It will also do simple skill based tasks such as digging or gathering limestone. &lt;br /&gt;
** &amp;quot;It's stupdenous!&amp;quot; ~Traak&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[Jimbly's_Macros|Jimbly's Macros]]===&lt;br /&gt;
* LUA-based macro engine named VeggieTales&lt;br /&gt;
* Special modes for:&lt;br /&gt;
** Thistle recipe generation&lt;br /&gt;
** Carrot harvesting&lt;br /&gt;
* Macros for&lt;br /&gt;
** Flax&lt;br /&gt;
** Glass making&lt;br /&gt;
** Quarrying&lt;br /&gt;
** Generic repetitive clicking while monitoring your stats (digging, pumping, sand mining, weaving, carving, etc)&lt;br /&gt;
** Wood gathering from a copse of trees&lt;br /&gt;
** ...and more!&lt;br /&gt;
&lt;br /&gt;
* [[User:KasumiGhia/lua|Edited macros]] for VeggieTales by [[User:KasumiGhia|KasumiGhia]]&lt;br /&gt;
** Generic Flax scripts: handles all known flaxes. (included in VeggieTales 1.59)&lt;br /&gt;
** modified Onion Script&lt;br /&gt;
** fix bug with paper_press.lua failing after wood paper manufacturing is learned. (included in VeggieTales 1.59)&lt;br /&gt;
&lt;br /&gt;
* [[User:Skyfeather/essences|Essence Creation Macro]] by [[User:Skyfeather|Skyfeather]] (included in VeggieTales 1.59)&lt;br /&gt;
&lt;br /&gt;
* [[User:Cegaiel | Flax update]] by [[User:Cegaiel | Cegaiel]]&lt;br /&gt;
** Fixes, for some users, the freezing during 'Refocusing windows' and fixes the occassional freeze while planting. (included in VeggieTales 1.59)&lt;br /&gt;
&lt;br /&gt;
===[http://www.atitd.org/wiki/tale4/User:Cegaiel/Macros Cegaiel's Macros]===&lt;br /&gt;
&lt;br /&gt;
Excuse my laziness, I have too many macros to copy over to T5 (for now)... However, I did go through them and made notes on which works on T5 and which does not and which are not tested. The above link goes to my T4 wiki page (with T5 notes).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;font color=red&amp;gt;&amp;lt;b&amp;gt;NEW&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;&lt;br /&gt;
**Kettles (Run 1 to 21 kettles) - 1280x1024 (Autohotkey)&lt;br /&gt;
**Mining (Autohotkey)&lt;br /&gt;
**Sand Mining (Autohotkey)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{5ok}} &amp;lt;b&amp;gt;Tested/Confirmed/Updated for T5:&amp;lt;/b&amp;gt;&lt;br /&gt;
*Barrel Vise 1280x1024 (Autohotkey)&lt;br /&gt;
*Brick Racks (Unlimited) (Autohotkey)&lt;br /&gt;
*Carpentry Blade (7.1-7.2k) 1680x1050 (Autohotkey)  - Duplicate of Oni's Carp Blade Macro, but converted to Autohotkey with extra features - Thanks Oni! &lt;br /&gt;
*Flax Hammocks (Unlimited) (Autohotkey)&lt;br /&gt;
*Get Mouse Coordinates and Color (Autohotkey)&lt;br /&gt;
*Glaziers' Bench (Autohotkey)&lt;br /&gt;
*Grass (Autohotkey)&lt;br /&gt;
*Grow Barley 1280x1024 (Autohotkey)&lt;br /&gt;
*Grow Wheat (Unlimited) (Autohotkey)&lt;br /&gt;
*Hackling Rake (Autohotkey)&lt;br /&gt;
*Malting Trays (Unlimited) (Autohotkey)&lt;br /&gt;
*Plane boards (on Carpentry Shop) (Unlimited) (Autohotkey)&lt;br /&gt;
*Popup box closer (Autohotkey)&lt;br /&gt;
*Pottery Wheels (Unlimited) (Autohotkey)&lt;br /&gt;
*Skills Timer Clicker (Digging, Loom, Dirt, etc - Anything that causes a skill to turn red (Autohotkey)&lt;br /&gt;
*Papy Picker (Autohotkey)&lt;br /&gt;
*Real Seconds Stopwatch (Autohotkey)&lt;br /&gt;
*Teppy and Real Seconds Timer (Great for Glazier Bench) (Autohotkey)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[User:Wopper87/links|Wopper87 Misc Macros]] (Mostly Actools)===&lt;br /&gt;
&lt;br /&gt;
Some basic macros i made, modified or used&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[User:Oni/Macros|Oni's Macros]] (ACTool)===&lt;br /&gt;
Macros with mentioned resolutions work only in that resolution.&lt;br /&gt;
*'''[[http://www.atitd.org/wiki/tale4/User:Oni/macros ONI's Macro Guide]]''' Macroing for Dummies (like me).&lt;br /&gt;
:*Learn to make a simple macro using ACTool.&lt;br /&gt;
*''' [[User:Oni/GrassAuto | Simple Grass/Clay auto move gatherer]] ''' v1.0&lt;br /&gt;
:* General purpose grass/clay collecting macro. 1280x1024 resolution. 2nd F8 zoomed all the way in.&lt;br /&gt;
*''' [[User:Oni/Macros/CarpBladeWide | Carpentry Blade Macro &amp;lt;b&amp;gt;1680x1050&amp;lt;/b&amp;gt;]]'''&lt;br /&gt;
*''' [[User:Oni/Macros/Limstone1024 | Simple Limestone Macro&amp;lt;b&amp;gt;1024x768&amp;lt;/b&amp;gt;]]'''.&lt;br /&gt;
*''' [[User:Oni/Macros/CC1680 | Charcoal Hearth Macro&amp;lt;b&amp;gt;1680x1050&amp;lt;/b&amp;gt;]]'''&lt;br /&gt;
*''' [[User:Oni/Macros/CC1024|Charcoal Hearth Macro 1024x768]]'''.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[User:Blethezar/Macros|Blethezar's macro]]===&lt;br /&gt;
*[[User:Blethezar/Macros|CC hearth macro]]&lt;br /&gt;
**this is Anka's CC hearth Macro from T3&lt;br /&gt;
**         I've re-adjusted this macro to run in 1680x1050 resolution ,&lt;br /&gt;
**         only tried it with 4 hearths so far , but works fine.&lt;br /&gt;
**         Not lost a batch yet ( Galagah)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[User:Thanatic/Macros|Thanatic's macros]]===&lt;br /&gt;
*[[User:Thanatic/Macros/CC|nka's CC macro, altered to work with ovens too]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[User:Shayra|Shayra's Macros]]===&lt;br /&gt;
*[[User:Shayra|Flax]] --- Dharma's Continuous Flaxer from T3 updated for T5&lt;br /&gt;
**Clay Gatherer (nice, try this one)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===[[Macros/tehm_Grass | Tehm's Grass]] (ACTool)===&lt;br /&gt;
*Collects Grass&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
===[[User:Makazi/Macro | Makazi's Macros]] (Veggietales)===&lt;br /&gt;
* [[User:Makazi/Macro#Flax Assist|Flax Assist]]&lt;br /&gt;
** Click saver, helps when running many flax beds at once.&lt;br /&gt;
* [[User:Makazi/Macro#CC Assist|CC Assist]]&lt;br /&gt;
** CC Heart/Oven interface, run multiple CC Hearts/Ovens from one interface.&lt;br /&gt;
* [[User:Makazi/Macro#Pixel_Click|Pixel Click]]&lt;br /&gt;
** Select pixel area (16x8) and macro will click that image everytime it sees it. (Grass icon, clay icon, etc.)&lt;br /&gt;
* [[User:Makazi/Macro#Clay_Gatherer|Clay Gatherer]]&lt;br /&gt;
** Fully automated clay gathering macro.&lt;br /&gt;
&lt;br /&gt;
==Information on Distances==&lt;br /&gt;
&lt;br /&gt;
'''Additional Information lifted from Tale 3 Wiki'''&lt;br /&gt;
&lt;br /&gt;
This is a distance chart for mouse locations for items. All locations are in cartographer mode, zoomed in, on Windows. Your mileage may vary depending on OS. Please contribute!&lt;br /&gt;
&lt;br /&gt;
* Brick Rack: Horizontal 32px, Vertical 32px&lt;br /&gt;
* One line of text in a box: 16px&lt;br /&gt;
* Large Buttons&lt;br /&gt;
      o The Level button is 128px&lt;br /&gt;
      o Other buttons are 64px ea &lt;br /&gt;
* Small Buttons&lt;br /&gt;
      o The Level button is 64px&lt;br /&gt;
      o Other buttons are 32px ea&lt;br /&gt;
&lt;br /&gt;
==Macro Programs==&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;5&amp;quot; style=&amp;quot;background-color:#FFF8C6&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Program Name   !! Web Address  !! Operating System(s) Supported !! Cost&lt;br /&gt;
|- &lt;br /&gt;
|  Macro Express&lt;br /&gt;
|  http://www.macros.com&lt;br /&gt;
|  Windows XP, 2000, ME, 9x, NT 4; Pentium or higher CPU; 32 MB RAM; 20 MB hard disk space&lt;br /&gt;
|  $39.95 / 30 day trial&lt;br /&gt;
|-&lt;br /&gt;
|  ACTool (Asheron's Call Tool)&lt;br /&gt;
|  http://www.actool.net&lt;br /&gt;
|  Windows&lt;br /&gt;
|  Free and open source&lt;br /&gt;
|-&lt;br /&gt;
|  AutoHotkey&lt;br /&gt;
|  http://www.autohotkey.com/&lt;br /&gt;
|  Windows&lt;br /&gt;
|  Free and open source&lt;br /&gt;
|-&lt;br /&gt;
|  AutoIt 3.0&lt;br /&gt;
|  http://www.hiddensoft.com/autoit3/&lt;br /&gt;
|  Windows - no libs added&lt;br /&gt;
|  Free and open source&lt;br /&gt;
|-&lt;br /&gt;
|  LTool-0.3 (Linux)&lt;br /&gt;
|  http://ltool.sourceforge.net&lt;br /&gt;
|  Linux&lt;br /&gt;
|  Free and open source (Python script)&lt;br /&gt;
|-&lt;br /&gt;
|  xautomation&lt;br /&gt;
|  http://hoopajoo.net/projects/xautomation.html &lt;br /&gt;
|  Linux (You Compile, gcc c++)&lt;br /&gt;
|  Free, Open Source, GPL&lt;br /&gt;
|-&lt;br /&gt;
|  xnee&lt;br /&gt;
|  http://www.sandklef.com/xnee/&lt;br /&gt;
|  Linux, Mac&lt;br /&gt;
|  Free, Open Source, GPL&lt;br /&gt;
|-&lt;br /&gt;
|  SCAR Divi &lt;br /&gt;
|  http://freddy1990.com/index.php?page=product&amp;amp;name=scar&lt;br /&gt;
|  Windows&lt;br /&gt;
|  Free&lt;br /&gt;
|-&lt;br /&gt;
| Java&lt;br /&gt;
| http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Robot.html&lt;br /&gt;
| Windows, Linux, Mac&lt;br /&gt;
| Free&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===AC Tools===&lt;br /&gt;
There are a couple of issues with AC Tools that, once you fix, make it very easy and good to use.&lt;br /&gt;
&lt;br /&gt;
* Windows XP, start the program in Administrator Mode.  &lt;br /&gt;
* If you get the error &amp;quot;Could not find Decal's MEMLOCKS.XML&amp;quot;, just click Macro &amp;gt; Asheron's Call 1 Settings &amp;gt; Skip AC Mouse Memory Writes&lt;br /&gt;
* Setting &amp;lt;f2&amp;gt; and &amp;lt;f3&amp;gt; as start and stop hot keys will help fix most of the issues of &amp;quot;run away&amp;quot; macros.&lt;br /&gt;
&lt;br /&gt;
===Misc===&lt;br /&gt;
&lt;br /&gt;
* {{5}} [[http://www.fileden.com/files/2010/9/10/2965860/A%20Click%20In%20Time.zip A Click in Time]]&lt;br /&gt;
** Written by GarethDahm in Tale4 for Windows.&lt;br /&gt;
** Free Application!&lt;br /&gt;
** Position a small arrow anywhere on your screen.&lt;br /&gt;
** Set the timer.&lt;br /&gt;
** Let it ease your RSI factor!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*[http://www.atitd.org/wiki/tale4/images/8/8f/Ghostmouse.zip Ghostmouse] (Windows Executable) - Simple old freeware program that records your mouse movements/clicks.  Can adjust the speed with a click in Options, if necessary. Records in real time, no scripts to edit, easy for anyone to use. Program no longer made or supported, found in old archived backup CD. ([http://www.atitd.org/wiki/tale4/images/e/e0/Ghostmouse.jpg Screenshot])&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Personally I like autohotkey because it's freeware and is still being updated - Blogot&lt;br /&gt;
&lt;br /&gt;
I second the Autohotkey recommendation, it has some extremely powerful features but is still fast and lightweight, and new features are being added all the time. - Dragyn&lt;br /&gt;
&lt;br /&gt;
Personally I like AutoIt 3.0 it is freeware updated alot and it is very powerful allows macroing of almost anything windows - Ledeanna&lt;br /&gt;
&lt;br /&gt;
I second the AutoIt recommendation, it is very powerful as well, easy to code and allows compiling the scripts for use by people who want to macro but feel not competent enough to write their own or who dont want to install the scripting software. ~Anguz &lt;br /&gt;
- Note - AutoHotKey also allows you to compile an exe for machines with out AHK installed. ~Jhnny&lt;br /&gt;
&lt;br /&gt;
Added SCAR Divi, its similar to ACtool, but in my opinion much better. It has very nice support for Bitmap searching, and even Bitmask searching. The bitmaps can be converted to strings, and loaded directly in from the script (Rather then saved as images). Lots of other features, but people will have to find them. SCAR also supports bitmap masks, and Deformable template models, which allows the macro to find and identify multiple images, or peices of text, even when the colours, position, or even size has changed. Its possible to make fairly advanced macros that will work regardless of window positions ingame, or resolution.--Kinslayer 08:32, 29 August 2009 (EST)&lt;br /&gt;
&lt;br /&gt;
===Running without Windows?===&lt;br /&gt;
A lot of the macro effort has gone towards programs for windows. The windows version of atitd can be run using www.winehq.org (run Windows applications on Linux, BSD, Solaris and Mac OS X).&lt;br /&gt;
&lt;br /&gt;
Veggietales and autohotkey work to some extent using this emulator along with the windows emulation of atitd.&lt;br /&gt;
&lt;br /&gt;
Autohotkey 'keys' need to be changed to ones that work (Scrolllock, Numpad up/down/left/pageup/down buttons seem to work on ubuntu10). Recording and playback work only on windows emulated programs, but that's enough to save you from windows.&lt;br /&gt;
&lt;br /&gt;
=={{5}}[http://www.atitd.org/wiki/tale4/Macros Tale4 Macros]==&lt;br /&gt;
&lt;br /&gt;
Many of the Macros from Tale 4 still work.&lt;br /&gt;
Please copy them to this page once you have verified them.&lt;br /&gt;
&lt;br /&gt;
[http://www.atitd.org/wiki/tale4/Macros The old Page]&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/contact&amp;diff=83105</id>
		<title>User:Jimbly/contact</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/contact&amp;diff=83105"/>
		<updated>2011-03-09T06:48:07Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please contact me over IM at any time!&lt;br /&gt;
&lt;br /&gt;
* Trillian Astra: Jimbly&lt;br /&gt;
* ICQ: 435337&lt;br /&gt;
* AIM: Wasteland777&lt;br /&gt;
* MSN: wastelnd@hotmail.com&lt;br /&gt;
* Yahoo! Messenger: Wasteland7&lt;br /&gt;
* Google Talk: Wasteland@gmail.com&lt;br /&gt;
* ATITD: Jimbly (rarely online/rarely respond, but feel free to leave a note)&lt;br /&gt;
&lt;br /&gt;
(note: the emails above are purely used for IM, I do not check those email accounts).&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=83104</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=83104"/>
		<updated>2011-03-09T06:47:13Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
'''NOTE: If you use VeggieTales with the ATITD window in the background, the macros will work much better if you set ATITD to ''High Priority Mode'' under Options | Interface Options | Priority'''&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a month, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via public SVN: svn://bigscreensmallgames.com/other/VeggieTales .  Commit access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
[[VeggieTales Scripting Reference]]&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.58 - added srKeyEvent function for sending keyboard presses&lt;br /&gt;
* v1.57 - changed flax_seeds to be able to rip out beds upon finishing, and also able to repeat multiple times.  Added optional support for adding to a bonfire and eating carrots to wood.lua.&lt;br /&gt;
* v1.56 - added Fine Glass Rods/Pipes and Glass Blades to glass macro.  Fixed numpad input in text entries.  Added Kasiya's barley macro.&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
* 3rd party Updates by [[User:KasumiGhia]]&lt;br /&gt;
** [[User:KasumiGhia/lua|Generic Flax]] scripts: handles all known flaxes.&lt;br /&gt;
&lt;br /&gt;
*3rd Party Updates by Cegaiel&lt;br /&gt;
**For those having problems with the macro getting hung up on &amp;quot;Refocusing windows&amp;quot; AND the occasional freezing during planting  - [[User:Cegaiel | View Update]]&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
* [[User:Makazi/Macro#CC Assist|CC Assist]] a modified multi_click script by [[User:Makazi|Makazi]]&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
* 3rd party Updates by [[User:KasumiGhia]]&lt;br /&gt;
** modified [[User:KasumiGhia/lua|Onion]] Script handles differently shaped fields, allows use away from water, other changes.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
2010/09/23: Almelkehdes: As someone with advanced arthritis, I can't tell you how much I appreciate your work on those macros. Thank you Thank you!&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=74099</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=74099"/>
		<updated>2011-02-09T18:21:45Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* VeggieTales */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via public SVN: svn://bigscreensmallgames.com/other/VeggieTales .  Commit access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
[[VeggieTales Scripting Reference]]&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.58 - added srKeyEvent function for sending keyboard presses&lt;br /&gt;
* v1.57 - changed flax_seeds to be able to rip out beds upon finishing, and also able to repeat multiple times.  Added optional support for adding to a bonfire and eating carrots to wood.lua.&lt;br /&gt;
* v1.56 - added Fine Glass Rods/Pipes and Glass Blades to glass macro.  Fixed numpad input in text entries.  Added Kasiya's barley macro.&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
* 3rd party Updates by [[User:KasumiGhia]]&lt;br /&gt;
** [[User:KasumiGhia/lua|Generic Flax]] scripts: handles all known flaxes.&lt;br /&gt;
&lt;br /&gt;
*3rd Party Updates by Cegaiel&lt;br /&gt;
**For those having problems with the macro getting hung up on &amp;quot;Refocusing windows&amp;quot; AND the occasional freezing during planting  - [[User:Cegaiel | View Update]]&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
* [[User:Makazi/Macro#CC Assist|CC Assist]] a modified multi_click script by [[User:Makazi|Makazi]]&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
* 3rd party Updates by [[User:KasumiGhia]]&lt;br /&gt;
** modified [[User:KasumiGhia/lua|Onion]] Script handles differently shaped fields, allows use away from water, other changes.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
2010/09/23: Almelkehdes: As someone with advanced arthritis, I can't tell you how much I appreciate your work on those macros. Thank you Thank you!&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=64957</id>
		<title>VeggieTales Scripting Reference</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=64957"/>
		<updated>2011-01-13T21:35:33Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is documentation for editing scripts.  For general usage and macro information, see [[Jimbly's Macros]]&lt;br /&gt;
&lt;br /&gt;
== General Philosophy ==&lt;br /&gt;
&lt;br /&gt;
Most of the existing macros and the macroing interface are all built around a few primary goals:&lt;br /&gt;
* No keyboard interaction.  While a macro is running, the user should be able to freely chat with their friends, navigate between guild tabs, etc.&lt;br /&gt;
* Image recognition over offsets.  Where possible, read and scrape the screen to find the exact image we want to click on instead of hardcoding pixel offsets that might change based on resolution or other factors.  The downside of this is that it is more susceptible to minor changes in ATITD causing the macros to work.&lt;br /&gt;
* Status and prompts.  Friendly prompts about what values are desired are easy to add, and much better than telling someone to edit the script to handle the values they desire.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;ls&amp;quot; (short for &amp;quot;LUA script&amp;quot;, which makes more sense in the C++ code, as opposed to the actual macros where *everything* is lua script...) generally operate on the VeggieTales window, so lsGetWindowSize() gets the width and height of the VeggieTales window.&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;sr&amp;quot; (short for Screen Reader) generally operate on the ATITD window, so srGetWindowSize() gets the width and height of the ATITD window.&lt;br /&gt;
&lt;br /&gt;
== Specific Reference ==&lt;br /&gt;
&lt;br /&gt;
This is a work in progress, feel free to fill in details to help everyone.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
int lsScreenX&lt;br /&gt;
int lsScreenY&lt;br /&gt;
void lsSetCaptureWindow()&lt;br /&gt;
void lsSleep(int ms)&lt;br /&gt;
Vec2 lsGetWindowSize()&lt;br /&gt;
Vec2 srGetWindowSize()&lt;br /&gt;
Vec2 lsMouseClick(int x, int y, int w, int h, int button)&lt;br /&gt;
void lsPrintln(const char *s)&lt;br /&gt;
Vec2 srImageSize(const char *fn)&lt;br /&gt;
void srMakeImage(const char *name, int x, int y, int w, int h)&lt;br /&gt;
Vec2 srFindImage(const char *fn, int tol)&lt;br /&gt;
void srShowImageDebug(const char *fn, float x, float y, float z, float scale)&lt;br /&gt;
Vec2 srFindImageInRange(const char *fn, int x0, int y0, int w, int h, int tol)&lt;br /&gt;
void srReadScreen()&lt;br /&gt;
void srClickMouse(int x, int y, bool bRightClick)&lt;br /&gt;
void srClickMouseNoMove(int x, int y, bool bRightClick)&lt;br /&gt;
void srKeyEvent(const char *s)&lt;br /&gt;
void srDrag(int x0, int y0, int x1, int y1, bool rightClick)&lt;br /&gt;
void srSetMousePos(int x, int y)&lt;br /&gt;
int srReadPixel(int x, int y)&lt;br /&gt;
int srReadPixelFromBuffer(int x, int y)&lt;br /&gt;
void srMouseDown(int x, int y, bool rightClick)&lt;br /&gt;
void srMouseUp(int x, int y, bool rightClick)&lt;br /&gt;
void srSaveLastReadScreen(const char *fn)&lt;br /&gt;
Vec2 srMousePos()&lt;br /&gt;
bool lsShiftHeld()&lt;br /&gt;
bool lsAltHeld()&lt;br /&gt;
bool lsControlHeld()&lt;br /&gt;
void lsPlaySound(const char *sound)&lt;br /&gt;
int lsPrint(int x, int y, int z, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsFontShadow(int on)&lt;br /&gt;
int lsMessageBox(const char *title, const char *msg, int buttons)&lt;br /&gt;
int lsPrintWrapped(int x, int y, int z, int w, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsDisplaySystemSprite(int tile, int x, int y, int z, float w, float h, const char *color)&lt;br /&gt;
bool lsButtonText(int x, int y, int z, int w, const char *color, const char *txt)&lt;br /&gt;
bool lsCheckBox(int x, int y, int z, const char *color, const char *txt, bool value)&lt;br /&gt;
int lsDropdown(const char *key, int x, int y, int z, int w, int val)&lt;br /&gt;
void lsScrollAreaBegin(const char *key, int x, int y, int z, int w, int h)&lt;br /&gt;
void lsScrollAreaEnd(int h)&lt;br /&gt;
void lsSetCamera(float x0, float y0, float x1, float y1)&lt;br /&gt;
void lsDoFrame()&lt;br /&gt;
void lsTopmost(int value)&lt;br /&gt;
{bool done, selection} lsEditBox(const char *key, int x, int y, int z, int w, int h, float xsc, float ysc, const char *color, const char *def)&lt;br /&gt;
int lsGetTimer()&lt;br /&gt;
void lsShowScreengrab(const char *_color)&lt;br /&gt;
Vec2[] lsAnalyzePapyrus(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
Vec2[] lsAnalyzeSilt(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specific reference:&lt;br /&gt;
&lt;br /&gt;
[[VeggieTales/srKeyEvent|srKeyEvent]]&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=64956</id>
		<title>VeggieTales Scripting Reference</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=64956"/>
		<updated>2011-01-13T21:34:51Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This is documentation for editing scripts.  For general usage and macro information, see [Jimbly's Macros]&lt;br /&gt;
&lt;br /&gt;
== General Philosophy ==&lt;br /&gt;
&lt;br /&gt;
Most of the existing macros and the macroing interface are all built around a few primary goals:&lt;br /&gt;
* No keyboard interaction.  While a macro is running, the user should be able to freely chat with their friends, navigate between guild tabs, etc.&lt;br /&gt;
* Image recognition over offsets.  Where possible, read and scrape the screen to find the exact image we want to click on instead of hardcoding pixel offsets that might change based on resolution or other factors.  The downside of this is that it is more susceptible to minor changes in ATITD causing the macros to work.&lt;br /&gt;
* Status and prompts.  Friendly prompts about what values are desired are easy to add, and much better than telling someone to edit the script to handle the values they desire.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;ls&amp;quot; (short for &amp;quot;LUA script&amp;quot;, which makes more sense in the C++ code, as opposed to the actual macros where *everything* is lua script...) generally operate on the VeggieTales window, so lsGetWindowSize() gets the width and height of the VeggieTales window.&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;sr&amp;quot; (short for Screen Reader) generally operate on the ATITD window, so srGetWindowSize() gets the width and height of the ATITD window.&lt;br /&gt;
&lt;br /&gt;
== Specific Reference ==&lt;br /&gt;
&lt;br /&gt;
This is a work in progress, feel free to fill in details to help everyone.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
int lsScreenX&lt;br /&gt;
int lsScreenY&lt;br /&gt;
void lsSetCaptureWindow()&lt;br /&gt;
void lsSleep(int ms)&lt;br /&gt;
Vec2 lsGetWindowSize()&lt;br /&gt;
Vec2 srGetWindowSize()&lt;br /&gt;
Vec2 lsMouseClick(int x, int y, int w, int h, int button)&lt;br /&gt;
void lsPrintln(const char *s)&lt;br /&gt;
Vec2 srImageSize(const char *fn)&lt;br /&gt;
void srMakeImage(const char *name, int x, int y, int w, int h)&lt;br /&gt;
Vec2 srFindImage(const char *fn, int tol)&lt;br /&gt;
void srShowImageDebug(const char *fn, float x, float y, float z, float scale)&lt;br /&gt;
Vec2 srFindImageInRange(const char *fn, int x0, int y0, int w, int h, int tol)&lt;br /&gt;
void srReadScreen()&lt;br /&gt;
void srClickMouse(int x, int y, bool bRightClick)&lt;br /&gt;
void srClickMouseNoMove(int x, int y, bool bRightClick)&lt;br /&gt;
void srKeyEvent(const char *s)&lt;br /&gt;
void srDrag(int x0, int y0, int x1, int y1, bool rightClick)&lt;br /&gt;
void srSetMousePos(int x, int y)&lt;br /&gt;
int srReadPixel(int x, int y)&lt;br /&gt;
int srReadPixelFromBuffer(int x, int y)&lt;br /&gt;
void srMouseDown(int x, int y, bool rightClick)&lt;br /&gt;
void srMouseUp(int x, int y, bool rightClick)&lt;br /&gt;
void srSaveLastReadScreen(const char *fn)&lt;br /&gt;
Vec2 srMousePos()&lt;br /&gt;
bool lsShiftHeld()&lt;br /&gt;
bool lsAltHeld()&lt;br /&gt;
bool lsControlHeld()&lt;br /&gt;
void lsPlaySound(const char *sound)&lt;br /&gt;
int lsPrint(int x, int y, int z, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsFontShadow(int on)&lt;br /&gt;
int lsMessageBox(const char *title, const char *msg, int buttons)&lt;br /&gt;
int lsPrintWrapped(int x, int y, int z, int w, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsDisplaySystemSprite(int tile, int x, int y, int z, float w, float h, const char *color)&lt;br /&gt;
bool lsButtonText(int x, int y, int z, int w, const char *color, const char *txt)&lt;br /&gt;
bool lsCheckBox(int x, int y, int z, const char *color, const char *txt, bool value)&lt;br /&gt;
int lsDropdown(const char *key, int x, int y, int z, int w, int val)&lt;br /&gt;
void lsScrollAreaBegin(const char *key, int x, int y, int z, int w, int h)&lt;br /&gt;
void lsScrollAreaEnd(int h)&lt;br /&gt;
void lsSetCamera(float x0, float y0, float x1, float y1)&lt;br /&gt;
void lsDoFrame()&lt;br /&gt;
void lsTopmost(int value)&lt;br /&gt;
{bool done, selection} lsEditBox(const char *key, int x, int y, int z, int w, int h, float xsc, float ysc, const char *color, const char *def)&lt;br /&gt;
int lsGetTimer()&lt;br /&gt;
void lsShowScreengrab(const char *_color)&lt;br /&gt;
Vec2[] lsAnalyzePapyrus(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
Vec2[] lsAnalyzeSilt(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specific reference:&lt;br /&gt;
&lt;br /&gt;
[[VeggieTales/srKeyEvent|srKeyEvent]]&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales/srKeyEvent&amp;diff=54391</id>
		<title>VeggieTales/srKeyEvent</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales/srKeyEvent&amp;diff=54391"/>
		<updated>2010-12-15T05:55:30Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; void srKeyEvent(const char *s)&lt;br /&gt;
&lt;br /&gt;
Sends a character or sequence of characters to the captured window.  Example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
loadfile(&amp;quot;luaScripts/screen_reader_common.inc&amp;quot;)();&lt;br /&gt;
&lt;br /&gt;
function doit()&lt;br /&gt;
	askForWindow();&lt;br /&gt;
	&lt;br /&gt;
	lsSleep(250); -- wait for shift release to make it to the window&lt;br /&gt;
	srKeyEvent('username\tpassword');&lt;br /&gt;
	lsSleep(250); -- wait a moment before submitting so we can see it work, that's more fun!&lt;br /&gt;
	srKeyEvent('\n');&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will send the string &amp;quot;username&amp;quot; followed by a tab (\t) and then the string &amp;quot;password&amp;quot; and then enter (\n).&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales/srKeyEvent&amp;diff=54390</id>
		<title>VeggieTales/srKeyEvent</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales/srKeyEvent&amp;diff=54390"/>
		<updated>2010-12-15T05:50:26Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: Created page with &amp;quot; void srKeyEvent(const char *s)  Sends a character or sequence of characters to the captured window.  Example:   &amp;lt;pre&amp;gt; loadfile(&amp;quot;luaScripts/screen_reader_common.inc&amp;quot;)();  functio...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt; void srKeyEvent(const char *s)&lt;br /&gt;
&lt;br /&gt;
Sends a character or sequence of characters to the captured window.  Example:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
loadfile(&amp;quot;luaScripts/screen_reader_common.inc&amp;quot;)();&lt;br /&gt;
&lt;br /&gt;
function doit()&lt;br /&gt;
	askForWindow();&lt;br /&gt;
	&lt;br /&gt;
	lsSleep(250); -- wait for shift release to make it to the window&lt;br /&gt;
	srKeyEvent('username\tpassword');&lt;br /&gt;
	lsSleep(250); -- wait a moment before submitting so we can see it work, that's more fun!&lt;br /&gt;
	srKeyEvent('\n');&lt;br /&gt;
end&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will send the string &amp;quot;username&amp;quot; followed by a tab (\t) and then the string &amp;quot;password&amp;quot; and then a carriage return (\n).&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=54388</id>
		<title>VeggieTales Scripting Reference</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=54388"/>
		<updated>2010-12-15T05:48:50Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Specific Reference */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General Philosophy ==&lt;br /&gt;
&lt;br /&gt;
Most of the existing macros and the macroing interface are all built around a few primary goals:&lt;br /&gt;
* No keyboard interaction.  While a macro is running, the user should be able to freely chat with their friends, navigate between guild tabs, etc.&lt;br /&gt;
* Image recognition over offsets.  Where possible, read and scrape the screen to find the exact image we want to click on instead of hardcoding pixel offsets that might change based on resolution or other factors.  The downside of this is that it is more susceptible to minor changes in ATITD causing the macros to work.&lt;br /&gt;
* Status and prompts.  Friendly prompts about what values are desired are easy to add, and much better than telling someone to edit the script to handle the values they desire.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;ls&amp;quot; (short for &amp;quot;LUA script&amp;quot;, which makes more sense in the C++ code, as opposed to the actual macros where *everything* is lua script...) generally operate on the VeggieTales window, so lsGetWindowSize() gets the width and height of the VeggieTales window.&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;sr&amp;quot; (short for Screen Reader) generally operate on the ATITD window, so srGetWindowSize() gets the width and height of the ATITD window.&lt;br /&gt;
&lt;br /&gt;
== Specific Reference ==&lt;br /&gt;
&lt;br /&gt;
This is a work in progress, feel free to fill in details to help everyone.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
int lsScreenX&lt;br /&gt;
int lsScreenY&lt;br /&gt;
void lsSetCaptureWindow()&lt;br /&gt;
void lsSleep(int ms)&lt;br /&gt;
Vec2 lsGetWindowSize()&lt;br /&gt;
Vec2 srGetWindowSize()&lt;br /&gt;
Vec2 lsMouseClick(int x, int y, int w, int h, int button)&lt;br /&gt;
void lsPrintln(const char *s)&lt;br /&gt;
Vec2 srImageSize(const char *fn)&lt;br /&gt;
void srMakeImage(const char *name, int x, int y, int w, int h)&lt;br /&gt;
Vec2 srFindImage(const char *fn, int tol)&lt;br /&gt;
void srShowImageDebug(const char *fn, float x, float y, float z, float scale)&lt;br /&gt;
Vec2 srFindImageInRange(const char *fn, int x0, int y0, int w, int h, int tol)&lt;br /&gt;
void srReadScreen()&lt;br /&gt;
void srClickMouse(int x, int y, bool bRightClick)&lt;br /&gt;
void srClickMouseNoMove(int x, int y, bool bRightClick)&lt;br /&gt;
void srKeyEvent(const char *s)&lt;br /&gt;
void srDrag(int x0, int y0, int x1, int y1, bool rightClick)&lt;br /&gt;
void srSetMousePos(int x, int y)&lt;br /&gt;
int srReadPixel(int x, int y)&lt;br /&gt;
int srReadPixelFromBuffer(int x, int y)&lt;br /&gt;
void srMouseDown(int x, int y, bool rightClick)&lt;br /&gt;
void srMouseUp(int x, int y, bool rightClick)&lt;br /&gt;
void srSaveLastReadScreen(const char *fn)&lt;br /&gt;
Vec2 srMousePos()&lt;br /&gt;
bool lsShiftHeld()&lt;br /&gt;
bool lsAltHeld()&lt;br /&gt;
bool lsControlHeld()&lt;br /&gt;
void lsPlaySound(const char *sound)&lt;br /&gt;
int lsPrint(int x, int y, int z, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsFontShadow(int on)&lt;br /&gt;
int lsMessageBox(const char *title, const char *msg, int buttons)&lt;br /&gt;
int lsPrintWrapped(int x, int y, int z, int w, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsDisplaySystemSprite(int tile, int x, int y, int z, float w, float h, const char *color)&lt;br /&gt;
bool lsButtonText(int x, int y, int z, int w, const char *color, const char *txt)&lt;br /&gt;
bool lsCheckBox(int x, int y, int z, const char *color, const char *txt, bool value)&lt;br /&gt;
int lsDropdown(const char *key, int x, int y, int z, int w, int val)&lt;br /&gt;
void lsScrollAreaBegin(const char *key, int x, int y, int z, int w, int h)&lt;br /&gt;
void lsScrollAreaEnd(int h)&lt;br /&gt;
void lsSetCamera(float x0, float y0, float x1, float y1)&lt;br /&gt;
void lsDoFrame()&lt;br /&gt;
void lsTopmost(int value)&lt;br /&gt;
{bool done, selection} lsEditBox(const char *key, int x, int y, int z, int w, int h, float xsc, float ysc, const char *color, const char *def)&lt;br /&gt;
int lsGetTimer()&lt;br /&gt;
void lsShowScreengrab(const char *_color)&lt;br /&gt;
Vec2[] lsAnalyzePapyrus(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
Vec2[] lsAnalyzeSilt(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Specific reference:&lt;br /&gt;
&lt;br /&gt;
[[VeggieTales/srKeyEvent|srKeyEvent]]&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=54387</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=54387"/>
		<updated>2010-12-15T05:46:08Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Changelog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
[[VeggieTales Scripting Reference]]&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.58 - added srKeyEvent function for sending keyboard presses&lt;br /&gt;
* v1.57 - changed flax_seeds to be able to rip out beds upon finishing, and also able to repeat multiple times.  Added optional support for adding to a bonfire and eating carrots to wood.lua.&lt;br /&gt;
* v1.56 - added Fine Glass Rods/Pipes and Glass Blades to glass macro.  Fixed numpad input in text entries.  Added Kasiya's barley macro.&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
* 3rd party Updates by [[User:KasumiGhia]]&lt;br /&gt;
** [[User:KasumiGhia/lua|Generic Flax]] scripts: handles all known flaxes.&lt;br /&gt;
&lt;br /&gt;
*3rd Party Updates by Cegaiel&lt;br /&gt;
**For those having problems with the macro getting hung up on &amp;quot;Refocusing windows&amp;quot; - [[User:Cegaiel | View Update]]&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
* 3rd party Updates by [[User:KasumiGhia]]&lt;br /&gt;
** modified [[User:KasumiGhia/lua|Onion]] Script handles differently shaped fields, allows use away from water, other changes.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
2010/09/23: Almelkehdes: As someone with advanced arthritis, I can't tell you how much I appreciate your work on those macros. Thank you Thank you!&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=26822</id>
		<title>VeggieTales Scripting Reference</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=26822"/>
		<updated>2010-10-02T06:30:36Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Specific Reference */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General Philosophy ==&lt;br /&gt;
&lt;br /&gt;
Most of the existing macros and the macroing interface are all built around a few primary goals:&lt;br /&gt;
* No keyboard interaction.  While a macro is running, the user should be able to freely chat with their friends, navigate between guild tabs, etc.&lt;br /&gt;
* Image recognition over offsets.  Where possible, read and scrape the screen to find the exact image we want to click on instead of hardcoding pixel offsets that might change based on resolution or other factors.  The downside of this is that it is more susceptible to minor changes in ATITD causing the macros to work.&lt;br /&gt;
* Status and prompts.  Friendly prompts about what values are desired are easy to add, and much better than telling someone to edit the script to handle the values they desire.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;ls&amp;quot; (short for &amp;quot;LUA script&amp;quot;, which makes more sense in the C++ code, as opposed to the actual macros where *everything* is lua script...) generally operate on the VeggieTales window, so lsGetWindowSize() gets the width and height of the VeggieTales window.&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;sr&amp;quot; (short for Screen Reader) generally operate on the ATITD window, so srGetWindowSize() gets the width and height of the ATITD window.&lt;br /&gt;
&lt;br /&gt;
== Specific Reference ==&lt;br /&gt;
&lt;br /&gt;
This is a work in progress, feel free to fill in details to help everyone.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
int lsScreenX&lt;br /&gt;
int lsScreenY&lt;br /&gt;
void lsSetCaptureWindow()&lt;br /&gt;
void lsSleep(int ms)&lt;br /&gt;
Vec2 lsGetWindowSize()&lt;br /&gt;
Vec2 srGetWindowSize()&lt;br /&gt;
Vec2 lsMouseClick(int x, int y, int w, int h, int button)&lt;br /&gt;
void lsPrintln(const char *s)&lt;br /&gt;
Vec2 srImageSize(const char *fn)&lt;br /&gt;
void srMakeImage(const char *name, int x, int y, int w, int h)&lt;br /&gt;
Vec2 srFindImage(const char *fn, int tol)&lt;br /&gt;
void srShowImageDebug(const char *fn, float x, float y, float z, float scale)&lt;br /&gt;
Vec2 srFindImageInRange(const char *fn, int x0, int y0, int w, int h, int tol)&lt;br /&gt;
void srReadScreen()&lt;br /&gt;
void srClickMouse(int x, int y, bool bRightClick)&lt;br /&gt;
void srClickMouseNoMove(int x, int y, bool bRightClick)&lt;br /&gt;
void srDrag(int x0, int y0, int x1, int y1, bool rightClick)&lt;br /&gt;
void srSetMousePos(int x, int y)&lt;br /&gt;
int srReadPixel(int x, int y)&lt;br /&gt;
int srReadPixelFromBuffer(int x, int y)&lt;br /&gt;
void srMouseDown(int x, int y, bool rightClick)&lt;br /&gt;
void srMouseUp(int x, int y, bool rightClick)&lt;br /&gt;
void srSaveLastReadScreen(const char *fn)&lt;br /&gt;
Vec2 srMousePos()&lt;br /&gt;
bool lsShiftHeld()&lt;br /&gt;
bool lsAltHeld()&lt;br /&gt;
bool lsControlHeld()&lt;br /&gt;
void lsPlaySound(const char *sound)&lt;br /&gt;
int lsPrint(int x, int y, int z, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsFontShadow(int on)&lt;br /&gt;
int lsMessageBox(const char *title, const char *msg, int buttons)&lt;br /&gt;
int lsPrintWrapped(int x, int y, int z, int w, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsDisplaySystemSprite(int tile, int x, int y, int z, float w, float h, const char *color)&lt;br /&gt;
bool lsButtonText(int x, int y, int z, int w, const char *color, const char *txt)&lt;br /&gt;
bool lsCheckBox(int x, int y, int z, const char *color, const char *txt, bool value)&lt;br /&gt;
int lsDropdown(const char *key, int x, int y, int z, int w, int val)&lt;br /&gt;
void lsScrollAreaBegin(const char *key, int x, int y, int z, int w, int h)&lt;br /&gt;
void lsScrollAreaEnd(int h)&lt;br /&gt;
void lsSetCamera(float x0, float y0, float x1, float y1)&lt;br /&gt;
void lsDoFrame()&lt;br /&gt;
void lsTopmost(int value)&lt;br /&gt;
{bool done, selection} lsEditBox(const char *key, int x, int y, int z, int w, int h, float xsc, float ysc, const char *color, const char *def)&lt;br /&gt;
int lsGetTimer()&lt;br /&gt;
void lsShowScreengrab(const char *_color)&lt;br /&gt;
Vec2[] lsAnalyzePapyrus(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
Vec2[] lsAnalyzeSilt(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=26821</id>
		<title>VeggieTales Scripting Reference</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=VeggieTales_Scripting_Reference&amp;diff=26821"/>
		<updated>2010-10-02T06:28:50Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: Created page with &amp;quot;== General Philosophy ==  Most of the existing macros and the macroing interface are all built around a few primary goals: * No keyboard interaction.  While a macro is running, t...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== General Philosophy ==&lt;br /&gt;
&lt;br /&gt;
Most of the existing macros and the macroing interface are all built around a few primary goals:&lt;br /&gt;
* No keyboard interaction.  While a macro is running, the user should be able to freely chat with their friends, navigate between guild tabs, etc.&lt;br /&gt;
* Image recognition over offsets.  Where possible, read and scrape the screen to find the exact image we want to click on instead of hardcoding pixel offsets that might change based on resolution or other factors.  The downside of this is that it is more susceptible to minor changes in ATITD causing the macros to work.&lt;br /&gt;
* Status and prompts.  Friendly prompts about what values are desired are easy to add, and much better than telling someone to edit the script to handle the values they desire.&lt;br /&gt;
&lt;br /&gt;
== API ==&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;ls&amp;quot; (short for &amp;quot;LUA script&amp;quot;, which makes more sense in the C++ code, as opposed to the actual macros where *everything* is lua script...) generally operate on the VeggieTales window, so lsGetWindowSize() gets the width and height of the VeggieTales window.&lt;br /&gt;
&lt;br /&gt;
The functions prefixed with &amp;quot;sr&amp;quot; (short for Screen Reader) generally operate on the ATITD window, so srGetWindowSize() gets the width and height of the ATITD window.&lt;br /&gt;
&lt;br /&gt;
== Specific Reference ==&lt;br /&gt;
&lt;br /&gt;
This is a work in progress, please fill in details to help everyone.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
void lsSetCaptureWindow()&lt;br /&gt;
void lsSleep(int ms)&lt;br /&gt;
Vec2 lsGetWindowSize()&lt;br /&gt;
Vec2 srGetWindowSize()&lt;br /&gt;
Vec2 lsMouseClick(int x, int y, int w, int h, int button)&lt;br /&gt;
void lsPrintln(const char *s)&lt;br /&gt;
Vec2 srImageSize(const char *fn)&lt;br /&gt;
void srMakeImage(const char *name, int x, int y, int w, int h)&lt;br /&gt;
Vec2 srFindImage(const char *fn, int tol)&lt;br /&gt;
void srShowImageDebug(const char *fn, float x, float y, float z, float scale)&lt;br /&gt;
Vec2 srFindImageInRange(const char *fn, int x0, int y0, int w, int h, int tol)&lt;br /&gt;
void srReadScreen()&lt;br /&gt;
void srClickMouse(int x, int y, bool bRightClick)&lt;br /&gt;
void srClickMouseNoMove(int x, int y, bool bRightClick)&lt;br /&gt;
void srDrag(int x0, int y0, int x1, int y1, bool rightClick)&lt;br /&gt;
void srSetMousePos(int x, int y)&lt;br /&gt;
int srReadPixel(int x, int y)&lt;br /&gt;
int srReadPixelFromBuffer(int x, int y)&lt;br /&gt;
void srMouseDown(int x, int y, bool rightClick)&lt;br /&gt;
void srMouseUp(int x, int y, bool rightClick)&lt;br /&gt;
void srSaveLastReadScreen(const char *fn)&lt;br /&gt;
Vec2 srMousePos()&lt;br /&gt;
bool lsShiftHeld()&lt;br /&gt;
bool lsAltHeld()&lt;br /&gt;
bool lsControlHeld()&lt;br /&gt;
void lsPlaySound(const char *sound)&lt;br /&gt;
int lsPrint(int x, int y, int z, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsFontShadow(int on)&lt;br /&gt;
int lsMessageBox(const char *title, const char *msg, int buttons)&lt;br /&gt;
int lsPrintWrapped(int x, int y, int z, int w, float xsc, float ysc, const char *color, const char *str)&lt;br /&gt;
void lsDisplaySystemSprite(int tile, int x, int y, int z, float w, float h, const char *color)&lt;br /&gt;
bool lsButtonText(int x, int y, int z, int w, const char *color, const char *txt)&lt;br /&gt;
bool lsCheckBox(int x, int y, int z, const char *color, const char *txt, bool value)&lt;br /&gt;
int lsDropdown(const char *key, int x, int y, int z, int w, int val)&lt;br /&gt;
void lsScrollAreaBegin(const char *key, int x, int y, int z, int w, int h)&lt;br /&gt;
void lsScrollAreaEnd(int h)&lt;br /&gt;
void lsSetCamera(float x0, float y0, float x1, float y1)&lt;br /&gt;
void lsDoFrame()&lt;br /&gt;
void lsTopmost(int value)&lt;br /&gt;
{bool done, selection} lsEditBox(const char *key, int x, int y, int z, int w, int h, float xsc, float ysc, const char *color, const char *def)&lt;br /&gt;
int lsGetTimer()&lt;br /&gt;
void lsShowScreengrab(const char *_color)&lt;br /&gt;
Vec2[] lsAnalyzePapyrus(int minsize, int maxsize, int debug, int relevant_radius)&lt;br /&gt;
Vec2[] lsAnalyzeSilt(int minsize, int maxsize, int debug, int relevant_radius)&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=26815</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=26815"/>
		<updated>2010-10-02T06:13:39Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* VeggieTales */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
[[VeggieTales Scripting Reference]]&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.57 - changed flax_seeds to be able to rip out beds upon finishing, and also able to repeat multiple times.  Added optional support for adding to a bonfire and eating carrots to wood.lua.&lt;br /&gt;
* v1.56 - added Fine Glass Rods/Pipes and Glass Blades to glass macro.  Fixed numpad input in text entries.  Added Kasiya's barley macro.&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
2010/09/23: Almelkehdes: As someone with advanced arthritis, I can't tell you how much I appreciate your work on those macros. Thank you Thank you!&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=24197</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=24197"/>
		<updated>2010-09-26T05:14:50Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Changelog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.57 - changed flax_seeds to be able to rip out beds upon finishing, and also able to repeat multiple times.  Added optional support for adding to a bonfire and eating carrots to wood.lua.&lt;br /&gt;
* v1.56 - added Fine Glass Rods/Pipes and Glass Blades to glass macro.  Fixed numpad input in text entries.  Added Kasiya's barley macro.&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
2010/09/23: Almelkehdes: As someone with advanced arthritis, I can't tell you how much I appreciate your work on those macros. Thank you Thank you!&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=24103</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=24103"/>
		<updated>2010-09-26T00:49:29Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.56 - added Fine Glass Rods/Pipes and Glass Blades to glass macro.  Fixed numpad input in text entries.  Added Kasiya's barley macro.&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
2010/09/23: Almelkehdes: As someone with advanced arthritis, I can't tell you how much I appreciate your work on those macros. Thank you Thank you!&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=18420</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=18420"/>
		<updated>2010-09-12T22:15:55Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Changelog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.56 - added Fine Glass Rods/Pipes and Glass Blades to glass macro.  Fixed numpad input in text entries.  Added Kasiya's barley macro.&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=17645</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=17645"/>
		<updated>2010-09-11T18:27:56Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.55 - fixed issue in 1.54 that was causing it to hang out while &amp;quot;refocusing&amp;quot; for most users&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=17300</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=17300"/>
		<updated>2010-09-10T23:52:16Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.  Some people reported problems with the new version, you can grab the old flax macros here: [[http://bigscreensmallgames.com/ATITD/v1.52/]]&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=16596</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=16596"/>
		<updated>2010-09-09T07:22:03Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Changelog */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[http://www.atitd.org/wiki/tale4/Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.54 - updated flax macros to be more resilient to client stalls, shouldn't skip over flax as often, got Silt macro working for T5, updated single_click_stat_mon to work at 3 different font sizes.&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=7321</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=7321"/>
		<updated>2010-08-18T05:32:43Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* T5 Info */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5 (feel free to add/modify this section):&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
* wood.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[http://www.atitd.org/wiki/tale4/Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/Macros/ChemHelper&amp;diff=6232</id>
		<title>User:Jimbly/Macros/ChemHelper</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/Macros/ChemHelper&amp;diff=6232"/>
		<updated>2010-08-15T20:46:38Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This has not been updated for T5.  Once T5 chemistry properties are discovered, if they behave similarly to in T4, it should be easy to paste them into this macro and let it work as a solver.&lt;br /&gt;
&lt;br /&gt;
== Jimbly's Chemistry Helper ==&lt;br /&gt;
&lt;br /&gt;
Note this isn't technically a ''macro'', since it does no automation, it's simply an interactive program to help you do chemistry more efficiently.&lt;br /&gt;
&lt;br /&gt;
=== Getting Started ===&lt;br /&gt;
&lt;br /&gt;
Recommended System Specification:&lt;br /&gt;
* Windows PC Required&lt;br /&gt;
* 1gb of RAM (will work with less than this, but may be very slow)&lt;br /&gt;
* Dual-Core CPU (helps greatly if running this and ATITD at the same time)&lt;br /&gt;
&lt;br /&gt;
You understand the basics of [[Chemistry]], have a [[Chemistry Laboratory]], know how to make Essences, and know what your lab's requirements are for making a specific kind of compound.  My helper will (relatively) quickly find all possible recipes that will satisfy those requirements and present them to you in a useful way, including details on how many if which kind of spirits are required to process them.&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
Download and install VeggieTales from [[http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe here]].&lt;br /&gt;
&lt;br /&gt;
From now on, on the main page it will include a download link if I have released a new version.  Downloading and installing a new version is quick, so I recommend you do it whenever there is a new version.&lt;br /&gt;
&lt;br /&gt;
Now, run ''VeggieTales'', select ''LUA Scripts'', and ''chem_helper.lua''.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
You will be presented with a screen where you can select the compound type you're trying to make and you can enter your lab's requirements.&lt;br /&gt;
&lt;br /&gt;
[[Image:ChemHelper1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Then, click ''Solve'' and after a short while (takes longer with the &amp;quot;easier&amp;quot; recipes because it finds hundreds of thousands of possible solutions - this may only work well for Thoth, Osiris and Ra currently).  If it finds recipes, it displays a list of possible ingredients in the list on the left.&lt;br /&gt;
&lt;br /&gt;
[[Image:ChemHelper2.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on an ingredient you prefer to use, and it will narrow down the list to include only those that match with the ingredient you selected (the number in parenthesis is how many remaining recipes include that ingredient, so you will have more flexibility later if you start by choosing ones with a large number of possible recipes).&lt;br /&gt;
&lt;br /&gt;
As you select ingredients, they are placed in the list on the right, including information on what spirits are required to process them.  To deselect an ingredient, simply click it in the list on the right.&lt;br /&gt;
&lt;br /&gt;
[[Image:ChemHelper3.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once you have 5 ingredients selected, go to work, make that compound!&lt;br /&gt;
&lt;br /&gt;
Sometimes, when certain ingredients are required in ''all'' recipes, they are automatically added to the list and cannot be removed.&lt;br /&gt;
&lt;br /&gt;
When exiting the program, it is much quicker to simply close the window than to return to the main menu first (due to the way LUA scripts are run/cleaned up).&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=6230</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=6230"/>
		<updated>2010-08-15T20:45:11Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* T5 Info */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[http://www.atitd.org/wiki/tale4/Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=6228</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=6228"/>
		<updated>2010-08-15T20:44:32Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
I got too addicted to ATITD last telling, so this telling I'm only logging in one or two days a week, and focusing on my macros and not advancing within the game, since I enjoyed the writing of macros as much or more than actually &amp;quot;playing&amp;quot; the game.  If you do have any questions or comments about these, [[User:Jimbly/contact|contact me]].  Really, please do. I love to chat and am on IM much more often than I am in-game.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds, requires &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[http://www.atitd.org/wiki/tale4/Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=5738</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=5738"/>
		<updated>2010-08-14T22:05:16Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* T5 Info */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds, requires &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
&lt;br /&gt;
This is not one of my macros, but for gathering slate/grass/etc, I recommend this macro from last telling (requires AutoHotKey): [[http://www.atitd.org/wiki/tale4/Macros/Iggys/Gather]]&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=5666</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=5666"/>
		<updated>2010-08-14T20:07:12Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* T5 Info */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds, requires &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;br /&gt;
&lt;br /&gt;
* v1.53 - updated flax macros to not care if you have &amp;quot;make all planted crops guild owned&amp;quot;&lt;br /&gt;
* v1.52 - updated flax macros to work with any kind of flax (repeatedly does whatever option becomes present on the flax window), added easily configurable grid size and number of passes&lt;br /&gt;
* v1.5 - First T5 release&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=5663</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=5663"/>
		<updated>2010-08-14T19:59:13Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* VeggieTales */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
Some people have reported needing to run as administrator for these macros to work.&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds, requires &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=4547</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=4547"/>
		<updated>2010-08-13T05:27:24Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds, requires &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=4546</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=4546"/>
		<updated>2010-08-13T05:26:34Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* single_click_stat_mon.lua */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds, requires &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.  Great for all sorts of repetitive tasks - limestone, digging, etc.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=4545</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=4545"/>
		<updated>2010-08-13T05:26:03Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* T5 Info */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds, requires &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
* single_click_stat_mon.lua&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=4019</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=4019"/>
		<updated>2010-08-12T06:48:51Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* T5 Info */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (now works with either Old Egypt or Green Nile seeds, requires &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3969</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3969"/>
		<updated>2010-08-12T04:53:14Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* T5 Info */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua and flax_seeds.lua (expects Old Egypt seeds, may require &amp;quot;make all plants guild owned&amp;quot; option disabled)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3967</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3967"/>
		<updated>2010-08-12T04:48:40Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* VeggieTales */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available via SVN access [[User:Jimbly/Contact|upon request]].&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua (expects Old Egypt seeds)&lt;br /&gt;
* flax_seeds.lua (expects Old Egypt seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3966</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3966"/>
		<updated>2010-08-12T04:47:54Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* VeggieTales */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available here: svn://bigscreensmallgames.com/src/ (requires an SVN client such as http://TortoiseSVN.net)&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua (expects Old Egypt seeds)&lt;br /&gt;
* flax_seeds.lua (expects Old Egypt seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3965</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3965"/>
		<updated>2010-08-12T04:46:47Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
Source code is available here: svn://bigscreensmallgames.com/src/&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua (expects Old Egypt seeds)&lt;br /&gt;
* flax_seeds.lua (expects Old Egypt seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3964</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3964"/>
		<updated>2010-08-12T04:46:07Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
General usage info - to come!&lt;br /&gt;
&lt;br /&gt;
= T5 Info =&lt;br /&gt;
&lt;br /&gt;
The following macros have been tested/verified good for T5:&lt;br /&gt;
&lt;br /&gt;
* flax.lua (expects Old Egypt seeds)&lt;br /&gt;
* flax_seeds.lua (expects Old Egypt seeds)&lt;br /&gt;
* mining_t5.lua&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= T4 Macros =&lt;br /&gt;
&lt;br /&gt;
These are not tested yet on T5, but may work as is, or may need some tweaking.&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 5x5 arrays of Old Egypt flax (requires exactly two weedings, no watering).  Macro and image could be modified to handle other configurations.  If you have more DEX, you can probably do 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3896</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3896"/>
		<updated>2010-08-12T03:13:31Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* flax.lua */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
General usage info - to come!&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 6x6 arrays of Tedra #660 flax (requires exactly one weeding, no watering).  Macro and image could be modified to handle other configurations.  Edit the script if you cannot handle a 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
If you can carry 2500 (3 STR and 3 DEX and 1000 base), then grab 216 flax seeds, have it run 6 passes, sit back for a few minutes and you'll have 2160 flax.&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3260</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3260"/>
		<updated>2010-08-11T05:22:09Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Notes on Specific Macros */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
General usage info - to come!&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 6x6 arrays of Tedra #660 flax (requires exactly one weeding, no watering).  Macro and image could be modified to handle other configurations.  Edit the script if you cannot handle a 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
If you can carry 2500 (3 STR and 3 DEX and 1000 base), then grab 216 flax seeds, have it run 6 passes, come back in a few minutes and you'll have 2160 flax.&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== mining_t5.lua ===&lt;br /&gt;
&lt;br /&gt;
Not automation, but just a solver.  Enter the information about your ore stones, and it will determine all valid sets.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/AutomaticThistles&amp;diff=3259</id>
		<title>User:Jimbly/AutomaticThistles</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/AutomaticThistles&amp;diff=3259"/>
		<updated>2010-08-11T05:19:59Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: /* Install VeggieTales */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not yet verified for T5.&lt;br /&gt;
&lt;br /&gt;
Below is the process I would recommend for starting to make thistles:&lt;br /&gt;
&lt;br /&gt;
== Prerequisite: Understand the basics ==&lt;br /&gt;
Using the information on the [[Thistle]] page and related guides, you should:&lt;br /&gt;
# Understand Thistle types (e.g. A-B-C+F~N~P+T+) and Thistle requirements (e.g. A-C+N~P+)&lt;br /&gt;
# Be able to use ThistleSim.xls to simulate a recipe and see the results&lt;br /&gt;
# Generate a simple recipe (try to make anything other than A-B-C-F-N-P-T-) and run it by hand on a single [[Thistle Garden]]&lt;br /&gt;
# Understand what a &amp;quot;void&amp;quot; is (a rule that is not active for an in-game week (~2.5 real days)&lt;br /&gt;
# Be confused as to how anyone makes all of their complicated recipes by hand (optional)&lt;br /&gt;
&lt;br /&gt;
In order to be most productive, I would also expect you to have access to:&lt;br /&gt;
# Multiple [[Silkworm Farm|Silkworm Farms]] (I am generally tracking 10-20, only a subset of these have requirements that can be made any given week), though this approach will work even if you have just 1 or 2.&lt;br /&gt;
# Around 20 [[Thistle Garden|Thistle Gardens]] (there are numerous public arrays of Thistle Gardens you can use, you shouldn't need to build these yourself).&lt;br /&gt;
&lt;br /&gt;
== Install VeggieTales ==&lt;br /&gt;
Download and install VeggieTales from [[Jimbly's Macros]].  ''VeggieTales'' is my macroing program, with some other fun tools (like the Thistle Recipe Generator) built in as well.  Currently this is on Windows only, but I can provide almost-portable source code for anyone who is interested in helping port it to Linux/MacOS, just [[User:Jimbly/Contact|ask]].&lt;br /&gt;
&lt;br /&gt;
== Enter your requirements ==&lt;br /&gt;
Open up ''config_thistle.txt'' (in the VeggieTales installation directory), and you will find a list of desired requirements.  You should remove the existing ones in there (they are probably whatever I was looking for when I last made a build), and replace them with your own.  You can have blocks of requirements with different labels to make the output easier to read, e.g.:&lt;br /&gt;
 desired &amp;quot;label:My farms&amp;quot;&lt;br /&gt;
 desired A+B+C+F+&lt;br /&gt;
 desired B-C+F+T~&lt;br /&gt;
 desired &amp;quot;label:Guild farms&amp;quot;&lt;br /&gt;
 desired C-F+N~T+&lt;br /&gt;
&lt;br /&gt;
== Generate no-void recipe(s) ==&lt;br /&gt;
&lt;br /&gt;
Near the top of thistle_config.txt there will be a bunch of lines indicating each of the rules and whether they are on or off.  Change all of these to &amp;quot;1&amp;quot; to enable the rules.  Then, launch ''VeggieTales'', and click ''Thistle Mode''.  This will churn away for a while, and after 40 ticks will have written out a history.txt file containing any recipes found (with no voids, it will find recipes for most requirements).&lt;br /&gt;
&lt;br /&gt;
Open history.txt, and scroll down to the bottom, and find a requirement you're looking for, there will be a line like:&lt;br /&gt;
 Best for A+B+C+F+: 1000/17 (D)&lt;br /&gt;
The two numbers are how many actions (water in this case) must be done to run this recipe, one number being how many if it's run at night, the other during the day, with ''1000'' indicating it did not find a recipe.  In this case, this recipe can only be run during the day (also indicated by the ''(D)'').&lt;br /&gt;
&lt;br /&gt;
Search upwards in the file for the previous occurrence of your requirement, and it will be the best recipe it wrote out (it may have written multiple, and if there is one for each day and night, then search to find one which has an appropriate sun value).&lt;br /&gt;
&lt;br /&gt;
== Reading the recipes ==&lt;br /&gt;
&lt;br /&gt;
The first of what is in history.txt is a full history of every action that was done and the state at each tick, which is mostly useful only when debugging a broken recipe.  Below that is a bunch of lines like:&lt;br /&gt;
 0,0,1,0,33&lt;br /&gt;
 0,0,0,0,33&lt;br /&gt;
 0,0,0,2,99&lt;br /&gt;
 0,0,1,0,99&lt;br /&gt;
These are the actual recipe.  The can be copy and pasted directly into ThistleSim (the 41 lines and 5 columns for inputs), and also into a macro to run the recipe.&lt;br /&gt;
&lt;br /&gt;
== Verify your recipe ==&lt;br /&gt;
&lt;br /&gt;
Copy the recipe into ThistleSim and make sure the output is what you'd expect (note that ThistleSim might erroneously say the final result is a &amp;quot;-&amp;quot; when it's really a &amp;quot;~&amp;quot; if a value is in the range of 20.01-22).  Leave ThistleSim open (on another monitor or another computer is best!) for comparison to what actually happens in game.&lt;br /&gt;
&lt;br /&gt;
== Run a recipe via macro ==&lt;br /&gt;
&lt;br /&gt;
Now you want to actually run your recipe on a thistle garden!  If the recipe is cheap (only sun/water, which they should be if you've been following this tutorial so far), you may want to run it on multiple thistle gardens (though if something goes wrong and you need to abort them all, that can be annoying).  I generally just run 1 or 2 thistle gardens when testing a new recipe.&lt;br /&gt;
&lt;br /&gt;
Open luaScripts/thistle_custom.lua in any text editor.  Near the top are a few values to change, specifically the number of gardens you have open, the current sun value on those gardens (if it's night, set it to 0, if it's daytime and the lid is open, set it to 99, if it's daytime and it's closed, set it to 33 - all gardens must be in the same state), and the instructions to run the recipe.  Paste the recipe over the one that already exists in the macro.&lt;br /&gt;
&lt;br /&gt;
To run the macro, you need to open and pin some number of thistle gardens, make sure they are either not overlapping, or overlapping such that you can still see the buttons to add H2O/Oxy/etc regardless of which window is in the front.  The easiest is to just not have them overlapping if you do not understand (hopefully screenshots coming soon).  Then, fire up ''VeggieTales'', choose ''LUA Scripts'', thistle_custom.lua, and enter the number of passes to run (start with just 1 if testing voids).  As directed in the program, click on the ATITD window to put it in focus, and press Shift, and the macro will start running.&lt;br /&gt;
&lt;br /&gt;
This macro (like all of mine) only use mouse clicks which means that while the macro is running, you can freely chat within ATITD by typing and using F9/F10 to switch between tabs.&lt;br /&gt;
&lt;br /&gt;
== Determine voids ==&lt;br /&gt;
If someone else has already determined the voids for this week, you can simply jump ahead and enter the voids into the config file.  Generally those who determine the thistle voids place the information in their info text.  Try /info Jimbly or /info Ephemere to see if we have the voids for this week.&lt;br /&gt;
&lt;br /&gt;
When you are watching your recipe run, compare the results happening in-game with the results you see in ThistleSim.  If you don't have two computers side-by-side, you may want to save screenshots every 8 ticks or so.  If there is a tick in which the results differ, you need to determine which rule, when voided, would cause that result.  The way I do this is to go down the list of rules, and try turning each one off and then back on.  Generally, one of 3 things will happen:&lt;br /&gt;
# Nothing will change, or only later ticks will change - we gain no information about this rule&lt;br /&gt;
# One of the earlier ticks will change - we now know this rule ''must'' be active, flag it (I just put a comment in the column to the right of the rule), and you know you don't need to test it later&lt;br /&gt;
# The tick which differed will change to be what you see in-game - we now know this rule must be voided.&lt;br /&gt;
It's possible that no single rule will get the result you saw in-game, in which case it might be a pair of 2 rules voided, both active on the same tick, causing the result.  By looking at what actual vitamins differ, and what rules cause/create them, you should be able to logic out what pair of rules it is, but this is less common.&lt;br /&gt;
&lt;br /&gt;
Repeat this process until the results in ThistleSim look exactly like what happened in game.&lt;br /&gt;
&lt;br /&gt;
If the results were identical, you have found all of the voids (or, at least, the ones which will affect your current recipe), move on to making them in bulk!&lt;br /&gt;
&lt;br /&gt;
== Enter voids and generate recipe(s) again ==&lt;br /&gt;
Chances are, if you found a new void, your recipe did not make the thistles you were looking for.  Enter the voids into config_thistle.txt (there should be a '''0''' next to each rule with is voided, '''1''' next to each which is active, just like in ThistleSim), and generate recipes again.&lt;br /&gt;
&lt;br /&gt;
== Run recipe in bulk via macro ==&lt;br /&gt;
&lt;br /&gt;
Now, you have a recipe that works, and you've run it in a macro on a couple gardens, you want to run it on lots of gardens at once!&lt;br /&gt;
&lt;br /&gt;
First, open and pin a bunch of garden windows.  The macro window_opener.lua will help with this.  Turn ON the ATITD Option ''Right Click opens menu as pinned'' under Options | Interface before running this macro.  Then if you have a grid of thistle gardens, in just seconds it can open pinned menus for every one of them.&lt;br /&gt;
&lt;br /&gt;
Next, arrange them to make the macro happy.  The macro window_arranger.lua will help with this, though you can also do it by hand.  For thistle_custom.lua, you will need to edit window_arranger.lua to use dy = 190, and num_high = somewhere between 3 and 5 depending on your resolution.  Changing the line ''if nil then'' to ''if 1 then'' should take care of this.&lt;br /&gt;
&lt;br /&gt;
'''''[optional]''''' The other option is to use a new macro I'm actively testing, thistle_new.lua, which can handle many more gardens, but is more susceptible to lag issues (I can run around 32 thistle gardens simultaneously reasonably reliably).  For this macro, the window positions are much more finicky, so you must arrange them with window_arranger.lua (just need to edit num_high to an appropriate number for your screen, 33 high should fit at 1920x1200).  Only one row of cascaded windows is currently supported, so close any extra windows that didn't get lined up in the one cascaded row.&lt;br /&gt;
&lt;br /&gt;
Now, edit thistle_custom.lua again to make sure it has the right number of gardens, and has the current state of the sun for all of your gardens, and then run it to your hearts content!&lt;br /&gt;
&lt;br /&gt;
== Profit ==&lt;br /&gt;
(but not too much, help out your neighbors as well, please)&lt;br /&gt;
&lt;br /&gt;
== Unsticking farms with &amp;quot;expensive&amp;quot; recipes ==&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/Contact&amp;diff=3258</id>
		<title>User:Jimbly/Contact</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/Contact&amp;diff=3258"/>
		<updated>2010-08-11T05:19:25Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: Created page with &amp;quot;Please contact me over IM at any time!  * ATITD: Jimbly * Trillian Astra: Jimbly * ICQ: 435337 * AIM: Wasteland777 * MSN: wastelnd@hotmail.com * Yahoo! Messenger: Wasteland7 * Go...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please contact me over IM at any time!&lt;br /&gt;
&lt;br /&gt;
* ATITD: Jimbly&lt;br /&gt;
* Trillian Astra: Jimbly&lt;br /&gt;
* ICQ: 435337&lt;br /&gt;
* AIM: Wasteland777&lt;br /&gt;
* MSN: wastelnd@hotmail.com&lt;br /&gt;
* Yahoo! Messenger: Wasteland7&lt;br /&gt;
* Google Talk: Wasteland@gmail.com&lt;br /&gt;
&lt;br /&gt;
(note: the emails above are purely used for IM, I do not check those email accounts).&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly&amp;diff=3257</id>
		<title>User:Jimbly</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly&amp;diff=3257"/>
		<updated>2010-08-11T05:19:11Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I will not be playing much this tale, but I'll still be supporting my macros and macroing system.&lt;br /&gt;
&lt;br /&gt;
[[Jimbly's Macros]]&lt;br /&gt;
&lt;br /&gt;
[[User:Jimbly/Contact]]&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly&amp;diff=3256</id>
		<title>User:Jimbly</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly&amp;diff=3256"/>
		<updated>2010-08-11T05:19:04Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I will not be playing much this tale, but I'll still be supporting my macros and macroing system.&lt;br /&gt;
&lt;br /&gt;
[[Jimbly's Macros]]&lt;br /&gt;
[[User:Jimbly/Contact]]&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=File:ChemHelper3.jpg&amp;diff=3255</id>
		<title>File:ChemHelper3.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=File:ChemHelper3.jpg&amp;diff=3255"/>
		<updated>2010-08-11T05:18:02Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=File:ChemHelper2.jpg&amp;diff=3254</id>
		<title>File:ChemHelper2.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=File:ChemHelper2.jpg&amp;diff=3254"/>
		<updated>2010-08-11T05:17:54Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=File:ChemHelper1.jpg&amp;diff=3253</id>
		<title>File:ChemHelper1.jpg</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=File:ChemHelper1.jpg&amp;diff=3253"/>
		<updated>2010-08-11T05:17:42Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/Macros/ChemHelper&amp;diff=3251</id>
		<title>User:Jimbly/Macros/ChemHelper</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/Macros/ChemHelper&amp;diff=3251"/>
		<updated>2010-08-11T05:16:12Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: Created page with &amp;quot;This has not been updated for T5.  Once T5 chemistry properties are discovered, it should be easy to paste them into this macro and let it work as a solver.  == Jimbly's Chemistr...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This has not been updated for T5.  Once T5 chemistry properties are discovered, it should be easy to paste them into this macro and let it work as a solver.&lt;br /&gt;
&lt;br /&gt;
== Jimbly's Chemistry Helper ==&lt;br /&gt;
&lt;br /&gt;
Note this isn't technically a ''macro'', since it does no automation, it's simply an interactive program to help you do chemistry more efficiently.&lt;br /&gt;
&lt;br /&gt;
=== Getting Started ===&lt;br /&gt;
&lt;br /&gt;
Recommended System Specification:&lt;br /&gt;
* Windows PC Required&lt;br /&gt;
* 1gb of RAM (will work with less than this, but may be very slow)&lt;br /&gt;
* Dual-Core CPU (helps greatly if running this and ATITD at the same time)&lt;br /&gt;
&lt;br /&gt;
You understand the basics of [[Chemistry]], have a [[Chemistry Laboratory]], know how to make Essences, and know what your lab's requirements are for making a specific kind of compound.  My helper will (relatively) quickly find all possible recipes that will satisfy those requirements and present them to you in a useful way, including details on how many if which kind of spirits are required to process them.&lt;br /&gt;
&lt;br /&gt;
=== Installation ===&lt;br /&gt;
&lt;br /&gt;
Download and install VeggieTales from [[http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe here]].&lt;br /&gt;
&lt;br /&gt;
From now on, on the main page it will include a download link if I have released a new version.  Downloading and installing a new version is quick, so I recommend you do it whenever there is a new version.&lt;br /&gt;
&lt;br /&gt;
Now, run ''VeggieTales'', select ''LUA Scripts'', and ''chem_helper.lua''.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
&lt;br /&gt;
You will be presented with a screen where you can select the compound type you're trying to make and you can enter your lab's requirements.&lt;br /&gt;
&lt;br /&gt;
[[Image:ChemHelper1.jpg]]&lt;br /&gt;
&lt;br /&gt;
Then, click ''Solve'' and after a short while (takes longer with the &amp;quot;easier&amp;quot; recipes because it finds hundreds of thousands of possible solutions - this may only work well for Thoth, Osiris and Ra currently).  If it finds recipes, it displays a list of possible ingredients in the list on the left.&lt;br /&gt;
&lt;br /&gt;
[[Image:ChemHelper2.jpg]]&lt;br /&gt;
&lt;br /&gt;
Click on an ingredient you prefer to use, and it will narrow down the list to include only those that match with the ingredient you selected (the number in parenthesis is how many remaining recipes include that ingredient, so you will have more flexibility later if you start by choosing ones with a large number of possible recipes).&lt;br /&gt;
&lt;br /&gt;
As you select ingredients, they are placed in the list on the right, including information on what spirits are required to process them.  To deselect an ingredient, simply click it in the list on the right.&lt;br /&gt;
&lt;br /&gt;
[[Image:ChemHelper3.jpg]]&lt;br /&gt;
&lt;br /&gt;
Once you have 5 ingredients selected, go to work, make that compound!&lt;br /&gt;
&lt;br /&gt;
Sometimes, when certain ingredients are required in ''all'' recipes, they are automatically added to the list and cannot be removed.&lt;br /&gt;
&lt;br /&gt;
When exiting the program, it is much quicker to simply close the window than to return to the main menu first (due to the way LUA scripts are run/cleaned up).&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/AutomaticThistles&amp;diff=3249</id>
		<title>User:Jimbly/AutomaticThistles</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/AutomaticThistles&amp;diff=3249"/>
		<updated>2010-08-11T05:14:58Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: Created page with &amp;quot;Not yet verified for T5.  Below is the process I would recommend for starting to make thistles:  == Prerequisite: Understand the basics == Using the information on the [[Thistle]...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Not yet verified for T5.&lt;br /&gt;
&lt;br /&gt;
Below is the process I would recommend for starting to make thistles:&lt;br /&gt;
&lt;br /&gt;
== Prerequisite: Understand the basics ==&lt;br /&gt;
Using the information on the [[Thistle]] page and related guides, you should:&lt;br /&gt;
# Understand Thistle types (e.g. A-B-C+F~N~P+T+) and Thistle requirements (e.g. A-C+N~P+)&lt;br /&gt;
# Be able to use ThistleSim.xls to simulate a recipe and see the results&lt;br /&gt;
# Generate a simple recipe (try to make anything other than A-B-C-F-N-P-T-) and run it by hand on a single [[Thistle Garden]]&lt;br /&gt;
# Understand what a &amp;quot;void&amp;quot; is (a rule that is not active for an in-game week (~2.5 real days)&lt;br /&gt;
# Be confused as to how anyone makes all of their complicated recipes by hand (optional)&lt;br /&gt;
&lt;br /&gt;
In order to be most productive, I would also expect you to have access to:&lt;br /&gt;
# Multiple [[Silkworm Farm|Silkworm Farms]] (I am generally tracking 10-20, only a subset of these have requirements that can be made any given week), though this approach will work even if you have just 1 or 2.&lt;br /&gt;
# Around 20 [[Thistle Garden|Thistle Gardens]] (there are numerous public arrays of Thistle Gardens you can use, you shouldn't need to build these yourself).&lt;br /&gt;
&lt;br /&gt;
== Install VeggieTales ==&lt;br /&gt;
Download and install VeggieTales from [[User:Jimbly/Macros|here]].  ''VeggieTales'' is my macroing program, with some other fun tools (like the Thistle Recipe Generator) built in as well.  Currently this is on Windows only, but I can provide almost-portable source code for anyone who is interested in helping port it to Linux/MacOS, just [[User:Jimbly/Contact|ask]].&lt;br /&gt;
&lt;br /&gt;
== Enter your requirements ==&lt;br /&gt;
Open up ''config_thistle.txt'' (in the VeggieTales installation directory), and you will find a list of desired requirements.  You should remove the existing ones in there (they are probably whatever I was looking for when I last made a build), and replace them with your own.  You can have blocks of requirements with different labels to make the output easier to read, e.g.:&lt;br /&gt;
 desired &amp;quot;label:My farms&amp;quot;&lt;br /&gt;
 desired A+B+C+F+&lt;br /&gt;
 desired B-C+F+T~&lt;br /&gt;
 desired &amp;quot;label:Guild farms&amp;quot;&lt;br /&gt;
 desired C-F+N~T+&lt;br /&gt;
&lt;br /&gt;
== Generate no-void recipe(s) ==&lt;br /&gt;
&lt;br /&gt;
Near the top of thistle_config.txt there will be a bunch of lines indicating each of the rules and whether they are on or off.  Change all of these to &amp;quot;1&amp;quot; to enable the rules.  Then, launch ''VeggieTales'', and click ''Thistle Mode''.  This will churn away for a while, and after 40 ticks will have written out a history.txt file containing any recipes found (with no voids, it will find recipes for most requirements).&lt;br /&gt;
&lt;br /&gt;
Open history.txt, and scroll down to the bottom, and find a requirement you're looking for, there will be a line like:&lt;br /&gt;
 Best for A+B+C+F+: 1000/17 (D)&lt;br /&gt;
The two numbers are how many actions (water in this case) must be done to run this recipe, one number being how many if it's run at night, the other during the day, with ''1000'' indicating it did not find a recipe.  In this case, this recipe can only be run during the day (also indicated by the ''(D)'').&lt;br /&gt;
&lt;br /&gt;
Search upwards in the file for the previous occurrence of your requirement, and it will be the best recipe it wrote out (it may have written multiple, and if there is one for each day and night, then search to find one which has an appropriate sun value).&lt;br /&gt;
&lt;br /&gt;
== Reading the recipes ==&lt;br /&gt;
&lt;br /&gt;
The first of what is in history.txt is a full history of every action that was done and the state at each tick, which is mostly useful only when debugging a broken recipe.  Below that is a bunch of lines like:&lt;br /&gt;
 0,0,1,0,33&lt;br /&gt;
 0,0,0,0,33&lt;br /&gt;
 0,0,0,2,99&lt;br /&gt;
 0,0,1,0,99&lt;br /&gt;
These are the actual recipe.  The can be copy and pasted directly into ThistleSim (the 41 lines and 5 columns for inputs), and also into a macro to run the recipe.&lt;br /&gt;
&lt;br /&gt;
== Verify your recipe ==&lt;br /&gt;
&lt;br /&gt;
Copy the recipe into ThistleSim and make sure the output is what you'd expect (note that ThistleSim might erroneously say the final result is a &amp;quot;-&amp;quot; when it's really a &amp;quot;~&amp;quot; if a value is in the range of 20.01-22).  Leave ThistleSim open (on another monitor or another computer is best!) for comparison to what actually happens in game.&lt;br /&gt;
&lt;br /&gt;
== Run a recipe via macro ==&lt;br /&gt;
&lt;br /&gt;
Now you want to actually run your recipe on a thistle garden!  If the recipe is cheap (only sun/water, which they should be if you've been following this tutorial so far), you may want to run it on multiple thistle gardens (though if something goes wrong and you need to abort them all, that can be annoying).  I generally just run 1 or 2 thistle gardens when testing a new recipe.&lt;br /&gt;
&lt;br /&gt;
Open luaScripts/thistle_custom.lua in any text editor.  Near the top are a few values to change, specifically the number of gardens you have open, the current sun value on those gardens (if it's night, set it to 0, if it's daytime and the lid is open, set it to 99, if it's daytime and it's closed, set it to 33 - all gardens must be in the same state), and the instructions to run the recipe.  Paste the recipe over the one that already exists in the macro.&lt;br /&gt;
&lt;br /&gt;
To run the macro, you need to open and pin some number of thistle gardens, make sure they are either not overlapping, or overlapping such that you can still see the buttons to add H2O/Oxy/etc regardless of which window is in the front.  The easiest is to just not have them overlapping if you do not understand (hopefully screenshots coming soon).  Then, fire up ''VeggieTales'', choose ''LUA Scripts'', thistle_custom.lua, and enter the number of passes to run (start with just 1 if testing voids).  As directed in the program, click on the ATITD window to put it in focus, and press Shift, and the macro will start running.&lt;br /&gt;
&lt;br /&gt;
This macro (like all of mine) only use mouse clicks which means that while the macro is running, you can freely chat within ATITD by typing and using F9/F10 to switch between tabs.&lt;br /&gt;
&lt;br /&gt;
== Determine voids ==&lt;br /&gt;
If someone else has already determined the voids for this week, you can simply jump ahead and enter the voids into the config file.  Generally those who determine the thistle voids place the information in their info text.  Try /info Jimbly or /info Ephemere to see if we have the voids for this week.&lt;br /&gt;
&lt;br /&gt;
When you are watching your recipe run, compare the results happening in-game with the results you see in ThistleSim.  If you don't have two computers side-by-side, you may want to save screenshots every 8 ticks or so.  If there is a tick in which the results differ, you need to determine which rule, when voided, would cause that result.  The way I do this is to go down the list of rules, and try turning each one off and then back on.  Generally, one of 3 things will happen:&lt;br /&gt;
# Nothing will change, or only later ticks will change - we gain no information about this rule&lt;br /&gt;
# One of the earlier ticks will change - we now know this rule ''must'' be active, flag it (I just put a comment in the column to the right of the rule), and you know you don't need to test it later&lt;br /&gt;
# The tick which differed will change to be what you see in-game - we now know this rule must be voided.&lt;br /&gt;
It's possible that no single rule will get the result you saw in-game, in which case it might be a pair of 2 rules voided, both active on the same tick, causing the result.  By looking at what actual vitamins differ, and what rules cause/create them, you should be able to logic out what pair of rules it is, but this is less common.&lt;br /&gt;
&lt;br /&gt;
Repeat this process until the results in ThistleSim look exactly like what happened in game.&lt;br /&gt;
&lt;br /&gt;
If the results were identical, you have found all of the voids (or, at least, the ones which will affect your current recipe), move on to making them in bulk!&lt;br /&gt;
&lt;br /&gt;
== Enter voids and generate recipe(s) again ==&lt;br /&gt;
Chances are, if you found a new void, your recipe did not make the thistles you were looking for.  Enter the voids into config_thistle.txt (there should be a '''0''' next to each rule with is voided, '''1''' next to each which is active, just like in ThistleSim), and generate recipes again.&lt;br /&gt;
&lt;br /&gt;
== Run recipe in bulk via macro ==&lt;br /&gt;
&lt;br /&gt;
Now, you have a recipe that works, and you've run it in a macro on a couple gardens, you want to run it on lots of gardens at once!&lt;br /&gt;
&lt;br /&gt;
First, open and pin a bunch of garden windows.  The macro window_opener.lua will help with this.  Turn ON the ATITD Option ''Right Click opens menu as pinned'' under Options | Interface before running this macro.  Then if you have a grid of thistle gardens, in just seconds it can open pinned menus for every one of them.&lt;br /&gt;
&lt;br /&gt;
Next, arrange them to make the macro happy.  The macro window_arranger.lua will help with this, though you can also do it by hand.  For thistle_custom.lua, you will need to edit window_arranger.lua to use dy = 190, and num_high = somewhere between 3 and 5 depending on your resolution.  Changing the line ''if nil then'' to ''if 1 then'' should take care of this.&lt;br /&gt;
&lt;br /&gt;
'''''[optional]''''' The other option is to use a new macro I'm actively testing, thistle_new.lua, which can handle many more gardens, but is more susceptible to lag issues (I can run around 32 thistle gardens simultaneously reasonably reliably).  For this macro, the window positions are much more finicky, so you must arrange them with window_arranger.lua (just need to edit num_high to an appropriate number for your screen, 33 high should fit at 1920x1200).  Only one row of cascaded windows is currently supported, so close any extra windows that didn't get lined up in the one cascaded row.&lt;br /&gt;
&lt;br /&gt;
Now, edit thistle_custom.lua again to make sure it has the right number of gardens, and has the current state of the sun for all of your gardens, and then run it to your hearts content!&lt;br /&gt;
&lt;br /&gt;
== Profit ==&lt;br /&gt;
(but not too much, help out your neighbors as well, please)&lt;br /&gt;
&lt;br /&gt;
== Unsticking farms with &amp;quot;expensive&amp;quot; recipes ==&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/contact&amp;diff=3248</id>
		<title>User:Jimbly/contact</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=User:Jimbly/contact&amp;diff=3248"/>
		<updated>2010-08-11T05:14:23Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: Created page with &amp;quot;Please contact me over IM at any time!  * ATITD: Jimbly * Trillian Astra: Jimbly * ICQ: 435337 * AIM: Wasteland777 * MSN: wastelnd@hotmail.com * Yahoo! Messenger: Wasteland7 * Go...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Please contact me over IM at any time!&lt;br /&gt;
&lt;br /&gt;
* ATITD: Jimbly&lt;br /&gt;
* Trillian Astra: Jimbly&lt;br /&gt;
* ICQ: 435337&lt;br /&gt;
* AIM: Wasteland777&lt;br /&gt;
* MSN: wastelnd@hotmail.com&lt;br /&gt;
* Yahoo! Messenger: Wasteland7&lt;br /&gt;
* Google Talk: Wasteland@gmail.com&lt;br /&gt;
&lt;br /&gt;
(note: the emails above are purely used for IM, I do not check those email accounts).&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3247</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3247"/>
		<updated>2010-08-11T05:13:32Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
These macros have not all been tested on T5.  Some (specifically the flags ones) definitely do not work.  [[User:Jimbly/contact|Contact me]] with any requests.&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
General usage info - to come!&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 6x6 arrays of Tedra #660 flax (requires exactly one weeding, no watering).  Macro and image could be modified to handle other configurations.  Edit the script if you cannot handle a 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
If you can carry 2500 (3 STR and 3 DEX and 1000 base), then grab 216 flax seeds, have it run 6 passes, come back in a few minutes and you'll have 2160 flax.&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
	<entry>
		<id>http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3245</id>
		<title>Jimbly's Macros</title>
		<link rel="alternate" type="text/html" href="http://www.atitd.org/wiki/t5w/index.php?title=Jimbly%27s_Macros&amp;diff=3245"/>
		<updated>2010-08-11T05:12:41Z</updated>

		<summary type="html">&lt;p&gt;Jimbly: Created page with &amp;quot;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-r...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;All of my macros and automation are written for VeggieTales - my LUA-based automation/macro engine.  I was fed up with issues with ACTool and AutoHotKey, so I did what any self-respecting engineer would do - re-invent the wheel!&lt;br /&gt;
&lt;br /&gt;
== VeggieTales ==&lt;br /&gt;
&lt;br /&gt;
Get it here: http://bigscreensmallgames.com/ATITD/VeggieTalesInstaller.exe&lt;br /&gt;
&lt;br /&gt;
LUA Reference: http://www.lua.org/manual/5.1/ (Ignore the C API section)&lt;br /&gt;
&lt;br /&gt;
General usage info - to come!&lt;br /&gt;
&lt;br /&gt;
== Notes on Specific Macros ==&lt;br /&gt;
&lt;br /&gt;
All of these are available by installing VeggieTales (above), this page just lists information on these macros.  Feel free to edit the descriptions to be more useful as needed (e.g. if you found that you needed to tweak some value to get it to work right, add that info here!).&lt;br /&gt;
&lt;br /&gt;
In general, all macros, when first started, will prompt you for some initial parameters and then ask you to put the ATITD window in focus, and then press shift (may need to hold for a moment).  You can also use this for other programs (or, for instance, have Photoshop open with a bunch of screenshots to toggle between, for testing purposes).&lt;br /&gt;
&lt;br /&gt;
Also, generally, a macro will cancel if it detects you are holding Ctrl+Shift, and pause with Alt+Shift (some may have slightly different behaviors, they should all indicate on-screen which keys will do what).&lt;br /&gt;
&lt;br /&gt;
Terms:&lt;br /&gt;
* '''''GhostMouse''''' - Mouse events are sent entirely without moving your cursor.  This means that:&lt;br /&gt;
** You can freely use your mouse cursor (the only exception being do not click and drag within ATITD, because the mouse will not release where you were expecting).&lt;br /&gt;
** ATITD does not need to be in the foreground.  You can have other programs/chat programs/web browser/etc active and open and in use while this macro is running.&lt;br /&gt;
** You ''do'' still need to have the ATITD window visible if the macro also requires '''ScreenScrape''' (e.g. for the quarry macro, at least the pinned quarry window and your Skills window need be visible.  If the macro does not require ScreenScrape, then you can have the ATITD window ''completely obscured'' and it will still work fine (e.g. wood macro after initial setup)!&lt;br /&gt;
** If the macro does *not* use GhostMouse, then you must not touch your mouse cursor at all while the macro is running (though you can pause and resume, which will work for most macros).&lt;br /&gt;
* '''''ScreenScrape''''' - Macro requires reading of the screen - make sure to keep the screen visible&lt;br /&gt;
&lt;br /&gt;
=== Thistle Mode ===&lt;br /&gt;
&lt;br /&gt;
Details found at [[User:Jimbly/AutomaticThistles]]&lt;br /&gt;
&lt;br /&gt;
=== Carrot Mode ===&lt;br /&gt;
&lt;br /&gt;
This will plant up to 4 carrots at a time, water them, and harvest them, while refilling your water jugs from a nearby, pinned aqueduct.  Currently some settings may need to be tweaked (apparently on some graphics cards the ATITD graphics render differently enough to throw off some of the image recognition), specifically the thresholds which determine whether a carrot patch has grown to the next size or not.  If the program is often over-watering, observe the sizes reported for the carrots at each stage, and update config.txt appropriately.  The sizes are the threshold it has to pass to be detected as the next size, so if an originally planted carrot is 75px, and when it grows it jumps up to 125px, you want the first size value set to around 100px (the middle between the two).&lt;br /&gt;
&lt;br /&gt;
If the program encounters a situation it cannot resolve (it knows how to clean up after itself in some cases, like over-watering ;), it will play a sound to alert you that your intervention is required.&lt;br /&gt;
&lt;br /&gt;
=== chem_helper.lua ===&lt;br /&gt;
&lt;br /&gt;
Choose your Compound Type (Ra, Osiris, etc), your requirements, click Solve!  Then, assemble your 5 ingredients, it shows a list of ingredients used in all recipes at the bottom, and assembles a list on the right side as you click on them to add them (each time filtering the list down to only those ingredients compatible with the ones you have already selected).&lt;br /&gt;
&lt;br /&gt;
Screenshots and more explanation at [[User:Jimbly/Macros/ChemHelper]]&lt;br /&gt;
&lt;br /&gt;
=== flax.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Must have ''Options|One-click|Enabled hotkeys on flax'' '''disabled'''.&lt;br /&gt;
&lt;br /&gt;
Flax macro specifically designed for planting 6x6 arrays of Tedra #660 flax (requires exactly one weeding, no watering).  Macro and image could be modified to handle other configurations.  Edit the script if you cannot handle a 6x6 grid of flax at once (probably need 3 Dexterity).&lt;br /&gt;
&lt;br /&gt;
If you can carry 2500 (3 STR and 3 DEX and 1000 base), then grab 216 flax seeds, have it run 6 passes, come back in a few minutes and you'll have 2160 flax.&lt;br /&gt;
&lt;br /&gt;
=== flax_seeds.lua ===&lt;br /&gt;
&lt;br /&gt;
Same as above, but for gathering seeds, not flax.&lt;br /&gt;
&lt;br /&gt;
=== multi_click.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Allows clicking of any number of identical buttons anywhere on your screen.  This has some preset buttons to look for (e.g. &amp;quot;This is&amp;quot; is great for clicking to refresh all pinned windows, or &amp;quot;unpin&amp;quot; to dismiss all pinned windows), but you can also define custom buttons to look for on the fly - choose &amp;quot;Custom&amp;quot;, and you will see a thumbnail of what part of the image it will search for (generally the first few letters of the text on the button is fine), and then after that you can click &amp;quot;Last custom&amp;quot; to search for and click all of these buttons again.&lt;br /&gt;
&lt;br /&gt;
Example usage: Open up 20 Carpentry Shop windows, pin them, make sure they don't overlap much.  Click &amp;quot;custom&amp;quot; and put the mouse over &amp;quot;plane a piece of wood&amp;quot;, select that (press shift as directed in the on-screen instructions), and it will plane 20 pieces of wood, then choose &amp;quot;ThisIs.png&amp;quot; to refresh all the windows, and then click &amp;quot;Last custom&amp;quot; again, and you'll plane another 20 pieces of wood.  Repeat to your heart's content!&lt;br /&gt;
&lt;br /&gt;
=== onions.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Grows 3x3 grids of onions, expects a ''fill jugs with water'' icon visible.&lt;br /&gt;
&lt;br /&gt;
=== quarry.lua - Automated Quarrying! ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Works for 2-4 people.  Not all people need to be running it (though ''much'' easier if they are!).  Uses the &amp;quot;alphabetical&amp;quot; method of choosing a direction to work.  Testing so far shows it can easily keep a high Endurance value constantly red on all workers, yielding about 1 marble/stone removed per minute at END of 22.&lt;br /&gt;
&lt;br /&gt;
You can run multiple copies of VeggieTales and multiple copies of this script on the same computer (tile your ATITD windows so they're both visible, launch two VeggieTales, start one of them at a time).&lt;br /&gt;
&lt;br /&gt;
If it gets stuck, someone can manually kick it back into action by intentionally tripping the quarry (just clicking the one your client should have clicked) and it should then recover.  This has only been needed once while testing.&lt;br /&gt;
&lt;br /&gt;
=== raeli_color_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Automatically saves a screenshot, with timestamp, every time a specified pixel changes color.  When first burning a [[Raeli Oven]], this will give you about 50-100 screenshots you can very quickly toggle through to get an accurate list of what colors are generated at what times.&lt;br /&gt;
&lt;br /&gt;
=== sand_mine.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Repeated works a sand mine, repairs it when needed, and continues (just have enough materials for as many repairs as you want to do).&lt;br /&gt;
&lt;br /&gt;
=== single_click_stat_mon.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse''''' '''''ScreenScrape'''''&lt;br /&gt;
&lt;br /&gt;
Clicks a single button over and over again as long as your stats are not red (monitors all stats).  You need to mouse over the specific button you wish to press when setting up this macro.&lt;br /&gt;
&lt;br /&gt;
=== timer.lua ===&lt;br /&gt;
&lt;br /&gt;
A simple timer that will play a sound every specified number of seconds (decimals are OK, e.g. 2.5 seconds)&lt;br /&gt;
&lt;br /&gt;
=== UITest.lua ===&lt;br /&gt;
&lt;br /&gt;
A couple examples of UI functions.&lt;br /&gt;
&lt;br /&gt;
=== wood.lua ===&lt;br /&gt;
&lt;br /&gt;
'''''GhostMouse'''''&lt;br /&gt;
&lt;br /&gt;
Repeatedly harvests wood from a set of trees.  Pin any number of tree windows (there are 9 Bottle Trees near the SA CS that work well), they can be anywhere on your screen, but the macro searches the screen top to bottom (but you can have multiple side by side as long as one is slightly lower than the one next to it, it will work right).  These windows need to be arranged so that clicking on them in order forms a &amp;quot;cycle&amp;quot;, you should be able to click on one, then the next, then the next, and you should be able to get from one tree to the next without having to move, and then back to the first again (after a minute to let the tree heal) (you may need to experiment with ordering them, since the way ATITD determines &amp;quot;This is too far away&amp;quot; is not exactly clear ;).&lt;br /&gt;
&lt;br /&gt;
This should be run '''without''' a hatchet and with high perception.  Hatchets do not improve the wood per tree per minute, since they increase the time it takes to regenerate, while only giving you one bonus from your perception.&lt;/div&gt;</summary>
		<author><name>Jimbly</name></author>
	</entry>
</feed>