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:Sithid/Macros/AutoIT/Watering"
From A Tale in the Desert
< User:Sithid | Macros | AutoIT
Jump to navigationJump to searchLine 8: | Line 8: | ||
Author: Sithid | Author: Sithid | ||
Date: 07.17.08 | Date: 07.17.08 | ||
− | Version: 0. | + | Version: 0.4 |
Script Function: | Script Function: | ||
Line 14: | Line 14: | ||
#ce -------------------------------------------------------------------------------------- | #ce -------------------------------------------------------------------------------------- | ||
− | |||
− | |||
− | |||
− | |||
Opt( "MustDeclareVars", 1 ) | Opt( "MustDeclareVars", 1 ) | ||
Line 33: | Line 29: | ||
Func Main() | Func Main() | ||
Do | Do | ||
− | + | ||
Until 1 = 2 | Until 1 = 2 | ||
EndFunc | EndFunc |
Revision as of 13:11, 19 December 2008
Simple plant watering hotkey-like macro. Build/Run, switch to atitd, and press "w" over a plant. Macro acts like a hotkey, clicks the plant, adjusts the cursor, and clicks water.
The Macro
#cs -------------------------------------------------------------------------------------- AutoIt Version 3.2.12.1 Author: Sithid Date: 07.17.08 Version: 0.4 Script Function: Plant Watering Hotkey #ce -------------------------------------------------------------------------------------- Opt( "MustDeclareVars", 1 ) Global $Paused = False HotKeySet( "{ESC}", "Terminate" ) HotKeySet( "{PAUSE}", "TogglePause" ) HotKeySet( "{w}", "WaterPlant" ) WinWaitActive( "eGenesis Client" ) Main() Func Main() Do Until 1 = 2 EndFunc Func WaterPlant() Local $MouseLoc = MouseGetPos() MouseClick( "left", $MouseLoc[0], $MouseLoc[1], 1, 1 ) Sleep( 200 ) MouseClick( "left", $MouseLoc[0] + 50, $MouseLoc[1] + 3, 1, 1 ) EndFunc Func TogglePause() $Paused = Not $Paused While $Paused Sleep(100 ) WEnd EndFunc Func Terminate() Exit EndFunc