diff --git a/Automation/src/checkmousepos.py b/Automation/src/checkmousepos.py new file mode 100644 index 00000000..86018f9b --- /dev/null +++ b/Automation/src/checkmousepos.py @@ -0,0 +1,16 @@ +#! python3 +# Author : Brent Zoomers, 4/10/'20 + +# Program prints out current mouse position in console. + +import pyautogui, sys + +print('Press Ctrl-C to quit.') +try: + while True: + x, y = pyautogui.position() + positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4) + print(positionStr, end='') + print('\b' * len(positionStr), end='', flush=True) +except KeyboardInterrupt: + print('\n')