Search found 223 matches
- 09 Dec 2023, 02:02
- Forum: Scripts and Functions (v1)
- Topic: ahk-chardet Detect File/Var Encoding
- Replies: 0
- Views: 335
ahk-chardet Detect File/Var Encoding
base on uchardet.dll v0.0.8 and swagfag 's code, i create a lib ahk-chardet . hope it helps someone in need. :D usage: MsgBox % FileGetCodePageByBom("test\fr\utf-16.be") ; 1201 MsgBox % FileGetCharset("test\ja\iso-2022-jp.txt") ; ISO-2022-JP MsgBox % FileGetCodePage("test\ja\iso-2022-jp.txt") ; 5022...
- 09 Dec 2023, 01:56
- Forum: Scripts and Functions (v1)
- Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
- Replies: 8
- Views: 2234
Re: [Dll] UdeExport.dll (x64) Detect File/String Encoding
base on uchardet.dll and swagfag 's code, i create a lib ahk-chardet.
i think this lib can replace UdeExport.dll
hope it helps someone in need.
i think this lib can replace UdeExport.dll
hope it helps someone in need.
- 09 Dec 2023, 01:51
- Forum: Ask for Help (v2)
- Topic: Can someone help me to call the C++ dll (detect encoding code page for search ) Topic is solved
- Replies: 7
- Views: 950
Re: Can someone help me to call the C++ dll (detect encoding code page for search ) Topic is solved
base on swagfag 's code, i create a lib ahk-chardet.
- 04 Oct 2023, 06:28
- Forum: Suggestions on Documentation Improvements
- Topic: b+=a not equal to b:=b+a
- Replies: 2
- Views: 891
b+=a not equal to b:=b+a
[Moderator's note: Topic moved from Bug Reports.]
1.1.37.01 win10x64
Code: Select all
a:=""
b:=0
c:=0
b:=b+a
c+=a
MsgBox % b ; b=""
MsgBox % c ; c=0
- 01 Oct 2023, 02:05
- Forum: Scripts and Functions (v1)
- Topic: Mouse over the file (do not need click) to preview the contents. Support ahk,txt,ini,jpg,jpeg,png,bmp,tif format.
- Replies: 21
- Views: 5329
- 01 Oct 2023, 01:55
- Forum: Scripts and Functions (v1)
- Topic: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager
- Replies: 99
- Views: 66174
Re: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager
hey guys, since clipjump hasn't been updated for a long time, I created a branching version, Clipjump-Plus, you can try here.
- 23 Nov 2022, 20:13
- Forum: Bug Reports
- Topic: [1.1.35.00] FileCreateDir or FileCopy can not work Topic is solved
- Replies: 4
- Views: 849
Re: [1.1.35.00] FileCreateDir or FileCopy can not work Topic is solved
This change will break the compatibility of many old scripts. I have a auto backup script, after switching to version 1.1.35.00 for many days, I found that the backup did not complete correctly causing some strange conditions on my computer and finally it took 2 hours to find out what the problem wa...
- 22 Nov 2022, 19:53
- Forum: Bug Reports
- Topic: [1.1.35.00] FileCreateDir or FileCopy can not work Topic is solved
- Replies: 4
- Views: 849
[1.1.35.00] FileCreateDir or FileCopy can not work Topic is solved
this code will work in 1.1.34.04
but it not work in 1.1.35.00
but it not work in 1.1.35.00
Code: Select all
FileCreateDir backup\Default\Network\
FileCopy First Run, backup\First Run ; copy a file "first run"
- 17 Nov 2022, 08:38
- Forum: Scripts and Functions (v1)
- Topic: talk to mpv (a media player)
- Replies: 0
- Views: 808
talk to mpv (a media player)
mpv is a popular video player, you can use ahk to talk to it (writing plugins). this is the simplest example. ; run mpv.exe and start a ipc server Run, mpv.exe --idle --input-ipc-server=\\.\pipe\mpvsocket,,, mpv_pid WinWait ahk_pid %mpv_pid% ; open a file mpv_command(["loadfile", "x:\test.mp4"]) ; s...
- 10 Sep 2022, 21:17
- Forum: Scripts and Functions (v1)
- Topic: [Script] Dock-It ( window docker )
- Replies: 23
- Views: 7945
- 07 Sep 2022, 05:32
- Forum: Scripts and Functions (v1)
- Topic: [Library] cJson.ahk (version 0.4.1 pre-release)
- Replies: 66
- Views: 20292
Re: [Library] cJson.ahk (version 0.4.0 pre-release)
cool and thank you both.
- 07 Sep 2022, 05:26
- Forum: Scripts and Functions (v1)
- Topic: ZeroMQ - the fastest way of communication between threads, processes, programming languages, operating systems, networks
- Replies: 2
- Views: 1089
Re: ZeroMQ - the fastest way of communication between threads, processes, programming languages, operating systems, netw
here is a example to show how easy to use it. client.ahk #NoEnv SetBatchLines -1 ; maximum speed zmq := new ZeroMQ ; init ZeroMQ context := zmq.context() ; create a context socket := context.socket(zmq.REQ) ; create a socket with REQ socket.connect("tcp://localhost:5555") ; connect to endpoint loop ...
- 07 Sep 2022, 05:20
- Forum: Scripts and Functions (v1)
- Topic: ZeroMQ - the fastest way of communication between threads, processes, programming languages, operating systems, networks
- Replies: 2
- Views: 1089
ZeroMQ - the fastest way of communication between threads, processes, programming languages, operating systems, networks
What is ZeroMQ ? In short, it is a universal messaging library that can transfer message between threads, processes, programming languages, operating systems, and networks. It can transfer any kind of messages, such as number, text, binary, etc., and has no size limit. It has various modes, such as...
- 26 May 2022, 09:10
- Forum: Scripts and Functions (v1)
- Topic: Real-time KeyHistory / MouseHistory
- Replies: 6
- Views: 5093
Re: Real-time KeyHistory / MouseHistory
A new version of KeyHistoryWindow.ahk Change Log: 2022.05.26 Fixed incomplete display of history content. Fixed flicker. Added title and tips. Can run in the background. ; https://autohotkey.com/boards/viewtopic.php?f=6&t=26059 ; Change Log: ; 2022.05.26 ; Fixed incomplete display of history conten...
- 26 May 2022, 02:53
- Forum: Bug Reports
- Topic: a hotkey bug.
- Replies: 3
- Views: 911
Re: a hotkey bug.
It might seem unnecessary to send LCtrl when RCtrl is already down, but how does this constitute a bug? It does not "double click ctrl". You press RCtrl once, then Send presses Ctrl as instructed, and releases modifiers that aren't part of the Send. When you double tap a key, you release the key be...
- 26 May 2022, 02:51
- Forum: Bug Reports
- Topic: Text controls do not follow margin Settings Topic is solved
- Replies: 2
- Views: 633
Text controls do not follow margin Settings Topic is solved
Gui, Margin, 10, 0 Gui, Add, Edit, Disabled, zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz Gui, Add, Text, Border vKHT, % Format("{:-4}{:-5}{:-7}{:-9}{:-19}{:-30}", "VK", "SC", "Flags", "Elapsed", "Key", "Extra") Gui, Add, Text, Border vKH, % Format("{:-4}{:-5}{:-7}{:-9}{:-19}{:-30}", "00", "000", "ea!u", ...
- 16 May 2022, 01:18
- Forum: Bug Reports
- Topic: a hotkey bug.
- Replies: 3
- Views: 911
a hotkey bug.
Code: Select all
>^[::
send ^c[^v]
return
the pic show why. ahk 1.1.34.02
- 12 May 2022, 03:41
- Forum: Scripts and Functions (v1)
- Topic: Structor - Get the Offsets of Structures (Modified Version)
- Replies: 6
- Views: 1220
Re: Structor - Get the Offsets of Structures (Modified Version)
@c7aesa7r
jNizM is right.
added plan b for strget strput in version v2022.05.12(1.2.2)
jNizM is right.
added plan b for strget strput in version v2022.05.12(1.2.2)
- 28 Apr 2022, 06:15
- Forum: Scripts and Functions (v1)
- Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
- Replies: 8
- Views: 2234
Re: [Dll] UdeExport.dll (x64) Detect File/String Encoding
dd900 i think there is a bug in GetStringEncoding here is test code. ; var is a utf-8 string StrPutVar("apple,哈hahaha,abc", var, "utf-8") ; save RAW of var to a file for test binsave(var,"bug.txt") ; show utf-8 that's right MsgBox % FileGetFormat("bug.txt") ; show IBM866 that's wrong MsgBox % Strin...
- 28 Apr 2022, 06:09
- Forum: Scripts and Functions (v1)
- Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
- Replies: 8
- Views: 2234
Re: [Dll] UdeExport.dll (x64) Detect File/String Encoding
thank you dd900, it's very useful, i create a library for it. FileGetEncoding(path, minConfidence := 0.5) { static dllPath := A_PtrSize=8 ? "UdeExport.dll" : "UdeExport_x86.dll" encArr := ComObject(0x200C, DllCall(dllPath "\GetFileEncoding", "Ptr", &path, "Ptr"), 1) if (encArr[1] and encArr[2] >= mi...