Cannith Crafting/Batch sunder

AutoHotKey batch essence sundering script
Note: Since Update 24 it is now possible to specify how many essences to convert in the game user interface. This script is no longer necessary.

Firstly, I want to make note that using AutoHotKey scripts ONLY works with DDO in Window mode. If your game is in full screen mode, it will NOT work.

Secondly, this script is based on a screen resolution of 1280 × 800. This being the case, my calculations may be off for other screen resolutions. If this is the case, please tell the author so on his talk page and he would love to work out the details with you so that he can make the script more universal. Thank you.

1. Download the latest version of AutoHotKey from http://www.autohotkey.com/download/ (Windows Installer or Zip Archive)

2. Right-click an empty spot on your desktop or in a folder of your choice.

3. In the menu that appears, select New -> AutoHotkey Script. (Alternatively, select New -> Text Document.)

4. Type a name for the file, ensuring that it ends in .ahk. For example: Test.ahk

5. Right-click the file and choose Edit Script.

6. Copy and paste the following section into the file

SendMode Input ;			Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ;		Ensures a consistent starting directory. BoxTitle = Batch sunder essences Box1Title = What type of essence do you want to sunder? Box2Instructions = How many essences of this type would you like to sunder? X = 900 ;	You will have to adjust this number to the X coordinate of the center of your "Trade" button Y = 468 ;	You will have to adjust this number to the Y coordinate of the center of your "Trade" button BoxX := X - 275 ;	625	!!! DO NOT EDIT THIS LINE !!! BoxY := Y - 295 ;	173	!!! DO NOT EDIT THIS LINE !!! XX := X + 33 ;		933	!!! DO NOT EDIT THIS LINE !!! XY := Y - 345 ;		123	!!! DO NOT EDIT THIS LINE !!! IngX := X - 172 ;	728	!!! DO NOT EDIT THIS LINE !!! IngY := Y + 32 ;	500	!!! DO NOT EDIT THIS LINE !!! SearchX := X - 67 ;	833	!!! DO NOT EDIT THIS LINE !!! SearchY := Y - 345 ;	123	!!! DO NOT EDIT THIS LINE !!! SelectX := X ;		900	!!! DO NOT EDIT THIS LINE !!! SelectY := Y - 288 ;	180	!!! DO NOT EDIT THIS LINE !!! Default1 = Air ;		Set this to the default type of essences to sunder Default2 = 10 ;			Set this to the default number of essences to sunder InputBox, Type, %BoxTitle%, %Box1Instructions%,, 411, 249, %BoxX%, %BoxY%, , , %Default1% IfWinNotActive, Dungeons and Dragons Online {	WinActivate, Dungeons and Dragons Online } WinWaitActive, Dungeons and Dragons Online Sleep 1000 ;			Wait a second to make sure that DDO is foremost window Click, %XX%, %XY% ;		Clear the search box Sleep 1000 ;			Wait a second to make sure that search box is cleared Click, %IngX%, %IngY% ;		Clear the ingredient box Sleep 1000 ;			Wait a second to make sure that ingredient box is cleared Click, %SearchX%, %SearchY% ; 	Select the search box Sleep 1000 ;			Wait a second to make sure that search box is selected Send, {SHIFTDOWN}g{SHIFTUP}reater{SPACE}%Type%{SPACE}{SHIFTDOWN}e{SHIFTUP}ssence{SPACE}{SHIFTDOWN}s{SHIFTUP}undering Sleep 2000 ;			Wait 2 seconds for the list to populate Click, %SelectX%, %SelectY% ;	Select the type to sunder Sleep 1000 ;			Wait a second to make sure that the correct type is selected MouseMove, %X%, %Y% ;		Move the mouse to make the trades InputBox, Counter, %BoxTitle%, %Box2Instructions%,, 411, 249, %BoxX%, %BoxY%, , , %Default2% IfWinNotActive, Dungeons and Dragons Online {	WinActivate, Dungeons and Dragons Online } WinWaitActive, Dungeons and Dragons Online Sleep 1000 ;			Wait a second to make sure that DDO is foremost window loop %Counter% {	Click, %X%, %Y% ;	Sunder an essence Sleep 1000 ;		Wait a second } return 7. Save and close the file.
 * Cannith Crafting greater essence sundering script for sundering large chunks of essences.
 * Language:      English
 * Author:        ShoeMaker of Cannith
 * 1) NoEnv ;				Recommended for performance and compatibility with future AutoHotkey releases.
 * 1) NoEnv ;				Recommended for performance and compatibility with future AutoHotkey releases.
 * 1) NoEnv ;				Recommended for performance and compatibility with future AutoHotkey releases.
 * s:: ;					[Windows Key] - [s]

8. Double-click the file to launch it. A new icon appears in the taskbar notification area.

9. Log into DDO, walk up to the essence trader at the crafting hall and go through the dialog to trade essences.

10. With your inventory panel and the trade ui open, click on an empty spot of your start bar.

11. Press [Windows Key] - [s]

12. Tell the box that pops up what kind of essences you want to sunder


 * Air
 * Fire
 * Water
 * Earth
 * Good
 * Chaos
 * Evil
 * Law
 * Mind
 * Arcane
 * Body
 * Divine

13. Wait a few seconds for the script to start processing your request... It will tell the trade ui you want to sunder the essence type you told it.

14. The type of essence will show up in the ingredient section with a quantity of how many you have and another script window will popup asking you how many you want to sunder.

15. Tell the box that pops up how many trades you want to make and hit ok.

16. It should take one second per sunder, so calculate how long it should take, and feel free to go do something while it sunders for you.