Search found 9423 matches
- 24 Mar 2024, 16:37
- Forum: Ask for Help (v2)
- Topic: Trouble installing V2
- Replies: 6
- Views: 247
Re: Trouble installing V2
I would suggest running the following to confirm that the private key (which setup was failing to open or create) does not already exist. If you are unable to run .ahk files by double-clicking, you can drag-drop the file onto a copy of AutoHotkey.exe (v2). #Requires AutoHotkey v2 if !DllCall("Advapi...
- 24 Mar 2024, 05:52
- Forum: Ask for Help (v2)
- Topic: Trouble installing V2
- Replies: 6
- Views: 247
Re: Trouble installing V2
It is not possible for the message shown in picture 2 to appear if the files did not already exist before setup ran. The error shown in picture 3 is completely unrelated, and may well have occurred the first time around. This would have interrupted installation and put the installation directory in ...
- 24 Mar 2024, 03:06
- Forum: AutoHotkey Development
- Topic: Typed properties - experimental build available
- Replies: 68
- Views: 12073
Re: Typed properties - experimental build available
v2.1-alpha.9 (out now) Rather than constructing a struct and then replacing the already-allocated pointer with ObjSetDataPtr (which will probably be removed), StructFromPtr can be used to create a "typed pointer". At the moment it is more or less the same as a struct instance, but with __delete dis...
- 24 Mar 2024, 00:12
- Forum: AutoHotkey Development
- Topic: v2.1-alpha.10
- Replies: 9
- Views: 6657
v2.1-alpha.9
Added rudimentary struct pointers ( StructFromPtr ). Changed MouseGetPos to throw OSError if the mouse position cannot be determined. Changes applicable only to alpha users: Fixed static var := unset . Fixed throw() within Catch to re-throw. Fixed non-struct objects to not be allocated data by defau...
- 23 Mar 2024, 22:12
- Forum: Ask for Help (v2)
- Topic: How to obtain the memory address of a variable in AutoHotkey v2?
- Replies: 28
- Views: 1392
Re: How to obtain the memory address of a variable in AutoHotkey v2?
ptr := &intVar never did "Get the address of the integer". It got the address of a string of digits . That is now achieved by StrPtr. This and most (optimistically "all") other changes are explained in Changes from v1.1 to v2.0 . Just search that page for "&var (address-of)". I would still want to ...
- 23 Mar 2024, 22:07
- Forum: Ask for Help (v2)
- Topic: Passing GUI events to another GUI / letting GUI events fall through
- Replies: 14
- Views: 492
Re: Passing GUI events to another GUI / letting GUI events fall through
The script ceases to be "persistent" when you close the GUI, so it exits (apparently before releasing the object). If you use Persistent , you will see the message. (see __New (Gui) ). This avoids circular references There is a special case in the implementation of __New: when EventObj == this , it ...
- 23 Mar 2024, 21:17
- Forum: Ask for Help (v2)
- Topic: Trouble installing V2
- Replies: 6
- Views: 247
Re: Trouble installing V2
The second screenshot indicates one of the following: A previous installation at the same location failed partway (i.e. the screenshot isn't from your first attempt). You have manually extracted the installation files to the installation directory prior to running setup, or similar. It is warning yo...
- 23 Mar 2024, 20:59
- Forum: Ask for Help (v2)
- Topic: Embed comment in menu? Topic is solved
- Replies: 1
- Views: 87
Re: Embed comment in menu? Topic is solved
It is the same as a function which uses return without a parameter, but if you want to be safe, you will use => "".
- 23 Mar 2024, 20:56
- Forum: Ask for Help (v2)
- Topic: Keystrokes not passed by some apps?
- Replies: 6
- Views: 229
Re: Keystrokes not passed by some apps?
F14 through F22 share scan codes with the Browser_* and Launch_* keys, except that the latter have the "extended key" flag set (it is technically separate to the scan code, but AutoHotkey combines them into sc1xx or sc0xx). That might have some impact on how the OS processes them, although I'm not a...
- 23 Mar 2024, 20:32
- Forum: Bug Reports
- Topic: [V 1.1] Object.Delete(Key) doesn't work in some cases Topic is solved
- Replies: 1
- Views: 263
Re: [V 1.1] Object.Delete(Key) doesn't work in some cases Topic is solved
This is by design. words.Delete(NewWord) will try to call the function named "2". One of many design flaws of v1 fixed by v2. (You are effectively doing the same as words.Delete := 2 , which would also prevent the method from being called in v2. But in v2, an error would be thrown.) Also, I see you ...
- 23 Mar 2024, 06:13
- Forum: Bug Reports
- Topic: CaretGetPos wrong coordinates
- Replies: 5
- Views: 637
Re: CaretGetPos wrong coordinates
Last time I read it, the remarks for GetDpiForWindow didn't seem to fully explain how the value is determined. I think I had a cognitive disconnect between "The system DPI" and what it actually means on Windows 10: the baseline DPI for the target process . On Windows 8.1, I think the system DPI is t...
- 23 Mar 2024, 05:47
- Forum: Scripts and Functions (v1)
- Topic: TreeList Control (Experimental)
- Replies: 21
- Views: 7100
Re: TreeList Control (Experimental)
The reason, apparently, is that TreeList is not registered with CS_GLOBALCLASS. I happened to come across this at some point, and made a note to look into this limitation. At first glance, it would seem that the Custom control needs a way to specify the module. However, it is quite trivial to work ...
- 23 Mar 2024, 01:50
- Forum: Bug Reports
- Topic: CaretGetPos wrong coordinates
- Replies: 5
- Views: 637
Re: CaretGetPos wrong coordinates
Am I missing something, or are the GetWindowDpiAwarenessContext and GetAwarenessFromDpiAwarenessContext calls unnecessary? Can someone confirm that the issue with CaretGetPos exists on Windows >=8.1 <1607? If so, I'm not expecting there to be a fix for those versions. GetDpiForMonitor (like per-moni...
- 23 Mar 2024, 01:09
- Forum: Bug Reports
- Topic: Remapping Alt key is unreliable
- Replies: 10
- Views: 1324
Re: Remapping Alt key is unreliable
This might have been fixed by v2.0.12.
Fixed Send erroneously releasing a modifier due to a race condition. For example, ~LAlt::Send "{Blind}x" intermittently released LAlt if some other keyboard hook was installed more recently than the script's own hook.
- 22 Mar 2024, 23:06
- Forum: Scripts and Functions (v2)
- Topic: Apply hotkeys to the new context menu on Windows 11
- Replies: 9
- Views: 3653
Re: Apply hotkeys to the new context menu on Windows 11
At some point Microsoft changed the window class of the context menu from Xaml_WindowedPopupClass to Microsoft.UI.Content.PopupWindowSiteBridge. Aside from that, the script still works.
- 22 Mar 2024, 20:28
- Forum: Bug Reports
- Topic: " Up::" seems to not work properly in 2.0.7 Topic is solved
- Replies: 3
- Views: 918
Re: " Up::" seems to not work properly in 2.0.7 Topic is solved
I previously suggested that SendEvent could be a workaround, but that was a mistake. When SendEvent is used, or when Send or SendInput falls back to SendEvent mode, the issue you described is present even on v2.0.6 and earlier. SendInput mode was not affected by the issue because of the bug I mentio...
- 22 Mar 2024, 20:24
- Forum: Ask for Help (v2)
- Topic: [Q] Enumerator - Why is cloned class different from original? Topic is solved
- Replies: 4
- Views: 235
- 22 Mar 2024, 20:22
- Forum: Bug Reports
- Topic: SysGetIPAddresses() causes Invalid memory read/write. Topic is solved
- Replies: 7
- Views: 453
Re: SysGetIPAddresses() causes Invalid memory read/write. Topic is solved
A_IPAddressX and SysGetIPAddresses weren't designed to handle failure. v2.0.12 fixes this. However, whatever condition was causing it to fail will likely still do so; you'll just get an empty array instead of a Critical Error. If you are not having issues in other software, I would suggest looking a...
- 22 Mar 2024, 20:19
- Forum: Bug Reports
- Topic: [2.0.11] Error 87 by ControlGetFocus("A") when cmd.exe active Topic is solved
- Replies: 4
- Views: 430
Re: [2.0.11] Error 87 by ControlGetFocus("A") when cmd.exe active Topic is solved
In v2.0.12, ControlGetFocus returns 0 for console windows.
- 22 Mar 2024, 20:15
- Forum: Bug Reports
- Topic: not work when !]:: Send("^{Insert}a") Topic is solved
- Replies: 8
- Views: 500
Re: not work when !]:: Send("^{Insert}a") Topic is solved
Fixed by v2.0.12.
@ZhuangQu it would have been helpful to say that when mcl first brought up AltGr.
@ZhuangQu it would have been helpful to say that when mcl first brought up AltGr.