Does anyone tried to control mouse cursor position and click in Python application for Raspbian before?
I am refering to this website: https://pyautogui.readthedocs.io/en/latest/mouse.html#mouse-movement
I tried to run the sampel code given in this page as below:
#! 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')
I got the import error which say no module named pyautogui, even I had installed the pyautogui with the following command:
Can anyone advice me on this? Also if there is other way to control mouse position and click can suggest me as well.