Search found 5808 matches

by lexikos
Today, 02:03
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 131
Views: 31562

Re: .NET Framework Interop (CLR, C#, VB)

Probably the wrong .NET Framework version, or bitness (32-bit vs 64-bit, though I think some assemblies are both).
by lexikos
Today, 02:01
Forum: AutoHotkey v2 Development
Topic: AHK V2, Object(obj): is doc correct?
Replies: 6
Views: 117

Re: AHK V2, Object(obj): is doc correct?

I assumed so when I replied, but didn't care to mention it.

v1: Object(obj) [calls AddRef and returns the object's address].
v2: Object(obj) no longer [calls AddRef and returns the object's address].

I'm sure someone can fix it.
by lexikos
14 Jul 2018, 22:36
Forum: Wish List
Topic: #define MAX_HOTKEYS 1000
Replies: 2
Views: 199

Re: #define MAX_HOTKEYS 1000

See test build. It seems I exaggerated the cost.
by lexikos
14 Jul 2018, 22:35
Forum: Announcements
Topic: Test build - increased max hotkeys to 32762
Replies: 1
Views: 114

Test build - increased max hotkeys to 32762

v1.1.29.01-3+ga4de083 This test build removes the limit of 1000 hotkeys previously imposed by the internal use of fixed-size arrays. There is a limit of 32762 (0x7FF9) hotkeys based on the range of ID values available. Compared to the jump from 1000 to 32k, the cost of further increasing the limit ...
by lexikos
14 Jul 2018, 22:05
Forum: AutoHotkey v2 Development
Topic: Downloading v2
Replies: 10
Views: 573

Re: Downloading v2

DrReflex, tank and joedf manage the website and forum. I have a responsibility to ensure the binaries I upload are malware-free. Beyond that, I have no wish to spend my time fighting against Google and antivirus vendors or otherwise managing the site. Perhaps copies of the email warnings from Google...
by lexikos
14 Jul 2018, 19:19
Forum: Ask For Help
Topic: How can I link GUI vVariables with elements of an object
Replies: 5
Views: 95

Re: How can I link GUI vVariables with elements of an object

Array elements are not "variables" and cannot be assigned to GUI controls. It is not necessary to name each Edit control. You can refer to it by ClassNN or HWND. For instance, use the HWND VarName option when creating the control to get its HWND and then copy the value of VarName into an a...
by lexikos
14 Jul 2018, 19:11
Forum: AutoHotkey v2 Development
Topic: AHK V2, Object(obj): is doc correct?
Replies: 6
Views: 117

Re: AHK V2, Object(obj): is doc correct?

Is what doc correct?

You seem to expect Object(obj) to return an address, but the document you quoted is telling you it does not do that anymore.

If there is any reference to Object(obj) in the actual v2 documentation, it is an error left over from v1.
by lexikos
14 Jul 2018, 01:47
Forum: Ask For Help
Topic: Key & any key?
Replies: 6
Views: 136

Re: Key & any key?

If the requirements stated in the OP are met, < will click LButton even when you intend to use it as Ctrl. There may be trouble if you aren't conscious of the mouse position when you use the hotkey. That aside, there are methods simpler than those shown above. The first method puts LCtrl down uncond...
by lexikos
11 Jul 2018, 22:28
Forum: Bug Reports
Topic: Window Spy resize
Replies: 4
Views: 380

Re: Window Spy resize

It's part of the AutoHotkey-Release repository.
https://github.com/Lexikos/AutoHotkey-R ... Spy.v1.ahk
by lexikos
11 Jul 2018, 22:06
Forum: AutoHotkey v2 Development
Topic: Binary Data | VarSetCapacity | VarSetLength | Heap Object
Replies: 26
Views: 611

Re: Binary Data | VarSetCapacity | VarSetLength | Heap Object

Tell me a single good reason why we shouldn't have a method named bin.ReadBin(). Why should I? I merely provided an example based directly on your own example. Even combining seek + read, it is still more complex than NumGet, still with no apparent advantage. I still think that creating a typed str...
by lexikos
11 Jul 2018, 21:57
Forum: Scripts and Functions
Topic: .NET Framework Interop (CLR, C#, VB)
Replies: 131
Views: 31562

Re: .NET Framework Interop (CLR, C#, VB)

An exception was thrown by the constructor. You probably can't call this constructor from unmanaged (COM) code. I'd guess that you can't use VT_UNKNOWN (13) for this null value since it is a nullable value type, not an object. You may need to use some helper code (C# or VB). LayoutKind.Automatic Ind...
by lexikos
11 Jul 2018, 00:53
Forum: AutoHotkey v2 Development
Topic: Binary Data | VarSetCapacity | VarSetLength | Heap Object
Replies: 26
Views: 611

Re: Binary Data | VarSetCapacity | VarSetLength | Heap Object

Helgef, there is no plan. Only vague intentions. nnnik, my point remains that the stream/binary object abstraction is unsuitable for COM interfaces. It is no more "descriptant" than NumGet; you still specify the offset, data type and operation, but take longer (more steps) and allocate mor...
by lexikos
11 Jul 2018, 00:13
Forum: Wish List
Topic: #define MAX_HOTKEYS 1000
Replies: 2
Views: 199

Re: #define MAX_HOTKEYS 1000

Increased memory usage. Allowing the limit to be set or changed while the program is running would increase code size and complexity. If it is done at all, I would choose to adjust the limit automatically (or in other words, let it be "current capacity", not a limit). I do not want to add ...
by lexikos
07 Jul 2018, 20:24
Forum: Ask For Help
Topic: Any way to access Vive controller axis values?
Replies: 2
Views: 71

Re: Any way to access Vive controller axis values?

I have some interest in using the Vive controller wands or something similar, but I don't own any yet. I'm guessing that the Vive controller does not present itself as a standard game controller, but is at least a USB HID (Human Interface Device). The libvive project appears to contain some details ...
by lexikos
07 Jul 2018, 20:14
Forum: Ask For Help
Topic: Audio detection in AutoHotKey
Replies: 1
Views: 74

Re: Audio detection in AutoHotKey

Perhaps you can use VA_GetAudioMeter from VA.ahk.
by lexikos
07 Jul 2018, 20:09
Forum: Ask For Help
Topic: If Var is upper exhibiting weird behaviour
Replies: 4
Views: 127

Re: If Var is upper exhibiting weird behaviour

It still really bugs me that if upper exhibited such random behavior, It did not. What you were using was if (expression) with implicit concatenation of undefined variables ( is and upper ), not if var is type . As Joe noted, the correct syntax for if var is type is If tmpVar2 is upper , without pa...
by lexikos
07 Jul 2018, 20:06
Forum: Ask For Help
Topic: Hotkey issue with SciTE / Running script from SciTE blocks a hotkey in
Replies: 2
Views: 76

Re: Hotkey issue with SciTE / Running script from SciTE blocks a hotkey in

I do not see how SciTE4AutoHotkey could cause this. It does run a script of its own for the toolbar, but that does not have any hotkeys or otherwise use the keyboard hook, and it is active always, not just after you press F5. The debugger has hotkeys, but the debugger script only runs while debuggin...

Go to advanced search