'X,Y Coordinates Convert

I have written a program in which I am using pyautogui for autoclicking

My code

import pyautogui, time

time.sleep(5.5)
pyautogui.click(x=443, y=178)
time.sleep(0.5)

but the x, y coordinates which I am using are according to my monitor size which is 1920x1080

My Question: The x, y coordinates are according to 1920x1080 I want to change them in 1280x720 so that it supports on any monitor resolution. I wonder I can do that using numpy if yes then how?....if no then is there any other way to do it?.... Any help would be appreciated

Thank You

Regards



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source