Search found 119 matches

by feiyue
11 Oct 2018, 04:09
Forum: 请求帮助
Topic: loop循环停止失效 Topic is solved
Replies: 2
Views: 68

Re: loop循环停止失效 Topic is solved

当一个热键子程序被Pause卡住后,或者Loop无限循环后,再次按热键是没用的,因为默认设置每个热键允许同时存在一个线程。
当一个线程没有执行完毕时,其他热键是不能中止它的运行的(可以暂停/继续),除非Reload重启。

F2::
Hotkey, %A_ThisHotkey%,, T2 ; 这里修改每个热键允许同时存在2个线程
if (F2_ok)
{
Reload
return
}
F2_ok:=1
loop
{
Send,{5}
Sleep,2000
}
return
by feiyue
10 Oct 2018, 23:04
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

@paulpma, You can try this: FindTextOCR(nX, nY, nW, nH, err1, err0, Text, Interval=20) { OCR:="", RightX:=nX+nW-1 While (ok:=FindText(nX, nY, nW, nH, err1, err0, Text)) { ; For multi text search, This is the number of text images found For k,v in ok { ; X is the X coordinates of the upper left corne...
by feiyue
09 Oct 2018, 11:40
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

@paulpma, To draw boxes around searched area using GDIp_All, You can try this: #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 spe...
by feiyue
07 Oct 2018, 22:08
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

This function finds and returns every image in every location of the search area (It's AND's relationship). For example: Text := "|<pic1>231@0.70$59.M00001Xy7yA00003aQTw0000076sTs00000SNkRk00000kvUvE" Text .= "|<pic2>231@0.70$59.M00001Xy7yA00003aQTw0000076sTs00000SNkRk00000kvUvE" Text .= "|<pic3>231...
by feiyue
06 Oct 2018, 19:24
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

Updated to the v6.1 version. :beer: The specific color mode has been restored, so there are three modes. Updated to the v5.5 version, in order to identify a variety of color verification code, I improved the color model, now it can adapt to various colors. :D When upgrading to the v5.5 version, the ...
by feiyue
23 Sep 2018, 17:48
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

@FastLearner, Don't copy the form of automatically generated code. :headwall: I believe you can learn to set search scope if you read the introduction. :beer: ;———————————————————— returnArray := FindText( X --> upper left corner X coordinates , Y --> upper left corner Y coordinates , W --> the sear...
by feiyue
21 Sep 2018, 23:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

---------images 1 to 8 all identical----------- ---1st action/click--- [1]234 5678 --2nd action/click-- x123 [4]567 --3rd action/click--- x[1]23 x456 --4th action/click-- xx12 x[3]45 --5th action/click--- xx[1]2 xx34 --6th action/click-- xxx1 xx[2]3 --7th action/click-- xxx[1] xxx2 --8th action/cli...
by feiyue
21 Sep 2018, 04:43
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

Was hoping this would register multiple identical images and possibly number them, if numbered, I'm sure what I displayed would work fine I wrote a simple function SortOK() to sort the array by coordinates. See the example: :dance: SortOK(ok, dy=10) { if !IsObject(ok) return, ok ok2:=[] For k,v in ...
by feiyue
20 Sep 2018, 14:27
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

Updated to the v6.0 version. :beer: 1. Slightly modified the machine code. The image that has been found will be cleaned up in the same color. Avoid matching the next row (column) when using tolerance lookup. 2. After upgrading to v6.0, the search area uses WinAPI's upper left corner X, Y coordinate...
by feiyue
20 Sep 2018, 13:55
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

@nwr425, Although this function FindText() returns all the locations found, because the lookup is from top to bottom, sometimes the middle image is higher than the first image, so it returns first, so the position returned may be disordered and difficult to sort.. I find that the location of these p...
by feiyue
19 Sep 2018, 20:21
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

@nwr425, Your description is too vague, I still don't understand what you mean. You can upload the work picture screenshots, and then explain how to do manual work step by step. If the position of the image remains unchanged after clicking, you can search for the unique image next to it as the origi...
by feiyue
18 Sep 2018, 20:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

Hi, @nwr425, Although this function FindText() returns all the locations found, it is recommended to look for images that appear only once in the full screen. 1. When you write web page automation scripts, you should try to avoid looking for multiple identical images, try to use a unique image, to a...
by feiyue
28 Aug 2018, 17:32
Forum: 脚本函数
Topic: 北京时间校对
Replies: 2
Views: 520

Re: 北京时间校对

这个很好用,谢谢分享! :thumbup: :bravo:
by feiyue
28 Aug 2018, 10:54
Forum: 脚本函数
Topic: AHK 机器码(MCode)的制作
Replies: 8
Views: 5428

Re: AHK 机器码(MCode)的制作

利用TCC动态运行C语言代码的简单方式: (必须在AHK目录下安装 “\TCC-64\tcc.exe” 和 “\TCC-32\tcc.exe”) ;------------------------------------------ ; Using TCC to run C code (By FeiYue) ;------------------------------------------ Goto, F1 F1:: Code= ( char * __attribute__((stdcall)) hello(char * out) { char str[]="Hello World!"; ...
by feiyue
26 Aug 2018, 18:26
Forum: 脚本函数
Topic: AHK源代码加密器 v2.6
Replies: 34
Views: 5457

Re: AHK源代码加密器 v2.5

更新到v2.5版本,提高了破解的难度,但还是防菜鸟防不了高手。
by feiyue
19 Aug 2018, 19:03
Forum: 教程资料
Topic: DllCall的使用指南
Replies: 0
Views: 385

DllCall的使用指南

DllCall的使用指南 —— By FeiYue 一、AHK的DllCall简介 1、DllCall是AHK的一个强大功能,可以调用Dll文件中的函数, 例如WinAPI函数,从而可以实现AHK自身没有提供的功能。原则上讲, 可以调用任何WinAPI函数,就可以实现所有编程功能,类似于C语言。 2、DllCall的基础知识请参看AHK帮助,它的使用格式是: Result := DllCall("[DllFile\]Function" [, Type1,Arg1, Type2,Arg2, "Cdecl ReturnType"]) 它与AHK普通函数 Result := Function(Ar...
by feiyue
16 Aug 2018, 12:43
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

@NewJohn45, I think you can improve in this way: 1, combinatorial search can avoid multiple screenshots. 2, narrowing the search range can significantly speed up the process. Set 150 corresponds to a range of 301 * 301 pixels. Text:="|<Image1>*179$48.zXzzzzzzzVzzzzzzzkzzzzzzzsDzzzzzzw7zzzzzzzVzzzzzz...
by feiyue
16 Aug 2018, 03:56
Forum: Scripts and Functions
Topic: MinHook - API Hooking Library
Replies: 5
Views: 386

Re: MinHook - API Hooking Library

Hi tmplinshi, This is a very useful script! thanks for sharing! :wave:

I think Example2 needs to modify one line (Otherwise I can't see the effect.):

Example2 - GetOpenFileNameW.ahk
return DllCall(hook1.original, "ptr", ofn), hook1 := ""
by feiyue
13 Aug 2018, 23:34
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 183
Views: 41910

Re: FindText - Capture screen image into text and then find it Topic is solved

@nwr425, Many positions on the web will change color when the mouse moves there. :D
So when capturing the picture, hold the right button first and then move to other places to release the right button.

Go to advanced search