# -*- coding: utf-8 -*- # !/usr/bin/env python import time import pyautogui while True: print pyautogui.position() time.sleep(1)