--=== Version 1.1 ===-- -- Settings local toggleKey = key.VK_F11; -- Change to any hotkey you would like. local harvestKey = key.VK_F; -- Interaction key, "F" is default. local chatKey = key.VK_ENTER; -- Probably don't need to change this. local secondsBetweenInput = 7; -- Probably don't need to change this. -- Don't modify these local win; local timeLeft = secondsBetweenInput; local running = false; local chatpause = false local targetWindowClass = "ArcheAge"; local targetWindowName = "- ArcheAge*- *"; -- Main script function macro.init() win = window.find(targetWindowName, targetWindowClass); if( not win ) then error("Could not find ArcheAge window. You must have the game running to use this script.\n", 0); end printf("ArcheAge harvesting script is ready to go, press "..toggleKey.." to start!\n"); end function macro.main(dt) if running and not chatpause then timeLeft = timeLeft - dt; if( timeLeft < 0 ) then timeLeft = secondsBetweenInput; keyboard.virtualPress(win, harvestKey); print("Harvesting") end end end function macro.event(e, data1, data2) if( e == "keypressed" ) then if( data1 == toggleKey ) then running = not running if running then keyboard.virtualPress(win, harvestKey) print("continuing to harvest") else print("Pausing to harvest") end end if( data1 == chatKey ) then chatpause = not chatpause if chatpause then print("waiting until you hit enter again before continuing") else print("continuing since you finished chating") end end end end