Search found 418 matches

by thqby
Yesterday, 08:22
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 8
Views: 1471

Re: thqby's AutoHotkey_H v2.0 & v2.1

Maybe you used to use ahk-wrapped function NewThread. I didn't package these into ahk. You can still use these features through functions like ahkPause(1, NewThread(...)).

You can see the changes in the readme of the github repository.
by thqby
10 May 2024, 04:48
Forum: Ask for Help (v2)
Topic: Distinguish between Array and another object
Replies: 4
Views: 199

Re: Distinguish between Array and another object

Why not use Type(var)?
by thqby
08 May 2024, 23:24
Forum: Bug Reports
Topic: Debugger bug
Replies: 0
Views: 150

Debugger bug

https://github.com/AutoHotkey/AutoHotkey/blob/bda5f8fee90295dc3ca36e0b50ec9d56dd9b9b25/source/error.cpp#L263

An exception encountered during debugging was silently aborted, which caused the try statement not to work normally.

Code: Select all

__del(this) {
	try (this.base.__Delete)(this)
	MsgBox() ; skip
}
by thqby
08 May 2024, 04:47
Forum: Bug Reports
Topic: Debugger memory leak
Replies: 0
Views: 198

Debugger memory leak

a := {} p := ObjPtr(a) a.__delete := (this) => ObjPtr(this) = p && MsgBox() a := { base: a, prop: 0 } a := 0 ; set breakpoint, view a.prop Using the debugger to look at the base class, propenum, etc. all have memory leaks. https://github.com/AutoHotkey/AutoHotkey/blob/fa7a3e1d5f9f6ab77ae5a1f3c53834...
by thqby
06 May 2024, 05:31
Forum: Bug Reports
Topic: Closure memory leak
Replies: 4
Views: 514

Re: Closure memory leak

lexikos wrote:
06 May 2024, 03:26
What is probably not explained in the documentation yet is that all closures defined directly within a function share the same "set of free variables".
Yeah, I thought they had separate sets of free variables.
by thqby
06 May 2024, 02:19
Forum: Bug Reports
Topic: Closure memory leak
Replies: 4
Views: 514

Re: Closure memory leak

Will the variable b also be captured by f2? I remember that in the past, only referenced variables were captured. f() { a := 0 b := { __delete: (*) => MsgBox() } f1() { (b) } f2(s?) { (a) s := 'b' MsgBox(IsSet(%s%)) s := 'f1' MsgBox(IsSet(%s%)) } return f2 } t := f() t() However, in f2, variables b ...
by thqby
02 May 2024, 08:08
Forum: Tutorials (v2)
Topic: MCode Tutorial (Compiled Code in AHK)
Replies: 17
Views: 3605

Re: MCode Tutorial (Compiled Code in AHK)

Recently, I modified geek's PEObjectLinker to support linking *.obj files generated by the msvc C/C++ compiler as if you were writing a dll with export functions, and then processing it with the ahk linker to generate mcode that can be used in ahk. https://github.com/thqby/ahk2_lib/blob/master/MCode...
by thqby
30 Apr 2024, 08:05
Forum: Ask for Help (v2)
Topic: JSON.ahk error Topic is solved
Replies: 5
Views: 672

Re: JSON.ahk error Topic is solved

Chr("0x" SubStr(A_LoopField, 2, t - 2)
by thqby
25 Apr 2024, 08:28
Forum: Bug Reports
Topic: Closure memory leak
Replies: 4
Views: 514

Closure memory leak

Closure.Prototype.__Delete := this => OutputDebug('closure dctor: ' ObjPtr(this) '`n') ff() { a := 0 b := f2 OutputDebug('f1: ' ObjPtr(f1) '`n') OutputDebug('f2: ' ObjPtr(f2) '`n') f1() ; b := 0 ; Free variables was not released during closure destruction. f1() { b() } f2() { a := 1 } } ff()
by thqby
20 Apr 2024, 00:50
Forum: Ask for Help (v2)
Topic: JSON.ahk error Topic is solved
Replies: 5
Views: 672

Re: JSON.ahk error Topic is solved

I fixed it yesterday.
by thqby
31 Mar 2024, 07:24
Forum: AutoHotkey_H
Topic: RegRead? Seems to not work the same as _L
Replies: 5
Views: 425

Re: RegRead? Seems to not work the same as _L

The downloaded zip package contains both 32 and 64 bits, doesn't yours?
by thqby
31 Mar 2024, 00:03
Forum: AutoHotkey_H
Topic: RegRead? Seems to not work the same as _L
Replies: 5
Views: 425

Re: RegRead? Seems to not work the same as _L

The registry has different views in 64-bit and 32-bit, and if you run this code with AHk_l 32-bit, you'll get the same error.
by thqby
30 Mar 2024, 20:41
Forum: Ask for Help
Topic: can't compile with ahk2exe_h but works fine with normal
Replies: 17
Views: 790

Re: can't compile with ahk2exe_h but works fine with normal

@TAC109

In my tests, ScriptGuard2 also works for ahk_h.
by thqby
30 Mar 2024, 01:20
Forum: AutoHotkey_H
Topic: RegRead? Seems to not work the same as _L
Replies: 5
Views: 425

Re: RegRead? Seems to not work the same as _L

No, it is same as ahk_l.
by thqby
29 Mar 2024, 06:47
Forum: Ask for Help
Topic: can't compile with ahk2exe_h but works fine with normal
Replies: 17
Views: 790

Re: can't compile with ahk2exe_h but works fine with normal

There are only a handful of conflicts, and I don't think a lot of code needs to be rewritten.
by thqby
29 Mar 2024, 06:32
Forum: Ask for Help
Topic: can't compile with ahk2exe_h but works fine with normal
Replies: 17
Views: 790

Re: can't compile with ahk2exe_h but works fine with normal

ahk_h has additional classes and class methods, and in this respect conflicts with some ahk_l scripts, which is unavoidable.
by thqby
29 Mar 2024, 06:10
Forum: Ask for Help
Topic: can't compile with ahk2exe_h but works fine with normal
Replies: 17
Views: 790

Re: can't compile with ahk2exe_h but works fine with normal

Why compile with ahk_h when you have been using ahk_l all along?
by thqby
29 Mar 2024, 04:48
Forum: Ask for Help
Topic: can't compile with ahk2exe_h but works fine with normal
Replies: 17
Views: 790

Re: can't compile with ahk2exe_h but works fine with normal

The library you are trying to include conflicts with the built-in JSON class in ahk_h. If there are no special requirements, the JSON library can be removed.

Go to advanced search