[AutoHotKey] Basic Crafting Click Macro

08/14/2009 11:19 Penakle#1
Code:
;Simple Crafting Related Script by Keraam
;Made from the AutoIt script by TeabagGus
;Once the macro starts you will have 5 seconds to get your cursor over the object.

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input  	; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

WinWaitActive, Darkfall Online
IfWinActive, Darkfall Online
{
	MsgBox, 3, , Yes for Smelt / Wood or No for Arrows / Craft
	IfMsgBox, Yes
    	        Timer = 11000
	else IfMsgBox, No  
		Timer = 21000
	else
		ExitApp
	
	Sleep, 5000
	
	Loop, 250
	{		
	        Click
		Sleep, Timer		
	}
}