Search found 223 matches

by tuzi
09 Dec 2023, 02:02
Forum: Scripts and Functions (v1)
Topic: ahk-chardet Detect File/Var Encoding
Replies: 0
Views: 310

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...
by tuzi
09 Dec 2023, 01:56
Forum: Scripts and Functions (v1)
Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
Replies: 8
Views: 2143

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. :D
by tuzi
04 Oct 2023, 06:28
Forum: Suggestions on Documentation Improvements
Topic: b+=a not equal to b:=b+a
Replies: 2
Views: 852

b+=a not equal to b:=b+a

[Moderator's note: Topic moved from Bug Reports.]

Code: Select all

a:=""
b:=0
c:=0

b:=b+a
c+=a

MsgBox % b ; b=""
MsgBox % c ; c=0
1.1.37.01 win10x64
by tuzi
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: 5207

Re: Mouse over the file (do not need click) to preview the contents. Support ahk,txt,ini,jpg,jpeg,png,bmp,tif format.

wetware05 wrote:
22 May 2023, 15:54
Hi.

Can someone tell me how to make the preview look semi-transparent? Maybe the author? @tuzi :wave:
line 24

btt(File.Read(maxStr),,,,"Style5")

to

btt(File.Read(maxStr),,,,"Style5",{Transparent:128})
by tuzi
01 Oct 2023, 01:55
Forum: Scripts and Functions (v1)
Topic: [Looking for Maintainers/Successors] Clipjump : The Ultimate Clipboard Manager
Replies: 99
Views: 65733

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. :D :D
by tuzi
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: 837

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...
by tuzi
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: 837

[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

Code: Select all

FileCreateDir backup\Default\Network\
FileCopy First Run, backup\First Run        ; copy a file "first run"
by tuzi
17 Nov 2022, 08:38
Forum: Scripts and Functions (v1)
Topic: talk to mpv (a media player)
Replies: 0
Views: 782

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...
by tuzi
07 Sep 2022, 05:32
Forum: Scripts and Functions (v1)
Topic: [Library] cJson.ahk (version 0.4.1 pre-release)
Replies: 66
Views: 19870

Re: [Library] cJson.ahk (version 0.4.0 pre-release)

geek wrote:
29 May 2022, 22:12
tuzi wrote:
18 Feb 2022, 21:30
@geek

here is a bug.

the key should be char, but it shows CHAR.
Apologies for a delay in the response on this one, but Lexikos has fixed the underlying issue in v1.1.33.11. Updating to the latest AHK will make the problem go away.
cool and thank you both. :D
by tuzi
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: 1039

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 ...
by tuzi
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: 1039

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...
by tuzi
26 May 2022, 09:10
Forum: Scripts and Functions (v1)
Topic: Real-time KeyHistory / MouseHistory
Replies: 6
Views: 5056

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...
by tuzi
26 May 2022, 02:53
Forum: Bug Reports
Topic: a hotkey bug.
Replies: 3
Views: 843

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...
by tuzi
26 May 2022, 02:51
Forum: Bug Reports
Topic: Text controls do not follow margin Settings Topic is solved
Replies: 2
Views: 616

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", ...
by tuzi
16 May 2022, 01:18
Forum: Bug Reports
Topic: a hotkey bug.
Replies: 3
Views: 843

a hotkey bug.

Code: Select all

>^[::
send ^c[^v]
return
if press Rctrl+[ , it will double click ctrl.

the pic show why.
1.png
1.png (11.61 KiB) Viewed 843 times
ahk 1.1.34.02
by tuzi
12 May 2022, 03:41
Forum: Scripts and Functions (v1)
Topic: Structor - Get the Offsets of Structures (Modified Version)
Replies: 6
Views: 1206

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)
by tuzi
28 Apr 2022, 06:15
Forum: Scripts and Functions (v1)
Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
Replies: 8
Views: 2143

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...
by tuzi
28 Apr 2022, 06:09
Forum: Scripts and Functions (v1)
Topic: [Dll] UdeExport.dll (x64) Detect File/String Encoding
Replies: 8
Views: 2143

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...

Go to advanced search