#Persistent
CoordMode, Mouse, Screen
SetTimer, WatchCursor, 500
return
WatchCursor:
MouseGetPos,x , y, id, control
if (x<20)
{
tooltip,左边条件符合%x% %y%
sleep,1000
tooltip,
}
if (x>A_ScreenWidth-20)
{
tooltip,右边条件符合%x% %y%
sleep,1000
tooltip,
}
if (y<20)
{
tooltip,上边条件符合%x% %y%
sleep,1000
tooltip,
}
if (y>A_ScreenHeight-20)
{
tooltip,下边条件符合%x% %y%
sleep,1000
tooltip,
}
return
autohotkey实现鼠标移到屏幕边缘触发动作
最新推荐文章于 2024-04-24 15:19:49 发布