#!/usr/bin/env python #################### Template ############## # This is a Template, with funktions that all LtMacros should have! | #________________________________________________________________| from time import sleep # Needed for delays import LtMacroAPI # Needed for Click to work. ###########This code is needed for LtMacro Kill funktion.## import os pid = str(os.getpid()) pidfile = open("./ltmacros/running.pid", 'w') pidfile.write(pid) pidfile.close() ( ( windowID, x, y ), junk3 ) = LtMacroAPI.getwindowclick() ######################################## # Fishing macro, just start it with LtMacro and click the fish Icon # and it will click it every 15 sec. while True: LtMacroAPI.clickwindow( (windowID, x, y) ) sleep(17)