Search found 349 matches

by feiyue
22 Nov 2021, 01:38
Forum: 请求帮助
Topic: 求教数字转换
Replies: 1
Views: 1479

Re: 求教数字转换

你可以参考这个。 ;数字转大写金额 by FeiYue n2c(n){ if !(n ~= "^[1-9][\d\.]*$") ;当不是数字 return r:=StrSplit(n,".") n:=StrSplit(r[1]), n2:=StrSplit(r[2]) a:=StrSplit("零壹贰叁肆伍陆柒捌玖") b:=StrSplit("元拾佰仟万拾佰仟亿拾佰仟") b2:=StrSplit("角分") c:=d:="", k:=n.Length() Loop, % k c:=a[n[k+1-A_Index]+1] . b[A_Index] . c d:=SubStr(c,1,-2*b...
by feiyue
21 Nov 2021, 22:21
Forum: Ask for Help (v1)
Topic: The ErrorLevel value of each thread is not independent Topic is solved
Replies: 3
Views: 1295

Re: The ErrorLevel value of each thread is not independent Topic is solved

I found a thread independent variable that can be set, which can be used as follows:

Code: Select all

F1:: 
Msgbox, % A_LastError
DllCall("SetLastError", "uint",555555)
Msgbox, % A_LastError
return

F2::
Msgbox, % A_LastError
DllCall("SetLastError", "uint",666666)
Msgbox, % A_LastError
return
by feiyue
21 Nov 2021, 14:15
Forum: Ask for Help (v1)
Topic: The ErrorLevel value of each thread is not independent Topic is solved
Replies: 3
Views: 1295

The ErrorLevel value of each thread is not independent Topic is solved

[Moderator's note: Topic moved from Bug Reports.] The help file says: each thread maintains its own ErrorLevel value, But I found that the ErrorLevel value of new thread inherits the previous thread instead of starting from 0, which makes the ErrorLevel value of each thread is not independent. For ...
by feiyue
21 Sep 2021, 23:36
Forum: 脚本函数
Topic: AHK源代码加密器 v3.3
Replies: 148
Views: 134513

Re: AHK源代码加密器 v3.2

@TAC109 :beer: :dance:
You're right. I updated it and added your memory cleaning protection code.
by feiyue
12 Sep 2021, 16:18
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

Updated to 8.6 version - 2021/09/12 :dance: :beer: 1. Modify: FindText() adds two parameters that output X,Y coordinates as the first two parameters of the function, This is more friendly to novices without adding additional calculation coordinate statements. However, this will cause some compatibil...
by feiyue
02 Sep 2021, 20:16
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

Humbug :beer: 1. The search image should be as small as possible, so it is faster and more reliable. 2. For images that can switch the foreground and background colors, I suggest capturing the image twice, and then connecting it to find it at one time (Text := Text1 . Text2). 3. For the default fau...
by feiyue
18 Aug 2021, 12:30
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

Because I use automatic translation, I don't know if you can understand the following explanation. :) In the multi-color search mode, you can find the image by finding the colors of multiple relative positions, which turns the image search into finding several points of different colors on the image...
by feiyue
18 Aug 2021, 01:57
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

The allowable error of the color in the Text string is whether a single color matches.
The fault tolerance in parameters ( 0.1, 0.1 ) is aimed at how many points can not match. :)
by feiyue
31 Jul 2021, 21:38
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

byzod If you want to use FindText for games, I recommend using MultiColor search mode. :beer: :dance: thebbandit FindText supports multiple displays, so the image captured by BitBlt is the image of the virtual desktop (from GetDesktopWindow()). I don't know why. byzod The default fault tolerance of...
by feiyue
31 Jul 2021, 21:01
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

SteveMylo ok:=FindText() Do not modify the value of ErrorLevel. If you want to judge whether it is successful, you can use if (ok) to judge. The use of FindText.ImageSearch() is similar to the built-in function ImageSearch. It will modify the value of ErrorLevel. ; eg: ImageSearch, rx, ry, 0, 0, 50...
by feiyue
25 Jul 2021, 00:37
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

pv007 You can use FindText.ASCII() to display images. For example: :dance: #Include <FindText> F1:: if (A_Cursor!="IBeam") return bak:=ClipboardAll Clipboard:="" Send {End}+{Home}^c{Ctrl Up} ClipWait, 2 s:=Clipboard, Clipboard:=bak if (s="") return ;--------------------- s:=FindText.ASCII(s) Loop, ...
by feiyue
24 Jun 2021, 20:04
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

Shanghei You can do this: :D 1. Search multiple words with subtle differences at one time Text := "|<hello>*149$30.k02A0k02A0k02A0y7WASl8GAll8GAVlDmAVl82AVl83All7VaSU" Text .= "|<hello>*149$30.U0680U0680U0680yDa8SWMa8XWEq9VWTq9VWE69VW828WW73ASU" 2. Set the appropriate fault tolerance instead of the...
by feiyue
09 Jun 2021, 12:43
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

braddo I adjusted the interface a little. You can try to see if the problem has been solved. :D tpitera I'm from China and can't connect to youtube, so I don't use YouTube basically. FindText is not an OCR tool. It can only recognize a small number of template characters in a specified range on the...
by feiyue
09 May 2021, 02:40
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

kauan014 The picture you cut is too small. I don't know what you are looking for. If you want to use FindText in the game, you should use color mode or multi-color mode. If you are still searching for monochrome blocks, you can still use the function above (MakeOneColorPic). I can't tell you how to...
by feiyue
07 May 2021, 23:29
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

kauan014 I don't know why you don't use the tool to generate the search text of a color box, but use a separate color to manually generate the search text of a color box. The search color box is not suitable for combination mode. You can use the following function: #Include <FindText> MakeOneColorP...
by feiyue
07 May 2021, 19:31
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

If you want to search for images composed of single colors, I recommend not using combination search mode, but using multi-color search mode. like this: #Include <FindText> t1:=A_TickCount, X:=Y:="" MakeOneColorPic(color, w, h, variation:=10, comment:="") { Text:="|<" comment ">##" variation "$" Loo...
by feiyue
07 May 2021, 02:55
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

@kauan014 :headwall:
You didn't grab the right color. You should test it first.
The Color Mode is: Text:="|<>[email protected]$1.k"
The MultiColor mode is: Text:="|<>##0$0/0/EA00FF"
by feiyue
06 May 2021, 22:01
Forum: Scripts and Functions (v1)
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 1087
Views: 567692

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

@kauan014 Please look at the function description carefully and try it yourself.

Go to advanced search