Search found 349 matches

by feiyue
29 Mar 2021, 14:04
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

bautai You can use it like this: $b:: Text:="|<>*249$71.00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002" if (ok:=FindText(0-150000, 0-150000, 0+150000, 0+150000, 0, 0, Text)) { ; 1 FindText.ScreenToWindow(x1, y1, ok.1.x, ok.1.y) Msgbox, % x1 " , " y1 ...
by feiyue
20 Mar 2021, 16:15
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

@Superblyad
Functions are included in FindText class, so it should be: FindText.ScreenToWindow(x, y, 111, 222)
Or: aa:=new FindText, aa.ScreenToWindow(x, y, 111, 222)
by feiyue
19 Mar 2021, 04:29
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

I have the script loaded into my script and working. But I can not figure out how to replace the msgbox with a stop/go result. With imagesearch (which wasn't detecting my image) I used. ImageSearch, Px, Py, 219,105, 288, 388, test.bmp If Errorlevel sleep, 200 ;pic not found, to continue my loop Els...
by feiyue
18 Mar 2021, 18:18
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

Updated to 8.3 version - 2021/03/19 :dance: :beer: .... 1. Add: Now You can set the capture mouse when capturing an image Use FindText.CaptureCursor(1) . .... 2. Add: The FindText.ImageSearch() function is added, which is completely similar to ....... the built-in command ImageSearch, The coordinate...
by feiyue
18 Mar 2021, 01:20
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

Expand the size of the selection box to adjust the width:35 and height:12 of the main interface and click apply.
adjust “ Height:12 ” to “ Height:50 ”, The actual height is 101 (2*50+1).
by feiyue
15 Mar 2021, 21:05
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

Dillweed Although there is no detailed explanation, but you can touch more to understand each function, as long as the mouse moves to each control, there will be a function prompt. Expand the size of the selection box to adjust the width and height of the main interface and click apply. The Capture...
by feiyue
08 Mar 2021, 20:53
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

denysy1 you can change the coordinates yourself. :D All the input and output coordinates of the FindText function are relative to the screen, You can use the following functions to convert coordinates to relative window coordinates: WindowToScreen(), ScreenToWindow(), ClientToScreen(), ScreenToClie...
by feiyue
08 Mar 2021, 00:34
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

@Qhimin
Maybe this is a BUG of Ahk_H version, you can try like this:

Code: Select all

Gui(cmd, arg1:="")
{
  ;--  local  ;--  Comment out or remove this line
  static
by feiyue
03 Mar 2021, 11:53
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

Updated to 8.2 version - 2021/03/03 :dance: :beer:
1. Add: Added a search direction (dir = 5): From the Center to all around.
2. Modify: The size of machine code is reduced.
by feiyue
19 Feb 2021, 11:06
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

Updated to 8.1 version - 2021/02/19 :beer: :dance: .... 1. Add: since all the input and output coordinates of the FindText function are relative to the screen, ....... You can use the following functions to convert coordinates to relative window coordinates: ....... WindowToScreen(), ScreenToWindow(...
by feiyue
17 Feb 2021, 02:49
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

@thebbandit
After selecting multiple colors, just click the OK button.

There are defects in using HSV color to calculate color similarity,
so I use a more scientific color similarity calculation method.
by feiyue
06 Feb 2021, 23:04
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

@srooo Multiple colors can only be captured by hand.

@need4speed
Loop {
Text .= "|<OK>*93$44.zzzzzzzzzzzzzzCensoredzzzzzzzzzzzzzzs"
}
---->
Loop {
Text := "|<OK>*93$44.zzzzzzzzzzzzzzCensoredzzzzzzzzzzzzzzs"
}
by feiyue
05 Feb 2021, 20:01
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

Add the FindMultColor mode, which is interesting but not intuitive.
Find multi color mode is often used in games. :dance: :beer:
by feiyue
01 Feb 2021, 14:30
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

; Usage: (required AHK v1.1.31+)

Also required Autohotkey.dll v1.1.31+


@thebbandit
In v2, StrPtr(a) <=> &a
by feiyue
30 Jan 2021, 18:47
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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

Updated to 8.0 version - 2021/01/31 :dance: :beer:
.... 1. Add a parameter ( dir ), search direction, up, down, left, right four kinds.
.... 2. Modify: Now, the combination search can mix different mode.
.... 3. Add: the FindMultColor mode is added, it's fun, but not visual enough.
by feiyue
14 Jan 2021, 14:13
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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...
by feiyue
31 Dec 2020, 13:40
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 570975

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.

Go to advanced search