[AutoIt] Resources & Crafting

08/14/2009 11:51 Penakle#1
This script is for resources and crafting. If gathering resources, start with your tool equipped and unsheathed. If crafting, start with the desired item to grind in your craft gump and hover over the craft key. Delay default is set to gathering without mastery. Edit delay as needed for mastery and crafting.

~ Toggles pause and DEL exits the script.

Code:
Global $Paused
HotKeySet("`", "TogglePause")
HotKeySet("{DEL}", "Terminate")
$a = InputBox( "Question", "Delay between clicks?", "11250" )
WinWaitActive( "Darkfall Online" )
Sleep( 2000 )
While 1
MouseClick( "Left" )
Sleep( $a )
WEnd

Func TogglePause( )
    $Paused = NOT $Paused
    While $Paused
        sleep(100)
        ToolTip('Script is "Paused"',0,0)
    WEnd
    ToolTip("")
EndFunc

Func Terminate( )
    Exit 0
EndFunc