Again, you have to break your problem down into smaller steps, not just describe the whole problem.
Can you create a program that clicks on a hard-coded location?
Can you create a program that returns the location of a hard-coded image?
Can you create a program that prints a hard-coded message out every 4 seconds?
Try to get each piece working separately, and don't even think about combining them until you have them all working. When you get stuck on one of those specific parts, then you can post a question here (along with an
SSCCE) and we'll be glad to help.
Good luck!