Search found 206 matches

by feiyue
29 Mar 2020, 13:15
Forum: 脚本函数
Topic: AHK源代码加密器 v2.7
Replies: 59
Views: 24386

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

If you need to include files that are not confidential, you can continue to use the #include command:
#Include %A_AhkPath%\..\Lib\Gdip.ahk
Otherwise, copy the contents of the library file to your script.

如果需要包含的文件不用保密,你可以继续使用#Include命令,否则请自己复制库文件的内容到脚本中。
by feiyue
18 Mar 2020, 14:44
Forum: Ask For Help
Topic: How to stop script when a new instance is run
Replies: 4
Views: 270

Re: How to stop script when a new instance is run

Add the following functions anywhere in your script. :beer: OnlyOne() { local static init:=OnlyOne() Gui, __ForClose__: Show, Hide, <<%A_ScriptName%>> Gui, __ForClose__: +Hwndmyid dhw:=A_DetectHiddenWindows DetectHiddenWindows, On WinGet, list, List, <<%A_ScriptName%>> ahk_class AutoHotkeyGUI Loop, ...
by feiyue
18 Mar 2020, 10:58
Forum: Scripts and Functions
Topic: Online MCode Generator(Beta, Tool)
Replies: 22
Views: 1478

Re: Online MCode Generator(Beta, Tool)

Code: Select all

somasoma(a,b)
{
    static _Function:=""
    if (!_Function)
    {
        MCode := "2,x64:VUiJ5YlNEIlVGLgDAAAAXcOQkJCQ,x86:VYnluAMAAABdww=="
        _Function := BentschiMCode(MCode)
    }
    E := DllCall( _Function, "int", a, "int", b, "cdecl int")  ; Don't use &_Function
    return E
}
by feiyue
11 Mar 2020, 23:24
Forum: Scripts and Functions
Topic: Mouse And Keyboard Macro Recorder
Replies: 95
Views: 55611

Re: Mouse And Keyboard Macro Recorder

Updated to 2.1 version - 2020/03/12 1. Put the record file in the temporary folder to avoid that some computers cannot generate the record file. 2. Record the actual delay instead of a uniform delay of 0.5 seconds. ... Note: if the actual delay is large, please modify the record file yourself. 3. I ...
by feiyue
27 Feb 2020, 22:06
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

tobsto occupied For using FindText() to find an image, the first is to make sure that the Text string of the image is correct, The second is to make sure that the image is included in the lookup scope. For novices, full screen search is enough. For example: FindText(0, 0, 150000, 150000,...) If you...
by feiyue
26 Feb 2020, 15:15
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

You can easily view the last screenshot (if you only capture a small range of images, because it will be superimposed on the old image, so the full screen image is still displayed here): F2:: ft_ShowScreenShot(onoff:=!onoff) Here is a quick way to generate the FindText call script: F1:: r:=ft_Gui("C...
by feiyue
30 Jan 2020, 16:56
Forum: Ask For Help
Topic: Search Image in an area in Inactive Window Topic is solved
Replies: 13
Views: 680

Re: Search Image in an area in Inactive Window Topic is solved

global winTarget := "Untitled.png - Paint"
by feiyue
30 Jan 2020, 16:02
Forum: Ask For Help
Topic: How can I un-encrypt my script? Topic is solved
Replies: 9
Views: 559

Re: How can I un-encrypt my script? Topic is solved

Here is an example of getting the source code by yourself: Tip: you must uncomment "; . togetcode(s)" from the encryptor script to enable togetcode(s) InputBox, password,, `n`nPlease input password:,,,,,,,, [email protected].com Msgbox, % Func("getcode").Call(password) You can synchronously change the private...
by feiyue
30 Jan 2020, 15:55
Forum: 脚本函数
Topic: AHK源代码加密器 v2.7
Replies: 59
Views: 24386

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

Here is an example of getting the source code by yourself: Tip: you must uncomment "; . togetcode(s)" from the encryptor script to enable togetcode(s) InputBox, password,, `n`nPlease input password:,,,,,,,, [email protected].com Msgbox, % Func("getcode").Call(password) You can synchronously change the private...
by feiyue
19 Jan 2020, 21:37
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

Correct it: #MaxThreadsPerHotKey 3 #NoEnv SetDefaultMouseSpeed, 0 #Include <FindText> F2:: Toggle := !Toggle Loop { Text1:="|<>*160$58.D6k20A0001WP080k000ABU0U30000U6lmMDVltm0P9f0n8a8c1hUs34WMWU6q3UAHxXz3PM90l86869gWa34WMWD6lm8AFtVu" if (ok:=FindText(818,625,973,730, 0, 0, Text1)) CoordMode, Mouse X...
by feiyue
19 Jan 2020, 05:49
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

Updated to 7.4 version - 2020/01/20
.... 1. Add: the GetTextFromScreen() function and ft_Gui("Capture_NoGui") is added.
....... So you can quickly generate the final code without GUI interface. :dance:
by feiyue
19 Jan 2020, 05:40
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

ahk nooblie I think you can do this: #MaxThreadsPerHotKey 3 #NoEnv SetDefaultMouseSpeed, 0 F2:: Toggle := !Toggle Loop { Text1:="|<>*160$58.D6k20A0001WP080k000ABU0U30000U6lmMDVltm0P9f0n8a8c1hUs34WMWU6q3UAHxXz3PM90l86869gWa34WMWD6lm8AFtVu" if (ok:=FindText(818,625,973,730, 0, 0, Text1)) CoordMode, M...
by feiyue
05 Jan 2020, 02:14
Forum: Scripts and Functions
Topic: QuickTextMenu() Text-inserting menus
Replies: 10
Views: 1366

Re: QuickTextMenu() Text-inserting menus

I'm sorry, the code I added is a little wrong : :headwall:

Code: Select all

WinWaitNotActive, #32768
please fix it : :wave:

Code: Select all

While !WinExist("A")
  Sleep, 10
by feiyue
03 Jan 2020, 10:41
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

xoabc You are welcome. :D In the main English forum, please use English for communication, this is respect for most people. You can go to the Chinese sub forum for help, it can be communicated in Chinese. Your requirements are too simple, I'm not interested in writing scripts for you. You can learn...
by feiyue
02 Jan 2020, 11:40
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

When used in the game, the text color does not change much, but the background image often changes, So you can set the text tolerance to 0.1, and the background tolerance to 1 (make background transparent), Then try to get the minimum search range. The following range is the whole range of the windo...
by feiyue
01 Jan 2020, 20:26
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

It's easy to change the screen coordinates to the window coordinates by subtracting the upper left corner coordinates of the window. :D X:=ok.1.x, Y:=ok.1.y WinGetPos, winx, winy,,, ahk_id %bdm_id% X:=X-winx, Y:=Y-winy ControlClick, x%X% y%Y%, ahk_id %bdm_id%,, L, 1, NA If you want to convert screen...
by feiyue
21 Dec 2019, 02:11
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

Let me talk about how to use background search: :dance: 1. After grabbing an image in a window, click bind window button, and the enlarged image will change dynamically with the movement of the mouse. At this time, you can switch other windows to block the window and see if you can perspective the i...
by feiyue
20 Dec 2019, 12:20
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

Updated to 7.3 version - 2019/12/21 .... 1. Add: the BindWindow() function is added so that the window image can be found in the background. ....... It is a state that affects subsequent FindText() and ScreenShot() functions. I've implemented the background search window image since a long time ago,...
by feiyue
16 Dec 2019, 23:27
Forum: Scripts and Functions
Topic: FindText - Capture screen image into text and then find it Topic is solved
Replies: 474
Views: 151415

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

If you want to avoid mouse flicker during quick screenshots,
you can modify it as follows. The disadvantage is that some transparent windows cannot be captured.

Code: Select all

0x00CC0020|0x40000000  --> 0x00CC0020

Go to advanced search