Search found 9481 matches

by lexikos
Today, 00:22
Forum: Bug Reports
Topic: [v2.0.14-v2.0.15] The p argument of property_get in the debugger does not work
Replies: 4
Views: 451

Re: [v2.0.14-v2.0.15] The p argument of property_get in the debugger does not work

As far as I have been able to ascertain, indexed child variables can be retrieved as follows. :thumbup: Named child variables like <base> and foo are enumerated before indexed child variables like `[1]`, right? Yes, properties are enumerated before items . The <enum> is not actually displayed as a ...
by lexikos
30 May 2024, 21:48
Forum: Bug Reports
Topic: [v2.1-alpha.12] Unknown class.
Replies: 1
Views: 249

Re: [v2.1-alpha.12] Unknown class.

#Include generally has no impact on anything. The demonstration is much clearer if you substitute the file contents for the directives (and omit the directive which is ignored because the file was already included). class A extends B{ test()=>1 } class C extends D{ } class D{ } class B extends C{ } ...
by lexikos
30 May 2024, 21:33
Forum: Wish List
Topic: AutoHotkey as Standard User Topic is solved
Replies: 1
Views: 892

Re: AutoHotkey as Standard User Topic is solved

Both are implemented by v2.0.16. It is possible, though unusual, for _UIA.exe to be present for some versions and not others. v2.0.16 only disables the checkbox if there are none present. Because individual script requirements can take precedence over the preferences set in the GUI, the value of the...
by lexikos
30 May 2024, 21:21
Forum: Bug Reports
Topic: v2.1-alpha.11 breaks #Warn Topic is solved
Replies: 2
Views: 393

Re: v2.1-alpha.11 breaks #Warn Topic is solved

Fixed by v2.1-alpha.12.
by lexikos
30 May 2024, 21:20
Forum: Bug Reports
Topic: Error trying to download the V1 and V2 files with current version number
Replies: 37
Views: 3831

Re: Error trying to download the V1 and V2 files with current version number

v2.0.16 implements the workaround for ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED.
by lexikos
30 May 2024, 21:03
Forum: AutoHotkey Development
Topic: Load time warnings not captured by /ErrorStdOut
Replies: 4
Views: 1005

Re: Load time warnings not captured by /ErrorStdOut

Using #Warn as above only affects the last module. In future, the scope of #Module might end at the end of the file which contains it, in which case the above would affect only the default module. If #Warn isn't used by the script, using it up front would set defaults which are inherited by all modu...
by lexikos
30 May 2024, 20:53
Forum: Bug Reports
Topic: [v2.0.14-v2.0.15] The p argument of property_get in the debugger does not work
Replies: 4
Views: 451

Re: [v2.0.14-v2.0.15] The p argument of property_get in the debugger does not work

v2.0.16 fixes the paging. Are you saying that it is useful for numchildren to count only the properties and not the enumerated items? The specification for numchildren is "optional attribute with number of children for the property". The DBGp documentation is typically sparse on details, but it is s...
by lexikos
30 May 2024, 20:17
Forum: Scripts and Functions (v2)
Topic: Geek's HashMap.ahk
Replies: 4
Views: 1343

Re: Geek's HashMap.ahk

Map increases its capacity by 1 each time you add an item over the current capacity, which (as I recall) defaults to 1 . If you are adding a single item with m[index] := value and the Map is at capacity, it doubles its current capacity, unless the previous capacity is 0, in which case it increases ...
by lexikos
30 May 2024, 18:05
Forum: Ask for Help (v2)
Topic: How I can generate the array element Array[ 0 ]
Replies: 8
Views: 538

Re: How I can generate the array element Array[ 0 ]

You can do whatever you want if you make your own array class. For instance, class Array0 extends Array { __Item[n] { get => super.__item[n >= 0 ? n+1 : n] set => super.__item[n >= 0 ? n+1 : n] := value } } a := Array0() a.Push("Hello", "world") MsgBox a[0] ", " a[1] This only covers a[] , but you c...
by lexikos
30 May 2024, 05:59
Forum: Ask for Help (v2)
Topic: Issues Running both V1 and V2 in a custom install folder
Replies: 1
Views: 175

Re: Issues Running both V1 and V2 in a custom install folder

Is "custom install folder" a custom folder, or a folder for a custom install? Custom how? It should not matter where the installation folder is, only that you install using the correct method: Install v1 as admin, then v2 as admin into the same folder. Install v2 as admin, then v1 as admin with "Ins...
by lexikos
30 May 2024, 05:54
Forum: Announcements
Topic: v2.0.16
Replies: 16
Views: 28219

v2.0.16

Fixed load-time errors sent to stdout showing incorrect file/line number in some cases. Fixed ExitApp on load-time error/warning dialogs to use exit code 2. Fixed locating WindowSpy.ahk in Current User (non-admin) installs. Fixed DBGp property_get paging items incorrectly (again). Fixed StrPut faili...
by lexikos
30 May 2024, 05:27
Forum: Ask for Help (v2)
Topic: WinClip For AHK2, get this error: 【Error: This value of type "VarRef" has no property named "Ptr".】
Replies: 1
Views: 226

Re: WinClip For AHK2, get this error: 【Error: This value of type "VarRef" has no property named "Ptr".】

Looks like maybe some pre-v2.0 code wasn't updated correctly. See &var in Changes from v1.1 to v2.0.

Probably just change memcopy( &data to memcopy( data.
by lexikos
30 May 2024, 04:04
Forum: Ask for Help (v2)
Topic: value of type "Installation" has no property named "Hashes".
Replies: 5
Views: 453

Re: value of type "Installation" has no property named "Hashes".

ThioJoe instCmd corresponds to the InstallCommand registry value which is part of a v2 installation, yet your screenshot says you have v1.1.37.02. This seems to indicate that you previously ran a Custom Install of v1, partially overwriting it with v1 just like it warns in the subtext of the option....
by lexikos
29 May 2024, 03:55
Forum: Ask for Help (v2)
Topic: value of type "Installation" has no property named "Hashes".
Replies: 5
Views: 453

Re: value of type "Installation" has no property named "Hashes".

I don't see how this error is possible, regardless of the environment in which setup is running. Hashes is predefined in the Installation class. mimar Your screenshot shows that you are upgrading from v1.1. Try removing it first. If you cannot uninstall it, deleting the files and removing the HKLM\S...
by lexikos
28 May 2024, 16:48
Forum: Bug Reports
Topic: Error trying to download the V1 and V2 files with current version number
Replies: 37
Views: 3831

Re: Error trying to download the V1 and V2 files with current version number

@Descolada When I tested yesterday, both the first and second call returned error 12044. Today it works.
by lexikos
28 May 2024, 04:12
Forum: AutoHotkey Development
Topic: Modules
Replies: 12
Views: 1168

Re: Modules

bonobo It will be, and is already possible for two modules to import each other. However, in those cases, it may be hard to predict which module's body will execute first (e.g. to initialize global variables). Two libraries can generally #include each other without problem. What I meant to say abou...
by lexikos
27 May 2024, 03:22
Forum: AutoHotkey Development
Topic: Modules
Replies: 12
Views: 1168

Re: Modules

iseahound Packages are a means of organising modules, with the interpreter deriving paths from the module names. The module names themselves must be valid identifiers, as they may be used directly within the script to access the module. It is not a means of specifying a path. If you want to import ...
by lexikos
27 May 2024, 03:07
Forum: Bug Reports
Topic: Error trying to download the V1 and V2 files with current version number
Replies: 37
Views: 3831

Re: Error trying to download the V1 and V2 files with current version number

The failure is caused by InternetOpenUrl which fails with error ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED, so it appears there is some kind of problem with the certificate. That error means "The server is requesting client authentication." as in "give me a certificate that proves your identity". Appar...
by lexikos
27 May 2024, 02:55
Forum: Ask for Help (v2)
Topic: how to deal with daily driver script hanging - detecting, reloading from outside script?
Replies: 4
Views: 516

Re: how to deal with daily driver script hanging - detecting, reloading from outside script?

There is no easy way to detect when the hook stops getting called. KeyHistory will not update (except by the script's own Send); A_PriorKey and A_TimeIdleKeyboard will not update; hotkeys will not execute and InputHook will not receive input. If you can detect that any of these things should have ha...
by lexikos
26 May 2024, 06:15
Forum: Wish List
Topic: Notify if not UTF-8? -- [Update: Not possible, me thinks]
Replies: 16
Views: 1352

Re: Notify if not UTF-8? -- [Update: Not possible, me thinks]

UTF-8 lead bytes have the bit pattern 110xxxxx, 1110xxxx or 11110xxx, followed by 1, 2 or 3 suffix bytes with the bit pattern 10xxxxxx. Therefore some ANSI sequences which are obviously not valid UTF-8: 0x80..0xBF not as part of one of the following sequences. 0xC0..0xDF not followed by 0x80..0xBF. ...

Go to advanced search