We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 73f79c3 + 83f44dc commit 2d60c64Copy full SHA for 2d60c64
Automation/src/checkmousepos.py
@@ -0,0 +1,16 @@
1
+#! python3
2
+# Author : Brent Zoomers, 4/10/'20
3
+
4
+# Program prints out current mouse position in console.
5
6
+import pyautogui, sys
7
8
+print('Press Ctrl-C to quit.')
9
+try:
10
+ while True:
11
+ x, y = pyautogui.position()
12
+ positionStr = 'X: ' + str(x).rjust(4) + ' Y: ' + str(y).rjust(4)
13
+ print(positionStr, end='')
14
+ print('\b' * len(positionStr), end='', flush=True)
15
+except KeyboardInterrupt:
16
+ print('\n')
0 commit comments