Search found 156 matches

by feiyue
Today, 02:56
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Ipot , You can use this function flexibly only if you understand the meaning of the parameter. ; Introduction of function parameters: ; ; returnArray := FindText( ; X --> the search scope's upper left corner X coordinates ; , Y --> the search scope's upper left corner Y coordinates ; , W --> the se...
by feiyue
20 Apr 2019, 05:06
Forum: Scripts and Functions
Topic: AHK Screen Capture Tool
Replies: 1
Views: 180

AHK Screen Capture Tool

Share a small tool to capture screen coordinates and colors. I hope you like it. :dance: :beer: ;------------------------------ ; AHK Screen Capture Tool ; ; Author: FeiYue ; Version: 2.0 ; Introduction: ; This is a convenient screen capture tool for coordinates and colors ;------------------------...
by feiyue
20 Apr 2019, 03:42
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

When using the "SplitAdd" button, you need to click on the splitting position on the yellow tag line. Because automatic segmentation using "SplitAdd" can reduce background blanks on all sides, So if you want to make a text library with blank edges, such as punctuation marks, It needs to be manually ...
by feiyue
18 Apr 2019, 12:25
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Text1:="|<pic1>..." Text2:="|<pic2>..." Text3:="|<pic3>..." Text4:="|<pic4>..." TimeOut:=A_TickCount+5000, findok:=0 Loop { check:=[] ; When multiple images are searched and the results of each image are important, the fault tolerance cannot be 0. For k, v in ok:=FindText(0,0,150000,150000, 0.1, 0.1...
by feiyue
17 Apr 2019, 20:55
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Please look at the instructions of the function for use. If you don't understand what it means, You can copy it, but don't change it indiscriminately. Instead of using variables, you only need to use 1 Pic(Text, 1) ;==> Store text data in a text library ; You can put the text library at the beginnin...
by feiyue
17 Apr 2019, 18:21
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

@songdg
You haven't looked carefully: :beer:
Pic(Text, 1) ;==> Store text data in a text library
by feiyue
16 Apr 2019, 11:06
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

For beginners, since coordinate parameters are easily misunderstood, the following wrapping functions are recommended: :dance: :beer: ; @FindText() ---- << Copy this function into your script >> ---- ; (x1, y1) is the upper-left coordinate of the search range, ; (x2, y2) is the lower-right coordinat...
by feiyue
16 Apr 2019, 10:44
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

songdg , Hello ! :wave: First, let me introduce the role of FindText2(). It is used for combination lookup. For example, a 0-9 text library has been generated. You can search for any ID number that these text libraries make up. For example: Text.= t1:= "|<1>**50$5.9kV248EVDk" ;==> ASCII Search Text...
by feiyue
13 Apr 2019, 08:33
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Updated to 6.7 version - 2019/04/13 :dance:
.... 1. Merge FindText() and FindText2() functions.
.... 2. The color difference mode is added to adjust the matching range accurately.
.... 3. Add a parameter "FindAll" that allows you to find only one result and return it immediately.
by feiyue
11 Apr 2019, 19:08
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Updated to 6.6 version - 2019/04/11 :dance: .... 1. FindText(), FindText2() share the same machine code, reduces the code size. For a single text or image, the effects of these two functions are similar, but for multiple text or images, FindText() loops through each text or image, while FindText2() ...
by feiyue
09 Apr 2019, 15:16
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

SL5 , You may not need the special number 1.88, :D You can calculate the width and height according to the upper-left coordinate (x1, y1) and lower-right coordinate (x2, y2) of the search range: ---------------------- x1, y1 ==> xxx, yyy ==> wX-150, wY-150 (instead of Floor(wX/1.88), Floor(wY/1.88)...
by feiyue
09 Apr 2019, 10:16
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Looking at your code, I don't know what you're going to do. Can't you use full screen search? You said full screen search was successful. Or do you want to search in the window range? It's also very simple (just find the right window): WinGetPos, wX, wY, wW, wH, %WindowsTitle% ok:=FindText(wX, wY, w...
by feiyue
09 Apr 2019, 00:30
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

:D I'm sorry, I'm from China, so I can't go to www.youtube.com or https://youtu.be Full screen can be found and window range can not be found, indicating that window range acquisition error. Your problem can only be debugged by yourself, others can not help, because it is difficult to reproduce your...
by feiyue
08 Apr 2019, 15:45
Forum: Bug Reports
Topic: OnMessage() Cause temporary variables to empty Topic is solved
Replies: 5
Views: 548

Re: OnMessage() Cause temporary variables to empty Topic is solved

Yes, I didn't realize before that subroutines in functions would be affected by this.
by feiyue
08 Apr 2019, 14:50
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Novice may think that the first four parameters are the range parameters of AHK: x1, y1, x2, y2 However, the function uses the range parameters of WinAPI: x, y, w, h In fact, only one search can solve the problem, but you need to extract the left + top results by yourself: WinGetPos, wX, wY, wW, wH,...
by feiyue
07 Apr 2019, 18:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Updated to 6.5 version - 2019/04/07
.... 1. Add Gray Difference Mode, so there are four modes.
.... 2. Fixed SplitAdd/AllAdd buttons doesn't work(broken by v6.4).
by feiyue
04 Feb 2019, 06:45
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 278
Views: 66827

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

Updated to 6.4 version - 2019/02/04 .... 1. Change the label name and function name to make it easier .... for “#Include” to be integrated into other scripts as libraries. .... 2. You can even open the tool directly by calling “Goto, ft_Start”. Note: If you want to compile and use it, you should put...
by feiyue
03 Feb 2019, 09:25
Forum: Gaming
Topic: Minecraft: Simple 2x4 Miner [Block Recognition]
Replies: 1
Views: 593

Re: Minecraft: Simple 2x4 Miner [Block Recognition]

Because the latest FindText() function makes some changes to the returned object, Joe Glines'code should be modified: ;***********Left click******************* FindText_Left_Click(Obj,X_Adj=0,Y_Adj=0,Move_Back=0){ CoordMode, Mouse MouseGetPos,Orig_X,Orig_Y x:=(obj.1.1+obj.1.3//2)+X_Adj y:=(obj.1.2+o...
by feiyue
29 Jan 2019, 18:37
Forum: Bug Reports
Topic: OnMessage() Cause temporary variables to empty Topic is solved
Replies: 5
Views: 548

OnMessage() Cause temporary variables to empty Topic is solved

When I used OnMessage ()+SetTimer, I found that the variables of the subroutine inside the function were confusing. Look at the following example. Why is the value of variable “i” empty? Gui, Show, w500 h300 OnMessage(0x200, "WM_MOUSEMOVE") return WM_MOUSEMOVE() { SetTimer, Test, -100 return Test: i...
by feiyue
24 Jan 2019, 09:24
Forum: 脚本函数
Topic: 浏览器添加左右键翻页
Replies: 0
Views: 375

浏览器添加左右键翻页

下面是我常用的浏览器添加左右键翻页的方法。 SetTitleMatchMode, 2 ;//匹配部分标题 GroupAdd, MyBrowser, ahk_class IEFrame GroupAdd, MyBrowser, 360安全浏览器 GroupAdd, MyBrowser, 360极速浏览器 GroupAdd, MyBrowser, 搜狗高速浏览器 GroupAdd, MyBrowser, 世界之窗浏览器 GroupAdd, MyBrowser, 2345加速浏览器 GroupAdd, MyBrowser, GreenBrowser GroupAdd, MyBrowser, Fire...

Go to advanced search