Search found 162 matches

by feiyue
30 May 2019, 01:34
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 83
Views: 32584

Re: Mouse And Keyboard Macro Recorder

My original intention was to provide a simple recording tool for beginners. As I added more and more private functions to this recording tool, it became more and more complex, making it difficult for beginners to use. My English is not good enough to explain how to use it clearly. So I gave up the l...
by feiyue
30 May 2019, 01:03
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 324
Views: 81049

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

At present, the commentary text can not be a space, :headwall: the clever way is to replace the space with a non-conflicting character. :xmas: For example (If you want to find "o k"): Text.="|<o>**50$10.7lna7kD0w3kD0q7QMT8" Text.="|<k>**50$9.870M30M30Nv6NXMT3wNX6Mv3ww" ; The data of the space charac...
by feiyue
29 May 2019, 03:04
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 83
Views: 32584

Re: Mouse And Keyboard Macro Recorder

1. The save path of the original script is the program directory of AutoHotkey.exe. You can easily change to other directories, such as: LogFile:="c:\a.txt" :beer: dir:=A_IsCompiled ? A_ScriptDir : RegExReplace(A_AhkPath,"\\[^\\]+$") LogFile:=dir "\Record.txt" 2. When you want to loop, you can click...
by feiyue
29 May 2019, 02:51
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 324
Views: 81049

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

manehscripts Hello! :wave: 1. I hadn't found that object keys were case-insensitive before: arr["abc"]==arr["ABC"] So please modify this Pic() function: Pic(comments, add_to_Lib=0) { static Lib:=[] if (add_to_Lib) { re:="<([^>]*)>[^$]+\$\d+\.[\w+/]+" Loop, Parse, comments, | if RegExMatch(A_LoopFie...
by feiyue
29 Apr 2019, 08:36
Forum: Ask For Help
Topic: A_CaretX, A_CaretY cannot get the correct cursor position
Replies: 4
Views: 355

Re: A_CaretX, A_CaretY cannot get the correct cursor position

AHK is checking hwndCaret instead of hwndFocus . Yes, my code above has a BUG, and AHK built-in A_CaretX, A_CaretY is correct, although not perfect, but can only use built-in variables. :beer: F1:: CoordMode, Caret, Screen GetCaretPos(x, y) MsgBox, % "MY :`t" x ", " y "`nAHK:`t" A_CaretX ", " A_Car...
by feiyue
28 Apr 2019, 08:52
Forum: Ask For Help
Topic: A_CaretX, A_CaretY cannot get the correct cursor position
Replies: 4
Views: 355

A_CaretX, A_CaretY cannot get the correct cursor position

I found that the cursor position variable built in AHK is incorrect or empty in browsers or some other programs. Please fix it. :beer: F1:: CoordMode, Caret, Screen GetCaretPos(x, y) MsgBox, % "MY :" x "," y "`nAHK:" A_CaretX ", " A_CaretY return GetCaretPos(ByRef x, ByRef y) ;-- By FeiYue { static ...
by feiyue
23 Apr 2019, 02:56
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 324
Views: 81049

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: 4
Views: 822

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 324
Views: 81049

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: 840

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.

Go to advanced search