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

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

Difference between revisions of "User:Cegaiel/Macros/Plane"

From A Tale in the Desert
Jump to navigationJump to search
Line 1: Line 1:
<pre>
+
==Multiple Carpentry Benches - Plane Boards (Autohotkey)==
;Ctrl+Alt+W to start macro.
+
<B>Instructions:</b>
;Ctrl+P to pause script (ie to click Water icon) and Ctrl+P again to resume
+
Zoom in about half way (in F5 or F6) and lock your screen (Alt + L) to prevent your screen from moving around.
;The AHK icon in system tray will turn red while paused.
 
  
^p::Pause
+
Start script with Ctrl+Alt+W
^!w::
 
  
 +
It will walk you through the setup process with GUI Menus.
  
 +
------
  
IfWinExist eGenesis Client
+
If you use multiple carpentry benches to make boards, then this is for you!  It will now ask how many boards you want plane. Next a popup will tell you to middle click (click mouse wheel) all your carpentry benches.  When done click OK.  It will wait 7 seconds before the script begins. During this time, drag the status bar out of the way so it doesn't cover up any of the benches.  Then it will start hovering all your benches and clicking the P key (equivalent to [P]lane Board), faster than you can. The more benches you have the faster you will plane a full inventory of wood.
{
 
WinActivate
 
  
InputBox, NumPulls, Boards, How many boards do you want to plane?
 
  
 +
<b>Important:</b> You MUST minimize chat for this to work correctly.  If you dont, you will see the letter P appear in your chat bar over and over. It wont send it to chat if you forget, but you will notice it.
  
Gui, +AlwaysOnTop +ToolWindow
 
Gui, Font, bold
 
Gui, Add, Text, vMineNumText, Recording bench positions
 
Gui, Font, norm
 
Gui, Add, Text,,
 
( LTrim
 
Hover and middle-click (Click mouse-wheel) on each carpentry bench, one by one,
 
until you've clicked on all the benches you want to use. Then click the OK button.
 
(Drag this box out of the way if any benches are hidden)
 
)
 
  
Gui, Add, Button, default gMineSetLoops, OK
+
[[User:Cegaiel/Macros/Plane/Code | Get Code!]]
Gui, Show
 
 
 
MineNum = 0
 
Boards = 0
 
 
 
WinGet, GameWinHandle, ID, eGenesis Client
 
loop
 
{
 
 
 
WinActivate
 
CoordMode, Mouse, Relative
 
KeyWait, MButton, D
 
KeyWait, MButton
 
MouseGetPos, TestX, TestY, WinHandle
 
if (WinHandle = GameWinHandle)
 
{
 
Gosub, MineRecord
 
}
 
else
 
{
 
Gui, Destroy
 
break
 
}
 
}
 
return
 
 
 
MineRecord:
 
MineNum++
 
MouseGetPos, MineX%MineNum%, MineY%MineNum%
 
GuiControl, Text, MineNumText, %MineNum% benches captured
 
TotalBeds := MineNum
 
return
 
 
 
 
 
MineSetLoops:
 
Gui, Submit
 
Gui, Destroy
 
Gui, +AlwaysOnTop +ToolWindow
 
Gui, Font, bold
 
Gui, Add, Text, vMineCycleText, 7s to drag away from benches
 
Gui, Font, norm
 
Gui, Show
 
GuiControl, Text, MineCycleText, 7s to drag away from benches
 
 
 
;You got 7 seconds to drag the status bar out of the way
 
Sleep 7000
 
 
 
 
 
 
 
loop, %NumPulls%
 
{
 
 
 
MineNum = 1
 
 
 
 
 
 
 
loop, %TotalBeds% {
 
 
 
 
 
 
 
 
 
WinActivate, eGenesis Client
 
 
 
MinePosX := MineX%MineNum%
 
MinePosY := MineY%MineNum%
 
MouseMove, %MinePosX%, %MinePosY%, 0
 
Send {P}
 
Sleep, 250
 
MineNum++
 
Boards++
 
GuiControl, Text, MineCycleText, Boards: %Boards% of %NumPulls%
 
 
 
if Boards = %NumPulls%
 
Exit
 
 
 
}
 
 
 
 
 
 
 
}
 
Gui, Destroy
 
Gui, Add, Text,, Middle-click on this window to end the script.
 
Gui, Show
 
return
 
}
 
</pre>
 

Revision as of 19:12, 14 January 2010

Multiple Carpentry Benches - Plane Boards (Autohotkey)

Instructions: Zoom in about half way (in F5 or F6) and lock your screen (Alt + L) to prevent your screen from moving around.

Start script with Ctrl+Alt+W

It will walk you through the setup process with GUI Menus.


If you use multiple carpentry benches to make boards, then this is for you! It will now ask how many boards you want plane. Next a popup will tell you to middle click (click mouse wheel) all your carpentry benches. When done click OK. It will wait 7 seconds before the script begins. During this time, drag the status bar out of the way so it doesn't cover up any of the benches. Then it will start hovering all your benches and clicking the P key (equivalent to [P]lane Board), faster than you can. The more benches you have the faster you will plane a full inventory of wood.


Important: You MUST minimize chat for this to work correctly. If you dont, you will see the letter P appear in your chat bar over and over. It wont send it to chat if you forget, but you will notice it.


Get Code!