Search found 433 matches

by thqby
20 Mar 2024, 05:03
Forum: Ask for Help (v2)
Topic: [Q] Enumerator - Why is cloned class different from original? Topic is solved
Replies: 4
Views: 249

Re: [Q] Enumerator - Why is cloned class is different from original? Topic is solved

This should be a bug that clones non-value properties.
https://www.autohotkey.com/docs/v2/lib/Object.htm#OwnProps wrote: If two variables were specified, the enumerator attempts to call the property's getter to retrieve the value.
If the getter requires parameters, the property is skipped.
If Obj itself does not define a getter for this property, it is skipped.
by thqby
15 Mar 2024, 22:44
Forum: Bug Reports
Topic: V2: \ is shown as ¥ in some situation perhaps due to font problem
Replies: 10
Views: 1089

Re: V2: \ is shown as ¥ in some situation perhaps due to font problem

lexikos wrote: So ¥ can't appear in an NTFS filename, and must only be a path separator (or invalid).
On my computer, ¥ can be used as the NTFS file name. Is it backslash \ that appears as ¥ in a specific font?
by thqby
14 Mar 2024, 20:01
Forum: AutoHotkey Development
Topic: Typed properties - experimental build available
Replies: 68
Views: 13534

Re: Typed properties - experimental build available

Code: Select all

MsgBox(ObjGetDataPtr(obj := Object()))  ; Nonzero value
@lexikos
Is it necessary for a class to allocate memory when it has no typed properties?
by thqby
11 Mar 2024, 11:32
Forum: Visual Studio Code
Topic: Debugging in VSCode
Replies: 9
Views: 792

Re: Debugging in VSCode

Using OutputDebug in debugging.
Output to stdout FileAppend(str '`n', '*') at any time.
by thqby
10 Mar 2024, 05:59
Forum: Visual Studio Code
Topic: Debugging in VSCode
Replies: 9
Views: 792

Re: Debugging in VSCode

Code: Select all

OutputDebug(str '`n')
FileAppend(str '`n', '*')
by thqby
10 Mar 2024, 05:44
Forum: Ask for Help (v2)
Topic: what is the best way to catch error?
Replies: 12
Views: 389

Re: what is the best way to catch error?

catch UnsetError
by thqby
28 Feb 2024, 20:46
Forum: Bug Reports
Topic: Certain COM calls cannot be made from a HotIf condition
Replies: 3
Views: 351

Re: Certain COM calls cannot be made from a HotIf condition

0x8001010D means RPC_E_CANTCALLOUT_ININPUTSYNCCALL: "An outgoing call cannot be made since the application is dispatching an input-synchronous call." The "input-synchronous call" is from the keyboard/mouse hook thread to the main thread, asking it to evaluate the #if expression. You can't do it, so...
by thqby
27 Feb 2024, 22:39
Forum: Scripts and Functions (v2)
Topic: windows capture, image search and colors search
Replies: 32
Views: 9689

Re: windows capture, image search and colors search

Perhaps the vc2015 runtime is not installed.
by thqby
25 Feb 2024, 08:56
Forum: Ask for Help (v2)
Topic: Help with __Get and __Set metafunctions
Replies: 8
Views: 379

Re: Help with __Get and __Set metafunctions

Code: Select all

class a {
	a := ''
	b := ''
}

class a {
	__Init() {
		this.a := ''
		this.b := ''
	}
}
The above class will be converted to the following form within ahk, so when there is such an assignment, users cannot define the __Init method.
image.png
image.png (12.85 KiB) Viewed 281 times
by thqby
24 Feb 2024, 22:33
Forum: Ask for Help (v2)
Topic: Help with __Get and __Set metafunctions
Replies: 8
Views: 379

Re: Help with __Get and __Set metafunctions

The __Get/__Set/__Call metafunction is called only if the object does not have this property.
by thqby
24 Feb 2024, 22:28
Forum: Ask for Help (v2)
Topic: dynamic hotstring Topic is solved
Replies: 6
Views: 202

Re: dynamic hotstring Topic is solved

Are you sure it's running on v2.1?
by thqby
24 Feb 2024, 10:25
Forum: Ask for Help (v2)
Topic: Help with __Get and __Set metafunctions
Replies: 8
Views: 379

Re: Help with __Get and __Set metafunctions

this.DefineProp('name', {value:name})
by thqby
24 Feb 2024, 10:23
Forum: Ask for Help (v2)
Topic: dynamic hotstring Topic is solved
Replies: 6
Views: 202

Re: dynamic hotstring Topic is solved

Use v2.1-alpha.8 and then remove =>.
Or separating the anonymous fat arrow function as a nested function.
by thqby
21 Feb 2024, 23:07
Forum: Visual Studio Code
Topic: Debugging in VSCode
Replies: 9
Views: 792

Re: Debugging in VSCode

You can also use OutputDebug or debugger instructions.

Code: Select all

var := 'msg'
;@Debug-Output => {var}
by thqby
12 Feb 2024, 06:32
Forum: Ask for Help
Topic: (v2) How do I share an object between child threads?
Replies: 1
Views: 874

Re: (v2) How do I share an object between child threads?

Objects that are shared through CriticalObject must be released before the thread exits; otherwise, exceptions or memory leaks will be caused when criticalobjects is released.
This is one of the reasons why I deleted it.
by thqby
12 Feb 2024, 06:18
Forum: Scripts and Functions (v2)
Topic: WebView2
Replies: 139
Views: 37205

Re: WebView2

Generally, only interfaces and methods are added after the upgrade, and only one method name is changed once.
The version in the file may be higher than the dll version because I did not update the dll file.
by thqby
30 Jan 2024, 10:33
Forum: AutoHotkey_H
Topic: thqby's AutoHotkey_H v2.0 & v2.1
Replies: 19
Views: 2794

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

No interest in merging v1, debugging v1 scripts is maddening.

Go to advanced search