
# https://www.globalsino.com/ICs/
# Get mouse position/coordinates on click, and then store them as a list 


from pynput.mouse import Listener

PositionList = []

def myClick(x,y, button, pressed):
    if pressed:
        x = int(x)
        y = int(y)
        PositionList.append((x,y))

        # Limit it to 5 clickes
        if len(PositionList) == 5:
            print(PositionList)
            return
        
with Listener(on_click = myClick) as Listener:
    Listener.join()


