So I am learning to use python 3 and now the "pyautogui" module. When I try to use "pyautogui.click(x, y)". I get this error "[WinError 5] Access is denied". It still clicks the coordinates, but why I get this error. I have tried to run this from normal and administer CMD. I am using windows 10. If you can help me please help!
Thanks for advice!
I had the same problem using Windows 8.1. I solved making a bat file calling the python script and running the bat file as administrator. 
To run the bat file as administrator I made a right click on bat file and run as administrator.
Pyautogui.click(x, y) error