Search found 351 matches

by feiyue
Today, 06:24
Forum: Scripts and Functions (v2)
Topic: [v2] FindText - Capture screen image into text and then find it
Replies: 31
Views: 12616

Re: [v2] FindText - Capture screen image into text and then find it

Updated to 9.5 version - 2024/04/27 :beer: :dance: 1. Modify: Improved the machine code for searching from the center spiral to the surrounding area. 2. Modify: The color exclusion mode for <FindMultiColor> <FindColor> can now exclude multiple unwanted colors. Previously, only one color could be exc...
by feiyue
Today, 06:14
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573665

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

Updated to 9.5 version - 2024/04/27 :beer: :dance: 1. Modify: Improved the machine code for searching from the center spiral to the surrounding area. 2. Modify: The color exclusion mode for <FindMultiColor> <FindColor> can now exclude multiple unwanted colors. Previously, only one color could be exc...
by feiyue
27 Mar 2024, 03:42
Forum: Scripts and Functions (v2)
Topic: [v2] FindText - Capture screen image into text and then find it
Replies: 31
Views: 12616

Re: [v2] FindText - Capture screen image into text and then find it

The blank window in the upper left corner of the screen comes from the following code, This window was originally a sub-window of the main window. Programs with the uia suffix may cause child windows to not be able to be bound to the main window, This is specifically mentioned in the help file: Pare...
by feiyue
19 Feb 2024, 21:21
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 66145

Re: FindText tutorial

Gary-Atlan82 FindText has a GetColor() function, but it requires a screenshot first. You can write a wrapper function yourself. GetColor(x, y) { ; if (A_CoordModePixel="Window") ; FindText().WindowToScreen(x, y, x, y) ; else if (A_CoordModePixel="Client") ; FindText().ClientToScreen(x, y, x, y) Fin...
by feiyue
03 Feb 2024, 22:41
Forum: Ask for Help (v1)
Topic: How can I un-encrypt my script? Topic is solved
Replies: 22
Views: 5048

Re: How can I un-encrypt my script? Topic is solved

The getcode() function is attached to your original script, so it can be used in the original script to obtain the source code, such as calling this function with a hotkey. The encrypted script cannot use this function. For example: Tip: in the encryptor script: 1. You must uncomment "; . togetcode(...
by feiyue
18 Jan 2024, 01:18
Forum: Scripts and Functions (v1)
Topic: Buffer() for AHK v1.1
Replies: 2
Views: 660

Re: Buffer() for AHK v1.1

Code: Select all

Buffer(size, FillByte:="")
{
  local
  buf:={}, buf.SetCapacity("__buf__", size), p:=buf.GetAddress("__buf__")
  , (FillByte!="" && DllCall("RtlFillMemory","Ptr",p,"Ptr",size,"uchar",FillByte))
  , buf.Ptr:=p, buf.Size:=size
  return buf
}
by feiyue
18 Dec 2023, 12:24
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573665

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

Updated to 9.4 version - 2023/12/18 :dance: :beer:
1. Add: The image processing window has added a screenshot page,
which makes it more convenient to obtain colors when using multi-color search mode.
2. Add: EditScroll() function is added to Locate the specified row in the edit box.
by feiyue
05 Nov 2023, 06:25
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573665

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

Updated to 9.3 version - 2023/11/05 :dance: :beer: 1. Modify: FindMultiColor search mode, which can manually enhance the generated Text parameters, such as adding multiple colors for each point, adding their own color bias, and using exclusion colors. 2. Add: bin2hex(), DrawHBM(), you can draw lines...
by feiyue
11 Oct 2023, 03:17
Forum: Scripts and Functions (v2)
Topic: [v2] FindText - Capture screen image into text and then find it
Replies: 31
Views: 12616

Re: [v2] FindText - Capture screen image into text and then find it

The latest version already returns the help text. :D Because the script generated by this tool contains all the source code of the script itself, It is convenient for everyone to paste the source code of the function directly into their own script without using '#Include <FindText>'. For compiled pr...
by feiyue
01 Oct 2023, 02:34
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573665

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

Updated to 9.2 version - 2023/10/01 :dance: :beer: 1. Modify: After successfully searching for images in a loop (X:='wait' or 'wait1'), it is no longer necessary to wait for the images to stabilize before returning, as many people need to return immediately for gaming purposes 2. Modify: When search...
by feiyue
29 Sep 2023, 13:17
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573665

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

1. The "ColorPos" mode is precisely for adapting to different colors.
2. Using sorting can ignore slight height differences and provide visual results.
eg: ok:=FindText().Sort(ok)
by feiyue
18 Sep 2023, 11:53
Forum: Tutorials (v1)
Topic: FindText tutorial
Replies: 98
Views: 66145

Re: FindText tutorial

mblom122 You can do it like this : s:="" Loop Files, c:\pic\*.jpg { Text:=GetTextFromFile(A_LoopFileLongPath, "100") , s.= StrReplace(Text, "|<>", "|<" A_LoopFileName ">") } Clipboard:=s MsgBox, 4096,, Finished ! please check the clipboard GetTextFromFile(file, Threshold:="") { FindText().ShowPic(f...
by feiyue
14 Aug 2023, 15:42
Forum: Scripts and Functions (v2)
Topic: [v2] FindText - Capture screen image into text and then find it
Replies: 31
Views: 12616

Re: [v2] FindText - Capture screen image into text and then find it

@hisrRB57 Thank you for your feedback. I didn't read the help file carefully. Please download the script again to fix this bug.
by feiyue
30 Jul 2023, 12:07
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573665

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

Updated to 9.1 version - 2023/07/30 :dance: :beer: 1. Modify: Omitting the first two parameters is no longer allowed (improvements made in v8.9 have been removed). Because considering compatibility with code before v8.5 would add a lot of complexity. The first and second parameters can be default va...
by feiyue
11 May 2023, 21:59
Forum: 请求帮助
Topic: 关于RegExReplace的正则命令弄了一天跪下了,请教各位大佬,描述的很详细. Topic is solved
Replies: 4
Views: 1096

Re: 关于RegExReplace的正则命令弄了一天跪下了,请教各位大佬,描述的很详细. Topic is solved

你可以这样:

Code: Select all

s=
(%
02%20Inertia.wav
![embed](http://cnws.cn:44530/Sound/Thomas%20Was%20Alone%20-%20Original%20Soundtrack/02%20Inertia.wav)
)
Loop 
  s:=RegExReplace(s, "(^|\n)([^!\n]*)%20", "$1$2 ", n)
Until !n
msgbox % s
by feiyue
09 May 2023, 21:04
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573665

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

Galakrond I think you can do it like this: Text:="" Text.="|<pic1>..." ; Text.="|<color1>##10 $ 0/0/RRGGBB" ; Search for the first color Text.="|<pic2>..." ; Text.="|<color2>##10 $ 0/0/RRGGBB" ; Search for the second color Text.="|<pic3>..." ; Text.="|<color3>##10 $ 0/0/RRGGBB" ; Search for the thi...
by feiyue
26 Apr 2023, 18:12
Forum: Scripts and Functions (v2)
Topic: [v2] FindText - Capture screen image into text and then find it
Replies: 31
Views: 12616

Re: [v2] FindText - Capture screen image into text and then find it

Descolada :D 1. Your suggestion is very good. I think you can use custom wrapper functions to implement it. Due to compatibility considerations, I do not want to make significant changes to parameters and return values. 2. Additionally, even though I used to be proficient in V1, when I first tried ...
by feiyue
26 Apr 2023, 00:08
Forum: Scripts and Functions (v2)
Topic: [v2] FindText - Capture screen image into text and then find it
Replies: 31
Views: 12616

Re: [v2] FindText - Capture screen image into text and then find it

Here are some simple introductions: :dance: :beer: FindText is an AHK library that can replace the built-in ImageSearch function for quickly searching for graphics (images) on the screen. Some of its advantages: 1) It does not require an image file, but instead uses a textual representation of the i...
by feiyue
26 Apr 2023, 00:07
Forum: Scripts and Functions (v2)
Topic: [v2] FindText - Capture screen image into text and then find it
Replies: 31
Views: 12616

[v2] FindText - Capture screen image into text and then find it

Hello everyone! This is the V2 version of FindText, which is synchronized with the V1 version. :dance: :beer: For a long time, I wanted to convert FindText to V2 version, but I haven't had the motivation to study V2 seriously, so I haven't completed it. A while ago, I saw that Descolada had already ...
by feiyue
19 Apr 2023, 18:11
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1088
Views: 573665

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

Leox23 You can try this: pic1:="d:\big.bmp" pic2:="d:\small.jpg" if FindTextInPic(rx, ry, pic1, 0, 0, Text:="##10$" . pic2) MsgBox % "Found small pic in big pic : " rx ", " ry else MsgBox % "Can't Found small pic in big pic !" return FindTextInPic(ByRef rx, ByRef ry, pic, err1, err0, Text, args*) {...

Go to advanced search