Search found 9468 matches

by lexikos
Today, 03:55
Forum: Ask for Help (v2)
Topic: value of type "Installation" has no property named "Hashes".
Replies: 2
Views: 266

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
Yesterday, 16:48
Forum: Bug Reports
Topic: Error trying to download the V1 and V2 files with current version number
Replies: 35
Views: 3493

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
Yesterday, 04:12
Forum: AutoHotkey Development
Topic: Modules
Replies: 12
Views: 1119

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: 1119

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: 35
Views: 3493

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: 502

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: 1331

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. ...
by lexikos
26 May 2024, 05:21
Forum: Bug Reports
Topic: Debugger memory leak Topic is solved
Replies: 1
Views: 304

Re: Debugger memory leak Topic is solved

Fixed by v2.0.15 and v2.1-alpha.11.
by lexikos
26 May 2024, 05:18
Forum: Bug Reports
Topic: Closure memory leak Topic is solved
Replies: 5
Views: 733

Re: Closure memory leak Topic is solved

The documentation has further explanation now. Each time the outer function is called, all of its free variables are allocated as a set. This one set of free variables is linked to all of the function's closures. If the closure's original variable (tick in the example above) is captured by another c...
by lexikos
26 May 2024, 05:14
Forum: AutoHotkey Development
Topic: v2.1-alpha.12
Replies: 11
Views: 7407

v2.1-alpha.12

Changed how #Warn settings are applied. #Module copies settings from previous module. #Warn Type, Mode : as before. #Warn Mode : sets program-default reporting mode. #Warn Type[, On] : enables warning and uses program-default mode. #Warn : resets warnings to default (intended for use in a module). C...
by lexikos
26 May 2024, 04:34
Forum: AutoHotkey Development
Topic: Modules
Replies: 12
Views: 1119

Re: Modules

iseahound Why? Without the file, how does one know that a directory is intended to be module? Anyway; no, it does not require empty files, you can use non-empty files. Also, the Q&A you linked seems to refute what you're saying; a namespace package is created only if there is no __init__.py file. c...
by lexikos
26 May 2024, 03:42
Forum: Ask for Help (v2)
Topic: How to suppress Ctrl + shift hotkey for notepad that enables right to left text formatting?
Replies: 3
Views: 369

Re: How to suppress Ctrl + shift hotkey for notepad that enables right to left text formatting?

Send 'a' implies that Ctrl and Shift will be released and pressed back down again. AutoHotkey will not automatically mask them when this happens, because it is not designed to. (Perhaps it should try to suppress the Ctrl+Shift language-switching hotkey, but I think Notepad's hotkeys are outside the...
by lexikos
26 May 2024, 03:31
Forum: Wish List
Topic: [v2.1] Passing unset VarRef
Replies: 16
Views: 2226

Re: [v2.1] Passing unset VarRef

You proposed in an other thread the following option: Perhaps I was not clear: I do not recommend the option in that other thread. Given that I do not recommend it, I didn't care to say whether I agree or disagree with your assessment of that option. In the first place, I only posted it to show tha...
by lexikos
24 May 2024, 21:56
Forum: Wish List
Topic: [v2] __Static property and the :: operator
Replies: 16
Views: 3094

Re: [v2] __Static property and the :: operator

Supposing that this.__Static refers to the class of the object, this.__Static.SOME_PROPERTY1 := n may create a new property in a class derived from the one where the static property is formally defined. As a shorthand for accessing static properties, would that not cause surprising behaviour in some...
by lexikos
24 May 2024, 21:28
Forum: Wish List
Topic: Hotstring option to only replace right-most needed characters.
Replies: 6
Views: 1478

Re: Hotstring option to only replace right-most needed characters.

Optimized auto-replace hotstrings to avoid retyping an identical leading part, where feasible.
Source: v2.1-alpha.8
by lexikos
24 May 2024, 20:51
Forum: Ask for Help (v2)
Topic: Can the font color of the menu be changed?
Replies: 2
Views: 267

Re: Can the font color of the menu be changed?

In order to change the font color, you have to draw the items yourself by using an owner-drawn menu. It's been done before for v1 on the old forum, but I don't know whether there are any v2 examples around.
by lexikos
24 May 2024, 20:47
Forum: Ask for Help (v2)
Topic: how to deal with daily driver script hanging - detecting, reloading from outside script?
Replies: 4
Views: 502

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

If you can open the script's main window via the tray icon and view the Lines/Key history in the View menu, you may find that the script isn't hung, just not responding to hotkeys. That would usually be a result of the OS silently deregistering the keyboard hook, perhaps because of an unresponsive #...
by lexikos
24 May 2024, 20:41
Forum: Ask for Help (v2)
Topic: How to suppress Ctrl + shift hotkey for notepad that enables right to left text formatting?
Replies: 3
Views: 369

Re: Possible bug when suppressing modifier hotkeys

Why would you think that #1 is a bug? Suppressing Shift (Ctrl is not suppressed) means that the logical state of the Shift key does not change. If the logical state of the Shift key is not down , the hotkey >^+a should not fire. This is the correct behaviour. If you don't want the suffix (Shift) to ...
by lexikos
24 May 2024, 20:18
Forum: Ask for Help (v2)
Topic: Access Is Denied for WinGetProcessName in V2 EXE
Replies: 20
Views: 2149

Re: Access Is Denied for WinGetProcessName in V2 EXE

You can move it, if necessary, as I mentioned earlier. My point wasn't that the thread is misplaced, but that the placement of the thread has implications about what I would consider the subject of discussion, and how I respond to it. Initially, I wasn't aware that having an incomplete process name...

Go to advanced search