Search found 9296 matches

by lexikos
16 Mar 2024, 01:54
Forum: Announcements
Topic: End of Life: v1.1
Replies: 0
Views: 195

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

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...
by lexikos
15 Mar 2024, 23:12
Forum: Bug Reports
Topic: V2: \ is shown as ¥ in some situation perhaps due to font problem
Replies: 10
Views: 860

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

How would you interpret the Microsoft documentation I quoted above? Perhaps this is more enlightening. In practice, after many years of code page based systems in Japan and Korea using their respective currency symbols as the path separators, it is believed customers were simply used to this appeara...
by lexikos
15 Mar 2024, 21:55
Forum: Bug Reports
Topic: V2: \ is shown as ¥ in some situation perhaps due to font problem
Replies: 10
Views: 860

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

Some time since my last post, I saw Explorer displaying a file path with ¥ instead of backslash... in a scene on Netflix. I wondered if it is such a common occurrence that users in some locales would see it as normal, like ¥ is just another path separator. Japanese and Korean versions of Windows may...
by lexikos
14 Mar 2024, 22:45
Forum: Ask for Help (v2)
Topic: ControlFocus in v2
Replies: 4
Views: 151

Re: ControlFocus in v2

A blank or 0 result from ControlGetFocus means that the focused HWND is either NULL or a window which is not a control of the specified window. You cannot replicate this condition by focusing the window's topmost control. VS Code does not create a window for each control, so I suppose that the windo...
by lexikos
14 Mar 2024, 04:04
Forum: Ask for Help (v2)
Topic: Capslock doesn't work for a modifier key.
Replies: 7
Views: 146

Re: Capslock doesn't work for a modifier key.

Are you sure it's not a keyboard hardware limitation?

All of the hotkeys in the first post work as expected for me.
by lexikos
14 Mar 2024, 03:58
Forum: Bug Reports
Topic: Gui Edit text flickering issue
Replies: 10
Views: 272

Re: Gui Edit text flickering issue

You can see that the text in the 1st Edit control is quickly selected and deselected. No, I can't. Spy++ indicates that the Edit control is gaining and losing focus, but on my system it happens instantly and has no visible effect. FileSelect does nothing with focus or activation except activate the...
by lexikos
14 Mar 2024, 03:32
Forum: Bug Reports
Topic: not work when !]:: Send("^{Insert}a")
Replies: 7
Views: 268

Re: not work when !]:: Send("^{Insert}a")

Alt and AltGr are not the same thing. AltGr is always on the right.

What keyboard layout are you using?
by lexikos
10 Mar 2024, 01:50
Forum: Ask for Help (v2)
Topic: Questions about the order of hotkeys
Replies: 3
Views: 165

Re: Questions about the order of hotkeys

AutoHotkey currently doesn't even stop you from including the same modifier multiple times. ^++^b::MsgBox The specific way that you write the hotkey name (including the exact sequence of modifier characters) can matter if you are comparing the value of ThisHotkey or A_ThisHotkey to another string. T...
by lexikos
10 Mar 2024, 01:40
Forum: Ask for Help (v2)
Topic: Unreliable GetKeyState physical state detection (false positives) Topic is solved
Replies: 14
Views: 460

Re: Unreliable GetKeyState physical state detection (false positives) Topic is solved

The OS provides no way to retrieve "physical" state, so AutoHotkey tracks it with the keyboard hook. The physical state of a key or mouse button will usually be the same as the logical state unless the keyboard and/or mouse hooks are installed, in which case it will accurately reflect whether or not...
by lexikos
10 Mar 2024, 00:38
Forum: Bug Reports
Topic: #If with XButton1 staggers (infinitely)
Replies: 2
Views: 427

Re: #If with XButton1 staggers (infinitely)

One workaround is to avoid #HotIf evaluation while the hotkey is executing. The simplest method is to disable the hotkey and re-enable it before returning, but that has the side-effect of allowing key-repeats to pass through. Another method is to enable a global $x hotkey and disable it before retur...
by lexikos
10 Mar 2024, 00:27
Forum: Bug Reports
Topic: #If with XButton1 staggers (infinitely)
Replies: 2
Views: 427

Re: #If with XButton1 staggers (infinitely)

As you are not pressing XButton1, it can be safely assumed that it is the presence of the mouse hook, not the XButton1 hotkey, that makes the difference. This can be verified by replacing it with InstallMouseHook. Sending RButton in a loop is very disruptive and prone to accidents, especially while ...
by lexikos
09 Mar 2024, 22:30
Forum: Ask for Help (v2)
Topic: How to make such Gui Edit Topic is solved
Replies: 13
Views: 462

Re: How to make such Gui Edit Topic is solved

In fact, these two are not exactly the same. The built-in SendMessage actually calls SendMessageTimeoutW . When you send a message to your own control, there is no difference between SendMessageW and SendMessageTimeoutW. If the window receiving the message belongs to the same queue as the current t...
by lexikos
08 Mar 2024, 00:06
Forum: Ask for Help (v2)
Topic: How to make such Gui Edit Topic is solved
Replies: 13
Views: 462

Re: How to make such Gui Edit Topic is solved

If I understand your request correctly, this can be achieved with the SetCue method in v2.1-alpha.7+ or by sending the EM_SETCUEBANNER message in any version.
by lexikos
08 Mar 2024, 00:04
Forum: Ask for Help (v2)
Topic: How to set hotkeys in a different language?
Replies: 2
Views: 126

Re: How to set hotkeys in a different language?

You say "a different language", but different to what? Hotkey names are translated to key codes according to the keyboard layout which is active for the program at the time the hotkey is created (usually when the program is loading). So if RU is your system default or only keyboard layout, I would e...
by lexikos
07 Mar 2024, 23:43
Forum: Bug Reports
Topic: [v1.1.37.01]"Post-increment" forgets its "Post" ?
Replies: 12
Views: 538

Re: [v1.1.37.01]"Post-increment" forgets its "Post" ?

The (pre-)result (which the MsgBox has to display here) of the post-incrementation of a variable is the value of the variable before the incrementation, i.e. the untouched old content! In the case of a number, exactly this number, in the case of a string, exactly this string. (But no problem, even ...
by lexikos
07 Mar 2024, 22:49
Forum: Wish List
Topic: Small suggestions for the Dash - version and updates
Replies: 7
Views: 1465

Re: Small suggestions for the Dash - version and updates

To be clear, arbitrarily choosing one branch to check and display is not an answer that I would accept. Perhaps update checks should not be performed by default, and the process of opting in should require the user to specify which branches they want checked (e.g. v2.0, v2.1 and future). In the even...
by lexikos
02 Mar 2024, 22:43
Forum: Ask for Help (v2)
Topic: Static methods in base class not accesssible in derived class via "this".
Replies: 11
Views: 321

Re: Static methods in base class not accesssible in derived class via "this".

Why do you instantiate subclasses of cExcel, but not instantiate cExcel itself? Be consistent, and there won't be a problem. I think there is no good practical or semantic reason to define a "static class" (i.e. singleton object) and expect to use subclasses via instantiation. Perhaps you have start...
by lexikos
02 Mar 2024, 20:51
Forum: Wish List
Topic: Meta-Functions for math operators
Replies: 4
Views: 256

Re: Meta-Functions for math operators

I have used operator overloading only in strongly typed languages such as C# or C++, and have never had to consider the order of the operands in practice. I have read how Lua handles it, but don't know if it provides an answer to your question, and haven't given it much thought.
by lexikos
02 Mar 2024, 20:46
Forum: Ask for Help (v2)
Topic: Passing properties of an object WITHIN an object between functions
Replies: 12
Views: 350

Re: Passing properties of an object WITHIN an object between functions

No, there are always other hacks.

For instance, if the property corresponds to an actual variable, you can use a reference to that variable instead of a reference to the property. I demonstrated this in the topic Byref Array elements (Wish List). (You still can't use the syntax &this.myvar.)

Go to advanced search