Search found 102 matches

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: 148
Views: 35294

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

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: 148
Views: 35294

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: 148
Views: 35294

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: 148
Views: 35294

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: 148
Views: 35294

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

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: 75
Views: 18035

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:
by feiyue
19 Jun 2018, 23:49
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 75
Views: 18035

Re: Mouse And Keyboard Macro Recorder

Update to v4.6 version, Cancel the relative window selection box, all use relative screen coordinates, it looks troublesome, actually use is very simple. :dance: Let me be honest with you, I don't like screen coordinates and manual conversion by default at all. Sorry, I still prefer to use absolute ...
by feiyue
17 Jun 2018, 15:30
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 148
Views: 35294

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

@jt_kirk, It is more troublesome to generate a function to read a picture file and then convert it to two valued text. I see you say there are not many pictures that need to be converted. So a simple solution is to open these pictures directly, and then use my tool to capture screen images to genera...
by feiyue
17 Jun 2018, 15:16
Forum: 脚本函数
Topic: AHK源代码加密器 v2.2
Replies: 31
Views: 4323

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

Would you be interested in figuring out why your encryption messes with this script's encryption/decryption? Frankly your work is beyond my current comprehension and I barely have a grasp on Laszlo's work. Basically if I encrypt Laszlo's SW protection script with your script, I only get two unique ...
by feiyue
09 Jun 2018, 17:38
Forum: 脚本函数
Topic: AHK源代码加密器 v2.2
Replies: 31
Views: 4323

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

FluffyMrKitty wrote:Is there any way to have the encrypted script run without a tray icon?

add #NoTrayIcon
by feiyue
08 Jun 2018, 22:38
Forum: 脚本函数
Topic: AHK源代码加密器 v2.2
Replies: 31
Views: 4323

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

@alware, You can test a simple script encryption.

Code: [Select all]GeSHi © Codebox Plus

Msgbox, OK !
Esc::Reload()
by feiyue
08 Jun 2018, 14:31
Forum: 脚本函数
Topic: AHK源代码加密器 v2.2
Replies: 31
Views: 4323

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

@alware, You need to re-encrypt the script ! :wave: The initial working directory of the encrypted script (or compiled program) is the directory where the file is located. For example, your script is in the D:\ directory, and your picture is in the same directory D:\001.jpg. When you search for pict...
by feiyue
08 Jun 2018, 13:45
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 148
Views: 35294

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

I try to use GetDCEx and BitBlt to get background windows.
Unfortunately, it failed on Win7. :headwall:
by feiyue
07 Jun 2018, 17:14
Forum: Scripts and Functions
Topic: Simple script for selecting screen area
Replies: 5
Views: 449

Re: Simple script for selecting screen area

@guest3456, You're using another good script. :thumbup: @toralf, I add a background canvas that seems unnecessary, It's just for fun. :D The advantage of using background canvas is that it is easy to select the scope and then screenshots, so that the current static picture can be retained. The featu...
by feiyue
07 Jun 2018, 01:25
Forum: 脚本函数
Topic: AHK源代码加密器 v2.2
Replies: 31
Views: 4323

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

@AHKStudent, I fixed this problem, and now it can package the AHK main program into a separate program.

@alware, Because script runs through named pipes, A_ScriptDir is useless.
You should use dir:=A_WorkingDir to get the used directory of the compiled program.
by feiyue
07 Jun 2018, 01:02
Forum: Scripts and Functions
Topic: Simple script for selecting screen area
Replies: 5
Views: 449

Simple script for selecting screen area

This is a simple script for selecting screen area. You can try it. :dance: :beer: /* ------------------------------------------ Simple script for selecting screen area v1.8 By FeiYue Instructions: 1.Press the hotkey "F1" to start the LButton key to drag the selection range. Then you can us...
by feiyue
05 Jun 2018, 05:18
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 148
Views: 35294

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

guest26789 wrote:Is there a way to make it only search a certain window? (or coordinates in a window?)

WinGetPos, x, y, w, h, A
FindText(x+w//2,y+h//2,w//2,h//2,0,0,Text)
by feiyue
03 Jun 2018, 17:04
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 75
Views: 18035

Re: Mouse And Keyboard Macro Recorder

I have provided a useful function: WaitChange(x, y, w:=150, h:=1, timeout:=3) . It can greatly improve the reliability of automated scripts. :dance: My idea is to get a screenshot before any mouse clicks, After clicking, you can wait until a certain position of the screen changes. (just pres...

Go to advanced search