Search found 694 matches
- 07 Apr 2024, 07:14
- Forum: 脚本函数
- Topic: [V2] file2clip() - Adding files to the clipboard
- Replies: 0
- Views: 246
[V2] file2clip() - Adding files to the clipboard
修改自论坛的 V1 脚本。 file2clip(list, is_cut?) { if !list := Trim(list, "`n`r`t ") return while !DllCall("OpenClipboard", "UPtr", A_ScriptHwnd) { if A_Index > 5 return Sleep 50 } list := RegExReplace(list, '\s*\n\s*', '`n') ; 0x42 = GMEM_MOVEABLE(0x2) | GMEM_ZEROINIT(0x40) hPath := DllCall("GlobalAlloc", "u...
- 16 Jun 2022, 00:07
- Forum: Ask for Help (v2)
- Topic: What determines the numerical size of a memory address?
- Replies: 2
- Views: 523
Re: What determines the numerical size of a memory address?
I am in a dilemma. I went to the rust forum to give feedback. the rust people said that the values were large but normal and safe in rust. the AHKDLL error was a problem with the DLL itself and had nothing to do with rust. On the other hand, AHKDLL works fine in all software, but only crashes in rus...
- 15 Jun 2022, 09:32
- Forum: Ask for Help (v2)
- Topic: What determines the numerical size of a memory address?
- Replies: 2
- Views: 523
What determines the numerical size of a memory address?
I use other software to call ahk-h.dll(64) and it crashes a lot, the reason for the crash is that it has a very large memory address, for example "strptr('a') => 3092365760128", while the address value we get when using ahk.exe is usually much smaller. It frequently reports an error "Critical Error:...
- 13 Jun 2022, 19:51
- Forum: Bug Reports
- Topic: [V2-B4] Invalid hotkey Topic is solved
- Replies: 2
- Views: 620
- 13 Jun 2022, 01:39
- Forum: AutoHotkey_H
- Topic: #MapCaseSense triggers an error
- Replies: 0
- Views: 1699
#MapCaseSense triggers an error
This script is normal if the #MapCaseSense command is not used. to:=map("a", 1) li:=to.Clone() MsgBox li["a"] When used it will report an error of. #MapCaseSense Off to:=map("a", 1) li:=to.Clone() MsgBox li["a"] Error: Key not found. Specifically: a Line# 002: to := map("a", 1) 003: li := to.Clone()...
- 13 Jun 2022, 01:30
- Forum: Bug Reports
- Topic: [V2-B4] Invalid hotkey Topic is solved
- Replies: 2
- Views: 620
[V2-B4] Invalid hotkey Topic is solved
This hotkey is normal in B3, in B4 it reports an error:.
Code: Select all
Error at line 1.
Line Text: ~ CapsLock & i:: { MsgBox }
Error: Invalid hotkey.
The program will exit.
- 20 May 2022, 08:29
- Forum: Scripts and Functions (v2)
- Topic: rqrr() - QR code decoding
- Replies: 0
- Views: 586
rqrr() - QR code decoding
Compiled from " WanzenBug/rqrr ". It is a little lighter and faster than the current "zbarimg.exe" solution, but the recognition rate is lower. rqrr(pic) { static _ := DllCall("LoadLibrary", "str", "rqrr.dll", "Cdecl UPtr") if sz := dllcall("rqrr.dll\read", "ptr", st := strbuf(pic, "utf-16"), "uint"...
- 18 May 2022, 01:20
- Forum: Scripts and Functions (v1)
- Topic: [Script] Quick Picto Viewer v5+
- Replies: 260
- Views: 85075
Re: [Script] Quick Picto Viewer v5+
I tried using the opencv-ahk bindings released by thqby and loaded the images and got a 2.5x performance improvement compared to AutoHotkey's built-in image processing. This seems to be a good option. But I have not found a way to make it work for AHKGUI.
- 16 May 2022, 23:11
- Forum: Scripts and Functions (v2)
- Topic: windows capture, image search and colors search
- Replies: 32
- Views: 9359
Re: windows capture, image search and colors search
If I want to save the picture in JPG format, do I still need to use GDIP for conversion?
- 22 Oct 2021, 04:43
- Forum: Ask for Help (v2)
- Topic: [V2 B] Lost mouse events Topic is solved
- Replies: 3
- Views: 1474
Re: [V2 B] Lost mouse events Topic is solved
Thanks, I can't believe I overlooked the double click.
- 22 Oct 2021, 02:13
- Forum: Ask for Help (v2)
- Topic: [V2 B] Lost mouse events Topic is solved
- Replies: 3
- Views: 1474
[V2 B] Lost mouse events Topic is solved
In this example, if I click on the window 8 times quickly, the WM_LBUTTONDOWN function will only trigger 4 times or less. If I click the window slowly 8 times, WM_LBUTTONDOWN will trigger correctly 8 times. I tried using other methods, such as OnEvent("Click", ) , but that didn't work either. The on...
- 14 Oct 2021, 09:03
- Forum: Scripts and Functions (v1)
- Topic: PaddleOCR - probably the best OCR tool available
- Replies: 75
- Views: 30568
Re: PaddleOCR - probably the best OCR tool available
Sorry. Edited.
- 29 Sep 2021, 07:14
- Forum: Suggestions on Documentation Improvements
- Topic: [V2 B] Example error for CallbackCreate Topic is solved
- Replies: 2
- Views: 1699
[V2 B] Example error for CallbackCreate Topic is solved
The example in the documentation seems to only fetch the last data. EnumAddress := CallbackCreate(EnumWindowsProc, "Fast") ; Fast-mode is okay because it will be called only from this thread. DetectHiddenWindows True ; Due to fast-mode, this setting will go into effect for the callback too. ; Pass c...
- 25 Sep 2021, 22:08
- Forum: Scripts and Functions (v1)
- Topic: PaddleOCR - probably the best OCR tool available
- Replies: 75
- Views: 30568
Re: PaddleOCR - probably the best OCR tool available
How can I set it to be compatible with Chinese and Japanese?
I have downloaded the Japanese file but find that I cannot simply replace it.
I have downloaded the Japanese file but find that I cannot simply replace it.
- 19 Sep 2021, 06:20
- Forum: Scripts and Functions (v1)
- Topic: Translation-Terminator an easy-to-use library which supports DeepL Sogou Baidu translate.
- Replies: 2
- Views: 1164
Re: Translation-Terminator an easy-to-use library which supports Deepl Sogou Baidu translate.
If you're just using Chrome in the background, I think webview2 seems more appropriate.
https://developer.microsoft.com/en-us/microsoft-edge/webview2/
https://developer.microsoft.com/en-us/microsoft-edge/webview2/
- 21 Aug 2021, 09:36
- Forum: Scripts and Functions (v1)
- Topic: [Script] Quick Picto Viewer v5+
- Replies: 260
- Views: 85075
Re: [Script] Quick Picto Viewer v5+
It's so awesome that you forget that this was done with AHK. I tried to look at its source code and desperately found that quick-picto-viewer.ahk has 60,000+ lines of code. Such a large amount of code is equally awesome. If I follow my habit, even splitting them into 6 files would be 10000 lines eac...
- 20 Aug 2021, 00:41
- Forum: Scripts and Functions (v2)
- Topic: [2.0-beta.1] RunTerminal
- Replies: 9
- Views: 2850
Re: [2.0-beta.1] RunCMD
tranht17 I think kczx3 understands RunTerminal(), and you don't understand what kczx3 is saying. You can imagine the confusion if common LIBs like ACC.AHK and GDIP.AHK all use A_Args internally. You could even just remove all the "A_Args" code and it would still work fine. e.g. DllCall("CloseHandle...
- 18 Aug 2021, 15:08
- Forum: Scripts and Functions (v1)
- Topic: [Script] Quick Picto Viewer v5+
- Replies: 260
- Views: 85075
Re: [Script] Quick Picto Viewer v5+
I have collected two properly working packages which require AHK-H1 to run. dcomp_sample1.zip It is an example of loading and displaying an image. But it uses D3D, which D2D depends on D3D at the bottom. D3D contains all the features of D2D and is much richer. UIAnimationSample.zip is the example re...
- 16 Aug 2021, 22:07
- Forum: Scripts and Functions (v1)
- Topic: [Script] Quick Picto Viewer v5+
- Replies: 260
- Views: 85075
Re: [Script] Quick Picto Viewer v5+
Thank you. Do you have any plans to use Direct2D instead of GDI+? The performance of GDI+ is too low, very slow when loading and zooming images (20M+), a common problem for almost all image viewers using GDI+. GDI+ is almost a thing of the past. There are packaged Direct2D libraries d2d1.ahk in the ...
- 13 Aug 2021, 04:48
- Forum: Ask for Help
- Topic: AHK_H v2 beta
- Replies: 11
- Views: 4673
Re: AHK_H v2 beta
It's been half a month