Search found 6693 matches

by lexikos
Yesterday, 22:35
Forum: AutoHotkey v2 Help
Topic: RegEx misses unicode bullet
Replies: 3
Views: 1784

Re: RegEx misses unicode bullet

FYI, UTF-8 is the default since v2.0-a112.
by lexikos
Yesterday, 22:27
Forum: AutoHotkey v2 Help
Topic: Warning: This variable has not been assigned a value
Replies: 4
Views: 1460

Re: Warning: This variable has not been assigned a value

.= isn't assignment. It is concatenation followed by assignment. The concatenation comes first.
by lexikos
Yesterday, 22:23
Forum: Bug Reports
Topic: [V2] userClass.p1+= var, userClass.p2 += var / a114 a115 / causes crash
Replies: 4
Views: 1580

Re: [V2] userClass.p1+= var, userClass.p2 += var / a114 a115 / causes crash

No, that's a bug. Thanks for making it easy to reproduce.

It might relate to the multi-statement comma. Your final script works for me if I break up the += assignments into two lines.
by lexikos
06 Jul 2020, 23:47
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 17
Views: 6580

Re: GuiCtrl.GetPos()

kczx3 I was originally alluding to general wastefulness. I am not concerned about performance, and have merely been debating topics you have brought up. I've already suggested that gc.GetPos() could be extended to return an object; if there's any reason this hasn't happened yet, it is unrelated to ...
by lexikos
06 Jul 2020, 05:54
Forum: AutoHotkey v2 Development
Topic: [a112] Refactor the Object-delegating GuiType::Invoke; Simplify inheriting
Replies: 1
Views: 821

Re: [a112] Refactor the Object-delegating GuiType::Invoke; Simplify inheriting

I neglected to mention that this was fixed in v2.0-a113. The first code snippet no longer causes an exception.
by lexikos
06 Jul 2020, 05:51
Forum: Bug Reports
Topic: [a114] cant open AutoHotkey.chm anymore Topic is solved
Replies: 3
Views: 1258

Re: [a114] cant open AutoHotkey.chm anymore Topic is solved

The workaround added in v2.0-a115 appears to be effective.
by lexikos
06 Jul 2020, 05:49
Forum: Bug Reports
Topic: New error in a114 vs a113 [v2] Topic is solved
Replies: 5
Views: 2218

Re: New error in a114 vs a113 [v2] Topic is solved

Tigerlily Some of your attempts to work around the bug are invalid. You cannot use . just to perform continuation; it is the concatenation operator, so must be placed between two operands (values). Placing it immediately after the open-parentheses of a function call is invalid, whether or not it is...
by lexikos
06 Jul 2020, 05:43
Forum: Bug Reports
Topic: v2: Fail to create Tab control Topic is solved
Replies: 4
Views: 1713

Re: v2: Fail to create Tab control Topic is solved

There are two bugs: The Text parameter of MyGui.Add is ignored by Tab3 and Tab2, so the control actually has no tabs. The position of the tab dialog (the window that contains a Tab3's controls) is not updated when tabs are added, only when the Tab control is moved. You can work around it like this: ...
by lexikos
06 Jul 2020, 05:42
Forum: Bug Reports
Topic: New error in a114 vs a113 [v2] Topic is solved
Replies: 5
Views: 2218

Re: New error in a114 vs a113 [v2] Topic is solved

Thanks; I'd actually already seen the mistake that causes this but forgotten to fix it. Fixed in v2.0-a115.
by lexikos
06 Jul 2020, 05:41
Forum: Bug Reports
Topic: [a114] Invalid Key Name Topic is solved
Replies: 1
Views: 704

Re: [a114] Invalid Key Name Topic is solved

It's a bug, fixed in v2.0-a115.
by lexikos
06 Jul 2020, 05:40
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 alpha (UPDATES)
Replies: 69
Views: 61186

v2.0-a115-f7c71ea8

Fixed lines reachable by local label being flagged as unreachable. Fixed continuation expressions. Fixed Gui.Prototype.Add ignoring param #3 for Tab2 and Tab3 controls. Fixed Tab3 display area not adjusting when a tab row is added/removed. Fixed remappings. D4171136E01BB2BA1ED658F07D7ADD36495ADF0266...
by lexikos
06 Jul 2020, 05:10
Forum: Ask For Help
Topic: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved
Replies: 8
Views: 3798

Re: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved

There is no guarantee that calling an invalid virtual function will result in an error code return. You don't even know which function you're calling, or that there's even a function at that slot in the virtual function table. The added error checking would be a waste of space, because passing an in...
by lexikos
06 Jul 2020, 05:06
Forum: AutoHotkey v2 Help
Topic: 2.0-a111 ahk break
Replies: 4
Views: 1575

Re: 2.0-a111 ahk break

w64bit There are several problems with your code that do not relate to v2.0-a111. Is this your real code? The space between WinExist and ("calc") will cause it to be interpreted as WinExist . "calc" , where WinExist is an unset variable which will cause a warning. After the warning, the If evaluate...
by lexikos
06 Jul 2020, 03:18
Forum: AutoHotkey v2 Help
Topic: Warning: This variable has not been assigned a value
Replies: 4
Views: 1460

Re: Warning: This variable has not been assigned a value

The warning is that you have not assigned a value, so avoid the warning by assigning a value. #Warn doesn't care what value you assign, but obviously you should assign whichever value you need the variable to have. Suppose that an uninitialized variable has a random value you cannot predict. What wi...
by lexikos
05 Jul 2020, 22:42
Forum: AutoHotkey v2 Development
Topic: GuiCtrl.GetPos()
Replies: 17
Views: 6580

Re: GuiCtrl.GetPos()

Uh, that was your suggestion. No, my suggestion was to add properties for cases like your example, where you only retrieve one coordinate from each control at a time. It was not "to atomically get them all via properties". If you need to atomically get them all, you can do that with GetPos. I think...
by lexikos
05 Jul 2020, 22:28
Forum: Bug Reports
Topic: Unexpected keyup event sent by UP hotkeys
Replies: 2
Views: 1238

Re: Unexpected keyup event sent by UP hotkeys

So what you're saying is that the LShift key-up is not suppressed unless you define the key-down hotkey, even though the key-down is suppressed in both instances? That does seem to be a bug, but as for whether it's a problem ... It's probably gone unnoticed because an isolated key-up almost never ha...
by lexikos
05 Jul 2020, 05:43
Forum: AutoHotkey v2 Development
Topic: AutoHotkey v2 alpha (UPDATES)
Replies: 69
Views: 61186

v2.0-a114-65fd90d8

This release has some major bugs. Get v2.0-a115 instead. The following limits have been removed by utilizing dynamic allocations: Maximum line or continuation section length of 16,383 characters. Maximum 512 tokens per expression (MAX_TOKENS). Arrays internal to the expression evaluator which were ...
by lexikos
03 Jul 2020, 23:22
Forum: AutoHotkey v2 Development
Topic: Exceptions (for unknown properties, more)
Replies: 17
Views: 4176

Re: Exceptions (for unknown properties, more)

You may have noticed I changed the default button. I intend to change the button names (and more about the dialog), but I am prioritizing other things. Now, the user will instead press Yes-Yes-Yes, possibly until something goes very wrong. I prefer not to design things under the assumption that the ...
by lexikos
03 Jul 2020, 21:33
Forum: Ask For Help
Topic: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved
Replies: 8
Views: 3798

Re: VA_IAudioSessionControl2_GetProcessId hangs the script Topic is solved

malcev , as with DllCall, if you pass invalid parameters, that's your problem. One can only check the type of an interface pointer if it is a valid interface pointer derived from IUnknown, which is the case here, but not for all invalid parameters. These functions are basic low level wrappers for i...

Go to advanced search