链接: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怎麼實現後台取色
先试一下