Search found 252 matches
- 14 Jan 2021, 14:13
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
Updated to 7.9 version - 2021/01/15 :dance: :beer: .... 1. Modify: At present, it can support 101 × 101 pixel capture. .... The previous sub window will generate 10201 controls, the number of controls exceeds the limit, .... now do not use the sub window to generate enlarged image. .... 2. Modify: A...
- 08 Jan 2021, 01:43
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
@Qhimin
Just update it !
Just update it !

- 31 Dec 2020, 13:40
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
Your remote control can't simulate the physical state of keys,
It may only simulate the logic state of the key.
You can try to replace All GetKeyState("RButton","P") with GetKeyState("RButton") in the code.
Or try the CTRL key instead of the right key to capture the picture.
It may only simulate the logic state of the key.
You can try to replace All GetKeyState("RButton","P") with GetKeyState("RButton") in the code.
Or try the CTRL key instead of the right key to capture the picture.
- 31 Dec 2020, 06:16
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
#Persistent Keeps a script permanently running (that is, until the user closes it or ExitApp is encountered). If this directive is present anywhere in the script, that script will stay running after the auto-execute section (top part of the script) completes. This is useful in cases where a script c...
- 29 Dec 2020, 15:53
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
srooo You can try this: :beer: :dance: #Include <FindText> F1:: ;----------- r:=FindText.Gui("GetRange"), x1:=r.1, y1:=r.2, x2:=r.3, y2:=r.4 FindText.SavePic(file:="c:\a.bmp", x1, y1, x2, y2) Text1:=FindText.GetTextFromScreen(x1, y1, x2, y2) ;----------- Gui, New Gui, +LastFound +AlwaysOnTop -Capti...
- 19 Dec 2020, 21:07
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
Updated to 7.8 version - 2020/12/20 
.... 1. Modify: FindText_Gui() function is moved to the FindText class, reducing the extra functions.
.... 2. The text of the interface is read from one language library, which is easy to translate into other languages.

.... 1. Modify: FindText_Gui() function is moved to the FindText class, reducing the extra functions.
.... 2. The text of the interface is read from one language library, which is easy to translate into other languages.
- 17 Dec 2020, 12:59
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
keytrap This function has no OCR effect and can only find the text in the text library. You can wait for the text to be prepared. For example: :beer: WaitPic(time, x1, y1, x2, y2, Text, click:=1, offsetX:=0, offsetY:=0, WaitNotExist:=0) { timeout:=A_TickCount+Round(time*1000), found:=0 Loop { ok:=F...
- 17 Dec 2020, 12:12
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
Hi @feiyue , thanks for your excellent script. I'm trying to port the refScan algorithm to C#, so instead of the mcode I want to just use the regular C code that is in the comments at the bottom, and port that code to C#. But I notice the C function signature takes an extra argument Stride that you...
- 17 Dec 2020, 11:43
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
The SavePic() function, similar to the CaptureScreen() function, is used to capture screen shots and save to a file, but it can only be saved as a BMP file. :dance: :beer: F1:: r:=FindText_Gui("GetRange"), x1:=r.1, y1:=r.2, x2:=r.3, y2:=r.4 FindText.SavePic("c:\a.bmp", x1, y1, x2, y2) Run, c:\a.bmp...
- 12 Dec 2020, 06:09
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
The SavePic() function, similar to the CaptureScreen() function, is used to capture screen shots and save to a file, but it can only be saved as a BMP file. :dance: :beer: F1:: r:=FindText_Gui("GetRange"), x1:=r.1, y1:=r.2, x2:=r.3, y2:=r.4 FindText.SavePic("c:\a.bmp", x1, y1, x2, y2) Run, c:\a.bmp ...
- 10 Dec 2020, 09:00
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
Updated to 7.7 version - 2020/12/10 .... 1. Modify: Images can already be found correctly on multiple displays. .... 2. Add: the SavePic() function is added to save the screenshot for debugging. .... 3. Some buttons are added in the main interface to adjust the result Text in the code. For a long ti...
- 06 Dec 2020, 01:06
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
In addition to adjusting the fault tolerance threshold,
I recommend using multiple similarity texts to search together, for example:
I recommend using multiple similarity texts to search together, for example:
Code: Select all
Text:="|<abc_1>......"
Text.="|<abc_2>......"
Text.="|<abc_3>......"
if (ok:=FindText(0, 0, A_ScreenWidth, A_ScreenHeight, 0.1, 0.1, Text))
- 06 Dec 2020, 00:52
- Forum: Scripts and Functions
- Topic: Excel_Get
- Replies: 21
- Views: 7830
Re: Excel_Get
This method can automatically get the correct control: :dance: :beer: F1:: WordObj:=Word_Get("A") Word_Get(WinTitle="ahk_class OpusApp") { return Office_Get(WinTitle) } Ppt_Get(WinTitle="ahk_class PP12FrameClass") { return Office_Get(WinTitle) } Excel_Get(WinTitle="ahk_class XLMAIN") { return Office...
- 08 Nov 2020, 19:03
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
Updated to 7.6 version - 2020/11/09 :dance: :beer: .... 1. Modify: The functions are packaged into the FindText class, ....... which can generate multiple objects, bind different windows, ....... and store different screenshots. However, this creates some incompatibility. ....... For example: MouseT...
- 04 Nov 2020, 14:34
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
Sorry, GetTextFromScreen() has been changed to FindText_GetTextFromScreen() in the new version.
If you can't use this combination hotkey (^RButton),
It can be changed to a simple hotkey, such as F1.
If you can't use this combination hotkey (^RButton),
It can be changed to a simple hotkey, such as F1.
- 24 Oct 2020, 20:42
- Forum: 脚本函数
- Topic: 简单可视化鼠标手势 v1.5
- Replies: 0
- Views: 542
简单可视化鼠标手势 v1.5
这是一个与360浏览器中的鼠标手势类似的功能,鼠标手势的轨迹可视化,也许有人需要。 :dance: :beer: ;------------------------------------ ; 简单可视化鼠标手势 v1.5 By FeiYue ;------------------------------------ #NoEnv #SingleInstance, force SetWinDelay -1 SetBatchLines, -1 CoordMode, Mouse CoordMode, ToolTip 生成画板() tip:= { 0 : 0 , "上" : "上翻页" , "下" ...
- 21 Oct 2020, 21:15
- Forum: 脚本函数
- Topic: AHK源代码加密器 v3.1
- Replies: 107
- Views: 52885
Re: AHK源代码加密器 v3.1
If you use a continuation section larger than 16,383 characters,
an error message will appear: "Continuation section too long"
It can be modified as follows:
an error message will appear: "Continuation section too long"
Code: Select all
fs=
(` %
...... too long > 16,383
)

Code: Select all
fs=
(` %
...... not too long < 16,383
)
fs=%fs%
(` %
...... not too long < 16,383
)
- 21 Oct 2020, 10:15
- Forum: 脚本函数
- Topic: AHK源代码加密器 v3.1
- Replies: 107
- Views: 52885
Re: AHK源代码加密器 v3.1
@djuga You still haven't made it clear. You should publish some of your code.
You see, there is no problem using FileInstall here, Why can't you?
FileInstall, AutoHotkey.exe, %Ahk%
You see, there is no problem using FileInstall here, Why can't you?
FileInstall, AutoHotkey.exe, %Ahk%
- 21 Oct 2020, 01:16
- Forum: 脚本函数
- Topic: AHK源代码加密器 v3.1
- Replies: 107
- Views: 52885
- 14 Oct 2020, 05:49
- Forum: Scripts and Functions
- Topic: FindText - Capture screen image into text and then find it Topic is solved
- Replies: 622
- Views: 227627
Re: FindText - Capture screen image into text and then find it Topic is solved
@JavierBO You can do this:
Code: Select all
#Include <FindText>
^RButton::
w:=10, h:=6
CoordMode, Mouse
MouseGetPos, x, y
KeyWait, RButton
s:=FindText_GetTextFromScreen(x-w, y-h, x+w, y+h)
Clipboard=if (ok:=FindText(0,0,150000,150000,0,0,"%s%"))
MsgBox, 4096,, Copy OK !, 0.5
return