From e21102eb08a856c4a9b8a48a9079643a53e42478 Mon Sep 17 00:00:00 2001 From: Brent Zoomers Date: Sun, 4 Oct 2020 11:45:25 +0200 Subject: [PATCH 1/2] Added script for checking mouse position on screen --- Automation/src/checkmousepos.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 Automation/src/checkmousepos.py diff --git a/Automation/src/checkmousepos.py b/Automation/src/checkmousepos.py new file mode 100644 index 00000000..fdbd8732 --- /dev/null +++ b/Automation/src/checkmousepos.py @@ -0,0 +1,11 @@ +#! python3 +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') From 83f44dc0da5a7d006e651c27ab7952552a3690c4 Mon Sep 17 00:00:00 2001 From: BrentZ-1849203 Date: Sun, 4 Oct 2020 19:02:03 +0200 Subject: [PATCH 2/2] Update checkmousepos.py Checks mouse position and prints it out in the console --- Automation/src/checkmousepos.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Automation/src/checkmousepos.py b/Automation/src/checkmousepos.py index fdbd8732..86018f9b 100644 --- a/Automation/src/checkmousepos.py +++ b/Automation/src/checkmousepos.py @@ -1,5 +1,10 @@ #! 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: