Search found 9394 matches

by lexikos
22 Mar 2024, 19:39
Forum: Announcements
Topic: v2.0.13
Replies: 13
Views: 25749

v2.0.12

Fixed Gui GetPos/GetClientPos when Gui has an owner window or +DPIScale. Fixed Until preventing subfolder recursion in file loops. Fixed DllCall to throw when arg type is UStr. Fixed a memory leak occurring for each regex callout. Fixed Send erroneously releasing a modifier due to a race condition. ...
by lexikos
22 Mar 2024, 19:28
Forum: Ask for Help (v2)
Topic: Throwing Continuable Errors Directly Topic is solved
Replies: 4
Views: 102

Re: Throwing Continuable Errors Directly Topic is solved

Is using Throw with v2.1-alpha.3+ (as quoted above) not an easy solution? It is literally what you asked for: throw a continuable error directly.
by lexikos
22 Mar 2024, 18:16
Forum: Ask for Help (v2)
Topic: Throwing Continuable Errors Directly Topic is solved
Replies: 4
Views: 102

Re: Throwing Continuable Errors Directly Topic is solved

[v2.1-alpha.3+]: Throw is continuable. That is, if a callback or the user vetoes thread exit, Throw returns, allowing subsequent statements or expressions to be evaluated. The return value is unspecified and should not be relied upon. For v2.0, the best you can do is throw a non-continuable error f...
by lexikos
22 Mar 2024, 17:28
Forum: Bug Reports
Topic: Tooltips for truncated items in ListView are not correctly updated when ActiveX control is added
Replies: 3
Views: 264

Re: Tooltips for truncated items in ListView are not correctly updated when ActiveX control is added

Your questions are better asked in the original topic, not the Bug Report forum. I left this topic open for reports or discussion of a possible workaround.
by lexikos
22 Mar 2024, 17:19
Forum: Bug Reports
Topic: Weird critical error Topic is solved
Replies: 4
Views: 280

Re: Weird critical error Topic is solved

That's definitely not going to happen "in regular mode as well (without debugging)". Probably something like this is happening: Debugger::ProcessCommands waits for commands, receives context_get. context_get calls Debugger::WritePropertyXml to write SomeClass. Debugger::WritePropertyXml is called re...
by lexikos
22 Mar 2024, 17:03
Forum: Ask for Help (v2)
Topic: Passing GUI events to another GUI / letting GUI events fall through
Replies: 14
Views: 402

Re: Passing GUI events to another GUI / letting GUI events fall through

The AutoHotkey Dash and related GUIs all use this technique. https://github.com/AutoHotkey/AutoHotkeyUX Create a class which extends Gui (direct or indirect). "override __New and call super.__New(Options, Title, this) " Pass a method name to OnEvent. (If you pass an object, it will work the same as ...
by lexikos
22 Mar 2024, 05:43
Forum: Ask for Help (v2)
Topic: Case Sensitivity
Replies: 5
Views: 158

Re: Case Sensitivity

mikeyww wrote:I would like to clarify that only the window title of a WinTitle is case-sensitive.
ahk_class is also case-sensitive, even without RegEx.
by lexikos
22 Mar 2024, 03:35
Forum: Ask for Help (v2)
Topic: Passing GUI events to another GUI / letting GUI events fall through
Replies: 14
Views: 402

Re: Passing GUI events to another GUI / letting GUI events fall through

When the event is handled by an anonymous function, of course you can't call that function. I wasn't suggesting that you duplicate the event handler in its entirety, but "just call a method of MainGui" from both event handlers . Then if you want to change how the context menu is shown, you modify th...
by lexikos
22 Mar 2024, 02:56
Forum: Ask for Help (v2)
Topic: Does SetTimer use polling to track the time? Topic is solved
Replies: 1
Views: 91

Re: Does SetTimer use polling to track the time? Topic is solved

If there is an energy cost but you have no way to observe or measure it, why care? If you have a way to measure it, then do that. Making assumptions about how something of this nature performs based on how it is implemented is a poor idea. If you're just curious about how it works, you can (try to) ...
by lexikos
22 Mar 2024, 02:26
Forum: Bug Reports
Topic: Weird critical error Topic is solved
Replies: 4
Views: 280

Re: Weird critical error Topic is solved

I could not produce any crashes. If a class has a dynamic static property, it is likely to be invoked whenever VS Code updates its list of global variables. The global variables don't appear to be shown or updated if the script is running (not paused or at a breakpoint), but maybe they are if you us...
by lexikos
22 Mar 2024, 00:31
Forum: Bug Reports
Topic: inconsistent or-maybe results
Replies: 2
Views: 155

Re: inconsistent or-maybe results

This is essentially a duplicate of a:=%5%??77 will not throw . There is no difference between %"nonexistentvariablename"% and %"any invalid variable name"% , by design. It is not valid to dynamically reference a variable which does not exist, regardless of whether the name you are passing would be v...
by lexikos
22 Mar 2024, 00:08
Forum: Ask for Help (v2)
Topic: Passing GUI events to another GUI / letting GUI events fall through
Replies: 14
Views: 402

Re: Passing GUI events to another GUI / letting GUI events fall through

ContextMenu Launched whenever the user right-clicks anywhere in the window except the title bar and menu bar . You are passing the coordinates incorrectly (words are 16-bit, not 32-bit). The message handler receives a Y coordinate of zero (assuming (x >> 16) & 0xFFFF = 0 ), which is very likely to ...
by lexikos
21 Mar 2024, 22:49
Forum: Bug Reports
Topic: Tooltips for truncated items in ListView are not correctly updated when ActiveX control is added
Replies: 3
Views: 264

Re: Tooltips for truncated items in ListView are not correctly updated when ActiveX control is added

There are several reasons I would consider this to be "not a bug", or otherwise irrelevant to me (as the developer of AutoHotkey): As far as I am aware, displaying tooltips over items is not a documented feature of AutoHotkey. Even the documentation for the style number (which is copied from Microso...
by lexikos
21 Mar 2024, 04:08
Forum: Ask for Help (v2)
Topic: Keystrokes not passed by some apps?
Replies: 6
Views: 201

Re: Keystrokes not passed by some apps?

How is the macro pad "mapped"? In software, which may differentiate between apps? If you run the script as posted, it will most likely use registered hotkeys and will not install the keyboard hook. KeyHistory would show that the hook is not installed. What happens if you add either InstallKeybdHook ...
by lexikos
21 Mar 2024, 03:41
Forum: Ask for Help (v2)
Topic: Passing GUI events to another GUI / letting GUI events fall through
Replies: 14
Views: 402

Re: Passing GUI events to another GUI / letting GUI events fall through

You can post a WM_CONTEXTMENU message to the main GUI.
by lexikos
21 Mar 2024, 03:26
Forum: Bug Reports
Topic: [2.0.11] Error 87 by ControlGetFocus("A") when cmd.exe active Topic is solved
Replies: 4
Views: 358

Re: [2.0.11] Error 87 by ControlGetFocus("A") when cmd.exe active Topic is solved

As documented... An OSError is thrown if there is a problem determining the focus. The target window belongs to a thread which does not have a message queue; in other words, a non-GUI thread. GetGUIThreadInfo can't be used to retrieve the focus (and other info) as it is not a GUI thread and has no f...
by lexikos
16 Mar 2024, 01:54
Forum: Announcements
Topic: End of Life: v1.1
Replies: 0
Views: 582

End of Life: v1.1

I intend for v1.1.37.02 (released today) to be my final update to v1. I do not intend to accept pull requests to the v1.1 branch, much less fix bugs or implement features myself. Anyone wishing to fork a version of v1 to continue its development is welcome to do so, as all versions of AHK continue t...
by lexikos
16 Mar 2024, 01:42
Forum: Announcements
Topic: v1.1.37
Replies: 2
Views: 1462

v1.1.37.02

Fixed inability of LWin::Alt to be used to activate some Alt-combos. Fixed mouse AltTab hotkeys not suppressing execution of a prefix hotkey, such as 1:: for 1 & WheelDown::AltTab . (Broken by v1.1.37.00) Fixed hook hotkeys not recognizing modifiers which are pressed down by SendInput. Fixed some is...

Go to advanced search