Search found 35 matches

by lvalkov
28 Sep 2019, 08:53
Forum: AutoHotkey v2 Help
Topic: extends Array
Replies: 3
Views: 302

Re: extends Array

I believe the goal is to circumvent the laborious process of (mostly) manually defining Array extension methods, according to the template: Array.Prototype.DefineMethod('extensionMethod', this => (/* implementation details */)) by defining a class instead, having it extend Array (so as to inherit Ar...
by lvalkov
27 Sep 2019, 17:53
Forum: AutoHotkey v2 Development
Topic: [a105] CHM Search tab performance degradation
Replies: 1
Views: 302

[a105] CHM Search tab performance degradation

Having just recently updated to a105 , I observe a slight, albeit rather annoying, performance regression when accessing most items in the Search tab. The other tabs aren't affected. Previous versions might be, however, I haven't experimented any further to ascertain that. The a100 CHM does not exhi...
by lvalkov
09 Apr 2019, 14:24
Forum: Ask For Help
Topic: Creating a floating toolbar in PowerPoint
Replies: 1
Views: 196

Re: Creating a floating toolbar in PowerPoint

You might be interested in taking a look at this thread.
by lvalkov
09 Apr 2019, 14:22
Forum: Ask For Help
Topic: How to identify the current GUI default window? Topic is solved
Replies: 4
Views: 516

Re: How to identify the current GUI default window? Topic is solved

No. Clicking on the GUI1 window doesn't affect which GUI is the default one. Unless, of course, you're talking about clicking the button labeled "Close" , belonging to GUI1, in which case, yes, the default GUI for the "Close" button thread will be set to GUI1. I've already explained this interaction...
by lvalkov
09 Apr 2019, 14:15
Forum: Ask For Help
Topic: Resolve flickering gui attached to a window
Replies: 4
Views: 464

Re: Resolve flickering gui attached to a window

Below are three ways of approaching the task of "attaching an overlay window to another window" . The easiest and most straightforward way of implementing this is simply endlessly polling for the dimensions of your main window and readjusting the overlay window accordingly. In essence, all examples ...
by lvalkov
08 Apr 2019, 11:33
Forum: Ask For Help
Topic: How to identify the current GUI default window? Topic is solved
Replies: 4
Views: 516

Re: How to identify the current GUI default window? Topic is solved

Gui Destroy does not alter defaultness in any way, shape or form. It merely deletes the specified GUI. To find out what the default GUI for a given thread is, inspect A_DefaultGui . It will be 2 in your case, since Gui, 2:Default is the last instruction that changed it and given that your first but...
by lvalkov
07 Apr 2019, 19:14
Forum: Ask For Help
Topic: How to get the information that a specific process has been terminated?
Replies: 6
Views: 604

Re: How to get the information that a specific process has been terminated?

You could pass a PID to RegisterWaitForSingleObject() and do your processing in the callback, which will be fired upon the process's termination. Error handling, checking and recovery omitted for brevity. GlobalAlloc() used for more persistent heap allocation, although you could probably manage with...
by lvalkov
07 Apr 2019, 15:00
Forum: Ask For Help
Topic: Problem creating array from string Topic is solved
Replies: 7
Views: 591

Re: Problem creating array from string Topic is solved

Code: Select all

Person := []
Person.Push(StrSplit("Alice,30", ","))
Person.Push(StrSplit("Bob,40", ","))
by lvalkov
07 Apr 2019, 14:53
Forum: Ask For Help
Topic: Run AutoHotkey without installing Topic is solved
Replies: 2
Views: 338

Re: Run AutoHotkey without installing Topic is solved

Alternatively, in case you've downloaded the installer simply unzip it.
by lvalkov
06 Apr 2019, 13:08
Forum: Ask For Help
Topic: [solved] (simple) RegExReplace replaces too many occurrences Topic is solved
Replies: 1
Views: 292

Re: (simple) RegExReplace replaces too many occurrences Topic is solved

The dollar character is an assertion that is true only if the current matching point is at the end of the subject string, or immediately before a newline at the end of the string (by default). Note, however, that it does not actually match the newline. Dollar need not be the last character of the p...
by lvalkov
05 Apr 2019, 18:21
Forum: Bug Reports
Topic: ✅ #IfTimeout and keyboard hook bug
Replies: 5
Views: 1051

Re: ✅ #IfTimeout and keyboard hook bug

Even though older threads in the Bug Reports subforum suggest that marking a post as solved should be possible, I am unable to locate the button in question. Sorry.
The explanation makes sense. Thank you.
by lvalkov
05 Apr 2019, 15:41
Forum: Bug Reports
Topic: ✅ [v2] Unable to parse continuation section inside enclosure Topic is solved
Replies: 2
Views: 608

✅ [v2] Unable to parse continuation section inside enclosure Topic is solved

This issue has been resolved as of: Fixed quoted continuation sections inside continuation expressions. Given: boxes := () => ( MsgBox(' ( Multi. Line. Text. )'), MsgBox('Another function.') ) %boxes%() A continuation-section nested inside a continuation-by-enclosure cannot be parsed properly, resu...
by lvalkov
31 Mar 2019, 06:49
Forum: Ask For Help
Topic: Efficient way to remove elements from array Topic is solved
Replies: 13
Views: 1233

Re: Efficient way to remove elements from array Topic is solved

@Klarion I see. You have literally "Looped 10 million times" each function on the same, fixed-size array. Apparently, I was trying to read way too much into your assertion. That was a reading comprehension fail on my part. You are, however, correct in claiming that the difference in the execution s...
by lvalkov
29 Mar 2019, 13:09
Forum: Ask For Help
Topic: Efficient way to remove elements from array Topic is solved
Replies: 13
Views: 1233

Re: Efficient way to remove elements from array Topic is solved

@pneumatic I don't quite understand what you meant by "extra processing". Performance-wise the impact of reassigning arrays is minimal, as @jeeswg has pointed out. The only "extra" thing required is allocating enough space for the temp array. That is the trade-off. If you find typing it out unwield...
by lvalkov
28 Mar 2019, 19:27
Forum: Ask For Help
Topic: Efficient way to remove elements from array Topic is solved
Replies: 13
Views: 1233

Re: Efficient way to remove elements from array Topic is solved

The most efficient way would be to pluck the elements you would like to remain and place them in their own new array, optionally overwriting the original one. Array := [1, 0, 1, 1, 0, 1, 0, 0, 0, 1, 0] Ones := [] Ones.SetCapacity(Array.GetCapacity()) for k, v in Array if v Ones.Push(v) Array := Ones...
by lvalkov
27 Mar 2019, 19:56
Forum: Forum Issues
Topic: Disable images in signatures
Replies: 1
Views: 635

Disable images in signatures

Some people have taken it upon themselves to attempt to enforce forum policies(?) by including obnoxious images in their forum signatures. While I can only assume this was done in good faith, the implementation is lacking and positively disruptive to the casual browsing experience. I can do just fin...
by lvalkov
27 Mar 2019, 17:27
Forum: Ask For Help
Topic: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.
Replies: 9
Views: 956

Re: Chrome automation: codes were working fine till last few days but now throwing error. Help needed Please.

I don't know what might be causing this. Is the instance of Chrome that you're attempting to attach to being run with the --remote-debugging-port flag set to 9222?

Go to advanced search