I want something to happen when my mouse is in the field, for example.
if(x=(100 up to 200) and y=(100 up to 200):
This means it will work if x = 102 and y = 199 for example.
I tried to do it with import pyautogui
.
I want something to happen when my mouse is in the field, for example.
if(x=(100 up to 200) and y=(100 up to 200):
This means it will work if x = 102 and y = 199 for example.
I tried to do it with import pyautogui
.
do you mean?
if (x in range(100, 200)) and (y in range(100, 200)):
pass