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.
Search found 433 matches
- 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.
- 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
On my computer, ¥ can be used as the NTFS file name. Is it backslash \ that appears as ¥ in a specific font?lexikos wrote: So ¥ can't appear in an NTFS filename, and must only be a path separator (or invalid).
- 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
Is it necessary for a class to allocate memory when it has no typed properties?
- 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.
Output to stdout FileAppend(str '`n', '*') at any time.
- 10 Mar 2024, 06:00
- Forum: 请求帮助
- Topic: V2调用大漠dm.FindStr函数, This variable appears to never be assigned a value
- Replies: 1
- Views: 397
- 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', '*')
- 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
- 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...
- 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.
- 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 := ''
}
}
- 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.
- 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?
- 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})
- 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.
Or separating the anonymous fat arrow function as a nested function.
- 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}
- 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.
This is one of the reasons why I deleted it.
- 12 Feb 2024, 06:23
- Forum: 请求帮助
- Topic: 写了个去除字符串头尾非数字函数有问题 Topic is solved
- Replies: 1
- Views: 483
Re: 写了个去除字符串头尾非数字函数有问题 Topic is solved
RegExReplace(str, "^\D+|\D+$")
- 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.
The version in the file may be higher than the dll version because I did not update the dll file.
- 31 Jan 2024, 21:15
- Forum: Ask for Help (v2)
- Topic: [v2.0.11] Invalid Memory Read/Write with JsRT.ahk on FreeLibrary call Topic is solved
- Replies: 10
- Views: 822
Re: [v2.0.11] Invalid Memory Read/Write with JsRT.ahk on FreeLibrary call Topic is solved
This is a typo. matches is not an object from JsRT, match is.
- 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.