Yeah, that's what I ended up doing. I hadn't stumbled across the PixelSearch command yet when I posted the question. So here is what I came up with:
My app will start you farming.
Verified to work.It monitors hunger and auto-feeds you.
Verified to work.It also monitors food (automatically) and exits GoonZu if you run out.
Verified to work.To prevent your farmer from "timing-out", it automatically stops and restarts the farmer every 2 hours.
Verified to work.If you are doing a 10-hour lease for the farm it will either log you out at the end, or you can opt to have it renew your lease when the it expires. This selection is made when you execute the app, you don't have to be there when the lease expires.
Not verifiedIt will log you out if something happens to aggro you (rare but can happen).
Thanks to the cosmic bunnies this feature has now been tested and works as advertised. Verified to work.Can identify if another player is in your way or if you have accidentally attacked a monster (this prevents your character from running off).
Verified to work.It's running like a champ. I have to say for my first attempt ever at writing any type of program I am tickled pink with the end result.