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.