Search found 114 matches

by feiyue
Yesterday, 17:48
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

@FastLearner, Don't copy the form of automatically generated code. :headwall: I believe you can learn to set search scope if you read the introduction. :beer: ;———————————————————— returnArray := FindText( X --> upper left corner X coordinates , Y --> upper left corner Y coordinates , W --> the sear...
by feiyue
21 Sep 2018, 23:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

---------images 1 to 8 all identical----------- ---1st action/click--- [1]234 5678 --2nd action/click-- x123 [4]567 --3rd action/click--- x[1]23 x456 --4th action/click-- xx12 x[3]45 --5th action/click--- xx[1]2 xx34 --6th action/click-- xxx1 xx[2]3 --7th action/click-- xxx[1] xxx2 --8th action/cli...
by feiyue
21 Sep 2018, 04:43
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

Was hoping this would register multiple identical images and possibly number them, if numbered, I'm sure what I displayed would work fine I wrote a simple function SortOK() to sort the array by coordinates. See the example: :dance: SortOK(ok, dy=10) { if !IsObject(ok) return, ok ok2:=[] For k,v in ...
by feiyue
20 Sep 2018, 14:27
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

Updated to the v6.0 version. :beer: 1. Slightly modified the machine code. The image that has been found will be cleaned up in the same color. Avoid matching the next row (column) when using tolerance lookup. 2. After upgrading to v6.0, the search area uses WinAPI's upper left corner X, Y coordinate...
by feiyue
20 Sep 2018, 13:55
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

@nwr425, Although this function FindText() returns all the locations found, because the lookup is from top to bottom, sometimes the middle image is higher than the first image, so it returns first, so the position returned may be disordered and difficult to sort.. I find that the location of these p...
by feiyue
19 Sep 2018, 20:21
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

@nwr425, Your description is too vague, I still don't understand what you mean. You can upload the work picture screenshots, and then explain how to do manual work step by step. If the position of the image remains unchanged after clicking, you can search for the unique image next to it as the origi...
by feiyue
18 Sep 2018, 20:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

Hi, @nwr425, Although this function FindText() returns all the locations found, it is recommended to look for images that appear only once in the full screen. 1. When you write web page automation scripts, you should try to avoid looking for multiple identical images, try to use a unique image, to a...
by feiyue
28 Aug 2018, 17:32
Forum: 脚本函数
Topic: 北京时间校对
Replies: 2
Views: 441

Re: 北京时间校对

这个很好用,谢谢分享! :thumbup: :bravo:
by feiyue
28 Aug 2018, 10:54
Forum: 脚本函数
Topic: AHK 机器码(MCode)的制作
Replies: 8
Views: 5305

Re: AHK 机器码(MCode)的制作

利用TCC动态运行C语言代码的简单方式: (必须在AHK目录下安装 “\TCC-64\tcc.exe” 和 “\TCC-32\tcc.exe”) ;------------------------------------------ ; Using TCC to run C code (By FeiYue) ;------------------------------------------ Goto, F1 F1:: Code= ( char * __attribute__((stdcall)) hello(char * out) { char str[]="Hello Worl...
by feiyue
26 Aug 2018, 18:26
Forum: 脚本函数
Topic: AHK源代码加密器 v2.6
Replies: 32
Views: 4842

Re: AHK源代码加密器 v2.5

更新到v2.5版本,提高了破解的难度,但还是防菜鸟防不了高手。
by feiyue
19 Aug 2018, 19:03
Forum: 教程资料
Topic: DllCall的使用指南
Replies: 0
Views: 295

DllCall的使用指南

DllCall的使用指南 —— By FeiYue 一、AHK的DllCall简介 1、DllCall是AHK的一个强大功能,可以调用Dll文件中的函数, 例如WinAPI函数,从而可以实现AHK自身没有提供的功能。原则上讲, 可以调用任何WinAPI函数,就可以实现所有编程功能,类似于C语言。 2、DllCall的基础知识请参看AHK帮助,它的使用格式是: Result := DllCall("[DllFile\]Function" [, Type1,Arg1, Type2,Arg2, "Cdecl ReturnType"]) 它与AHK普通函数 R...
by feiyue
16 Aug 2018, 12:43
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

@NewJohn45, I think you can improve in this way: 1, combinatorial search can avoid multiple screenshots. 2, narrowing the search range can significantly speed up the process. Set 150 corresponds to a range of 301 * 301 pixels. Text:="|<Image1>*179$48.zXzzzzzzzVzzzzzzzkzzzzzzzsDzzzzzzw7zzzzzzzVz...
by feiyue
16 Aug 2018, 03:56
Forum: Scripts and Functions
Topic: MinHook - API Hooking Library
Replies: 5
Views: 364

Re: MinHook - API Hooking Library

Hi tmplinshi, This is a very useful script! thanks for sharing! :wave:

I think Example2 needs to modify one line (Otherwise I can't see the effect.):

Example2 - GetOpenFileNameW.ahk
return DllCall(hook1.original, "ptr", ofn), hook1 := ""
by feiyue
13 Aug 2018, 23:34
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

@nwr425, Many positions on the web will change color when the mouse moves there. :D
So when capturing the picture, hold the right button first and then move to other places to release the right button.
by feiyue
21 Jul 2018, 11:50
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

@pedroabs, I hope the following two functions can help you. :wave: /* Use examples: Loop { pic1:=GetPicArr(100, 100, 20, 10) Sleep, 1000 pic2:=GetPicArr(100, 100, 20, 10) if ComparePicArr(pic1, pic2, n:=0.3) { MsgBox, The screen image changed ! Send z } } */ ; Get the RGB value of all the points of ...
by feiyue
20 Jul 2018, 13:45
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

Updated to the v5.9 version. The PicX() function is added. It is used for FindText2(). :beer: In webpage automation tasks, I find that sometimes the text is slightly changed (the spacing between words becomes larger), causing the FindText() function to fail. So I added the PicX() function to divide ...
by feiyue
19 Jul 2018, 19:46
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 168
Views: 39084

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

@frd, Hello! :beer:
ok:=FindText(……) If an image is found, an array will be returned. If it is not found, it will return to 0.
So you just need to compare the ok with 0. if (ok!=0) ;--> is True or False
by feiyue
10 Jul 2018, 10:08
Forum: Gaming
Topic: Stop old thread immediately when new hot key is started
Replies: 0
Views: 171

Stop old thread immediately when new hot key is started

For multiple hotkeys used in games, new hotkeys may interrupt old threads. I think of a way to clean up old threads before starting a new hotkey thread. :dance: :beer: /* Stop old thread immediately when new hot key is started 2018-07-10 By FeiYue */ #NoEnv #NoTrayIcon #SingleInstance off if 0 = 0 o...
by feiyue
04 Jul 2018, 05:38
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 76
Views: 19839

Re: Mouse And Keyboard Macro Recorder

Automatic scripts are faster and better as long as they are reliable.

If you want to slow down, you can add your own delay: Sleep(1000)、Sleep(500). :beer:

Go to advanced search