Search found 63 matches

by feiyue
06 Dec 2017, 04:51
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it
Replies: 94
Views: 18010

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

Would it somehow be possible to make it work on dynamic text (Taking the text to find from a file) My idea is somehow to generate the image to find. First I capture all the letters in the alphabet, based on the text and captured letters I then generate the image. Pseudo code: LetterA.="|<A>*14...
by feiyue
23 Nov 2017, 10:30
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it
Replies: 94
Views: 18010

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

Updated to the v5.5 version, in order to identify a variety of color verification code, I improved the color model, now it can adapt to various colors. :D
by feiyue
03 Nov 2017, 04:35
Forum: Scripts and Functions
Topic: ImageSearch useful functions
Replies: 5
Views: 271

Re: ImageSearch useful functions

@vamzicool This is a good idea absolute: use Try...Catch to manually jump out of an infinite loop. :thumbup: :thumbup: :thumbup: I've made some improvements to your code. :dance: ; The timeout parameter uses seconds instead of milliseconds imageWait(imagePath, timeout=10, click=0, offsetX=10, offset...
by feiyue
22 Oct 2017, 06:42
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it
Replies: 94
Views: 18010

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

I've made some minor improvements, and the generated code is easier to copy and use.
by feiyue
05 Oct 2017, 07:57
Forum: Gaming
Topic: My take on Snake
Replies: 36
Views: 1726

Re: My take on Snake

@maestrith Your realization is wonderful! The code is so streamlined. :thumbup: :thumbup:
It contains many advanced applications of AHK, and I can learn a lot. Thank you for sharing!
by feiyue
05 Oct 2017, 06:59
Forum: Bug Reports
Topic: A little Bug about NumPut
Replies: 11
Views: 379

Re: A little Bug about NumPut

By default, all numbers are cached as Int64 or Double. Only pure integers without leading zeroes are not additionally stored as passed in the variable's string buffer. @just me Thank you for your explanation. I finally got it. My guess is wrong, "MyVar=12345678" is not written directly in...
by feiyue
04 Oct 2017, 14:04
Forum: Bug Reports
Topic: A little Bug about NumPut
Replies: 11
Views: 379

Re: A little Bug about NumPut

I guess "MyVar=12345678" has placed the string in the variable address, It seems that for NumGet, the use of MyVar is equivalent to "&MyVar", But for NumPut, the use of MyVar does not necessarily mean "&MyVar" ( When MyVar is a pure digital ). I thought I could ...
by feiyue
03 Oct 2017, 22:54
Forum: Bug Reports
Topic: A little Bug about NumPut
Replies: 11
Views: 379

A little Bug about NumPut

I ran into a confusing place when I was using "NumPut", the help file said: If VarOrAddress is a variable such as MyVar, the address of the variable's string buffer is used. But the following code doesn't work as much as I want. a=12345678 MsgBox, % Varsetcapacity(a) ;-->0 , I want >=4 Num...
by feiyue
03 Oct 2017, 04:47
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it
Replies: 94
Views: 18010

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

I was wondering if it was possible to have the function find and return data for multiple instances of the same image. For example, if the user's screen contains two identical pictures that are being searched for, could the function return info on both of them? Updated to the v5.4 version, Realized...
by feiyue
29 Sep 2017, 11:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it
Replies: 94
Views: 18010

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

Upgrade to version 5.3, changing the returned value of the object. Previously, when looking for multiple images, it would be difficult to extract each matching information if multiple images were found. Now, a two level array is used to improve the situation. :beer: But the original: X:=ok.1, Y:=ok....
by feiyue
27 Aug 2017, 22:50
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 47
Views: 5584

Re: Mouse And Keyboard Macro Recorder v4.5

but I have a hard time understanding how to use Wait image function. Does it works like findtext() ? findtext() function has a capture interface and i don't see any capture interface.... :think: @SpeedMaster, Please refer to the following usage: 1. In the process of recording, if you want to insert...
by feiyue
26 Aug 2017, 02:10
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it
Replies: 94
Views: 18010

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

The following code is for your reference. CoordMode, Mouse Loop { ;-- Find more pictures at a time if ok:=FindText(27,1061,150000,150000,0,0,Pic("pic3a|pic3b|pic3c")) { Loop, % ok.MaxIndex()//5 { i:=(A_Index-1)*5, X:=ok[i+1], Y:=ok[i+2] W:=ok[i+3], H:=ok[i+4], Comment:=ok[i+5], X+=W//2, Y+...
by feiyue
16 Aug 2017, 14:38
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 47
Views: 5584

Re: Mouse And Keyboard Macro Recorder v4.0

In the beginning, I posted it as a simple tool for novices, Because the function is too simple, I do not use it myself. When I'm trying to use it to do a full automatic web page operation, I found out that more features needed to be added. So I made extensive improvements for writing complex automat...
by feiyue
15 Aug 2017, 08:32
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 47
Views: 5584

Re: Mouse And Keyboard Macro Recorder v3.6

I updated the script to v4.0, Added some features:
Wait for the window, wait for the mouse cursor type, wait for the A_CaretX/Y,
wait for the color, wait for the image, wait for change, etc.
by feiyue
07 Aug 2017, 22:09
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 47
Views: 5584

Re: Mouse And Keyboard Macro Recorder v3.5

The unofficial version is only experimental but I hope that the find text tool will be also incorporated in the official version. :thumbup: I know, for advanced users, image search is a very important function, but the number of FindText() code is larger, if integrated in this script is too big, so...
by feiyue
03 Aug 2017, 17:35
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 47
Views: 5584

Re: Mouse And Keyboard Macro Recorder v3.5

I updated the script to v3.5, added a lot of code. :D
Now it can automatically generate ImageSearch code and Coordinate relative image origin code.
Additionally, the Debug button is added to the GUI interface to debug stuck rows.
by feiyue
02 Aug 2017, 23:59
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 47
Views: 5584

Re: Mouse And Keyboard Macro Recorder v3.0

This tool is just for beginners to automatically generate code, for the master, it may not have much effect. :D Another tool I release, FindText() , is a very good tool for writing automated scripts, which implements the search for images and text, and does not generate additional picture files. It'...
by feiyue
29 Jul 2017, 07:18
Forum: Gaming
Topic: Multiple hotkeys switch freely, no Stuck and Failure
Replies: 0
Views: 287

Multiple hotkeys switch freely, no Stuck and Failure

Hello, everybody, I found quick and simultaneous use of multiple hotkeys in the game, It can easily cause stuck and failure. :headwall: So I've come up with a good solution to share with you, hope you like it. :D /* ------------------------------------------- Multiple hotkeys switch freely, no Stuck...
by feiyue
27 Jul 2017, 00:01
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 47
Views: 5584

Re: Macro Record for Mouse and Keyboard v3.0

I updated the script to v3.0, the actual delay is no longer recorded,
and the function of the Ctrl key generation code is enhanced.
However, this also increases the difficulty of novices' use. :D
by feiyue
23 Jul 2017, 15:44
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 47
Views: 5584

Re: Macro Record for Mouse and Keyboard v2.9

@CAH9t, Thank you for your advice. :angel: I updated the script, some adjustments were made for 4, 6, and 8. For advice 3, I think that moving relative to the mouse position is easily affected by user actions, and playback is not accurate enough. In addition, the ControlClick coordinate mode will au...

Go to advanced search