链接:https://pan.baidu.com/s/1RaUghMhz1p0InQL4rycRng
提取码:9xjf
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
CoordMode, Mouse, Screen ; 把 ToolTips 放置在相对于屏幕坐标的位置.
#include <pic_search_mutithread>
MsgBox,选择需要查找的图片,bmp格式
FileSelectFile, files, M3 ; M3 = 选择多个现有文件,路径和图片名字不能有"_"".
if (files = "")
{
MsgBox, The user pressed cancel.
return
}
string_path := ""
Loop, parse, files, `n
{
if (A_Index = 1)
{
root_path := A_LoopField
}
else
{
string_path := root_path . "" . A_LoopField . "*" . string_path
}
}
StringTrimRight, string_path, string_path, 1
MsgBox,% string_path
MsgBox,按住左键拖动选取查找范围
Sleep,200
MsgBox, 4096,, % GetRange(x,y,w,h) "范围:" x "," y "," w "," h
picPath := string_path
x1 := x
y1 := y
x2 := x+w
y2 := y+h
thresh := 100
obj := {}
pic_search_debug(picPath, x1, y1, x2, y2, time, obj, thresh)
MsgBox,% obj2json(obj)
return
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。
试了一下 好用
pic_search_debug(picPath, x1, y1, x2, y2, time, obj, thresh)
正式使用的时候,改用pic_search(picPath, x1, y1, x2, y2, time, obj, thresh)
厉害了 我的哥
下载来试试
你好 我想問下ahk怎麼實現後台取色
先试一下