I am connecting to a remote windows machine via ssh(paramiko) and triggering the script that interacts with the UI which is already there in the remote machine. Pyautogui(locateonscreen, screenshot etc) does not work. It throws an OS:error image attached "Error "
Whereas, if i trigger the script locally it works fine. Used lackey to capture screenshot and all I can see is a black screen and resolution is dropped from 1920*1080 to 1024*768. Same thing works fine on Mac.
Any help will be much appreciated.