File size: 178 Bytes
bfabdcb
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import pyautogui as pt
from time import sleep

while True:
    posXY = pt.position()
    print(posXY,pt.pixel(posXY[0],posXY[1]))
    sleep(1)
    if posXY[0]==0:
        break