如何检查鼠标是否在 python 字段中?
how to check if mouse in field with python?
例如,当我的鼠标在该区域时,我希望发生一些事情。
if(x=(100 up to 200) and y=(100 up to 200):
这意味着如果 x = 102 和 y = 199 它将起作用。
我试着用 import pyautogui
来做。
你是说吗?
if (x in range(100, 200)) and (y in range(100, 200)):
pass
例如,当我的鼠标在该区域时,我希望发生一些事情。
if(x=(100 up to 200) and y=(100 up to 200):
这意味着如果 x = 102 和 y = 199 它将起作用。
我试着用 import pyautogui
来做。
你是说吗?
if (x in range(100, 200)) and (y in range(100, 200)):
pass