import pyautogui, sys
import time
print('Press Ctrl-C to quit.')
try:
while True:
# click after every 10 secs
pyautogui.PAUSE=1
pyautogui.click(x=-1000, y=400, clicks = 1, interval = 1, button='right')
time.sleep(10)
pyautogui.click(x=-1010, y=410, clicks = 1, interval = 1, button='right')
except KeyboardInterrupt:
print('\n')