AC Tools Craftmacro

05/24/2006 22:45 sirru#1
Code:
SetActiveWindow Dark Age of Camelot, Copyright © 2001-05 Mythic Entertainment, Inc.

Constants
	mDelay = 0 //DONT EDIT
	mTimer = 3000 //How long does the Item need to get crafted
	mRandom = 1000 //How much random delay?
	mWindow = {ActiveWindow} //DONT EDIT
	mKey = 4 //Which key dyou want me to press?
End

//Dont edit below here
Procedure End When {GlobalKeys} contains 027
	ClearGlobalKeys
	Bell
	Stop
end

while 1=1
	ProcessMessages // Checks for end
	SetConst $mWindow = {ActiveWindow} // Get old window
	Delay 500
	
	SetActiveWindow Dark Age of Camelot, Copyright © 2001-05 Mythic Entertainment, Inc. // Go to Daoc
	Delay 500
	
	Keys $mKey // Press key
	Delay 500
	
	SetActiveWindow $mWindow //Go back to old window

	Compute mDelay = $mTimer + (Random(1) * $mRandom) //Compute the random delay
	FormatNumber mDelay = $mDelay, #
	ProcessMessages // Checks for end
	Delay $mDelay	
end
Switches to daoc, presses a button and switches back to whereever youve been before.
Pressing ESC makes the macro stop.
Including freely adjustable Random value for less detectability.
Great for browsing the web while crafting written by my poor self.
06/03/2006 15:00 mondesser#2
hmm, interesting idea :)

but why not just run daoc in window for this?
that way you wont need the delay between the window switch.
06/05/2006 20:13 sirru#3
That delay is just for safety, even with the Delay included switching windows does not work flawlessly.