L版本实现多线程找图

链接: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

给TA捐赠
共{{data.count}}人
人已捐赠
应用

开源 中文 热榜工具 不出茅庐便知三分天下 双击鼠标能吃全网新瓜~

2021-6-19 16:32:51

其他

连接群晖 Synology DS1821+ NAS WebDAV的FileZilla Pro专业版

2021-7-4 10:08:47

6 条回复 A文章作者 M管理员
  1. 415075065

    试了一下 好用

    • ahker

      pic_search_debug(picPath, x1, y1, x2, y2, time, obj, thresh)
      正式使用的时候,改用pic_search(picPath, x1, y1, x2, y2, time, obj, thresh)

  2. longlongago

    厉害了 我的哥

  3. awen162

    下载来试试

  4. 。13530

    你好 我想問下ahk怎麼實現後台取色

  5. user14586

    先试一下

个人中心
购物车
优惠劵
有新私信 私信列表
搜索