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:Corrans/macros"

From A Tale in the Desert
Jump to navigationJump to search
Line 1: Line 1:
copy the following to a *.ahk file, uses Autohotkey
+
[http://rapidshare.com/files/174205943/Slate.ahk|Autohotkey Passive Slate/Clay Macro]
 
+
change sleep from 5 to 20+ for clay
----
 
 
 
 
 
<nowiki>;Once it's started it will ask you to stand on a spot with slate, move the mouse to the slate icon and hit F1
 
;After that it will automatically click on the slate icon whenever it detects it and return the mouse to the position it was in
 
;To abort the macro use ctrl-z
 
interupt = 0
 
MsgBox please stand on a spot with slate, move the mouse to the slate icon and hit F1
 
WinActivate eGenesis Client
 
 
 
F1::
 
MouseGetPos, slatex, slatey
 
PixelGetColor, slatecolor, slatex, slatey
 
MsgBox The macro will now click the slate icon whenever it detects it
 
WinActivate eGenesis Client
 
Loop{
 
; use sleep 5 for slate & sleep 20-30 for clay
 
sleep 5
 
PixelGetColor slate, slatex, slatey
 
if(slate = slatecolor){
 
MouseGetPos, xpos, ypos
 
MouseMove slatex, slatey, 0
 
Click
 
MouseMove xpos, ypos, 0
 
}
 
if(interupt = 1){
 
interupt = 0
 
MsgBox interupting macro
 
Exit
 
}
 
}
 
return
 
 
 
^i::
 
interupt = 1
 
return
 
 
 
^z::
 
ExitApp
 
return</nowiki>
 

Revision as of 12:47, 17 December 2008

Passive Slate/Clay Macro change sleep from 5 to 20+ for clay