| 
 | 
 
 
发表于 2025-5-18 10:27:06
|
显示全部楼层
 
 
 
- CoordMode "Pixel", "Screen"  ; 以屏幕坐标进行颜色搜索
 
 - px := 0 ;输出
 
 - py := 0
 
  
- x1 := 270 ;搜索区域的起始坐标
 
 - y1 := 700
 
 - x2 := 1200 ;搜索区域的结束坐标
 
 - y2 := 430
 
 - ;A_ScreenWidth代表屏幕宽度,A_ScreenHeight代表屏幕高度
 
 - searchImage := "H:\SF\others\Ztasker\YCWL\未完成.png"
 
  
- if ImageSearch(&px, &py, x1, y1, x2, y2, searchImage)
 
 - {        
 
 -         ;MsgBox px ";" py
 
 -         CoordMode "Mouse", "Screen"
 
 -         MouseClick "left", px+5, py+5
 
 - }
 
  
- x1 := 200 ;搜索区域的起始坐标
 
 - y1 := 980
 
 - x2 := 520 ;搜索区域的结束坐标
 
 - y2 := 700
 
 - ;A_ScreenWidth代表屏幕宽度,A_ScreenHeight代表屏幕高度
 
 - searchImage1 :=  "H:\SF\others\Ztasker\YCWL\未完成1.png"
 
  
 
- if ImageSearch(&px, &py, x1, y1, x2, y2, searchImage1)
 
 - {        
 
 -         ;MsgBox px ";" py
 
 -         CoordMode "Mouse", "Screen"
 
 -         MouseClick "left", px+5, py+5
 
 - }
 
 - 大佬帮忙看一下嘛,谢谢
 
  复制代码 |   
 
 
 
 |