0

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.

sshashank124
  • 31,495
  • 9
  • 67
  • 76
rtx002
  • 33
  • 5

1 Answers1

0

do you mean?

if (x in range(100, 200)) and (y in range(100, 200)):
    pass
sshashank124
  • 31,495
  • 9
  • 67
  • 76