Search found 32 matches

by lvalkov
09 Apr 2019, 14:24
Forum: Ask For Help
Topic: Creating a floating toolbar in PowerPoint
Replies: 1
Views: 152

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

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

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

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

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

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

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

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

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
Replies: 0
Views: 243

[v2] Unable to parse continuation section inside enclosure

Given: boxes := () => ( MsgBox(' ( Multi. Line. Text. )'), MsgBox('Another function.') ) %boxes%() A continuation-section nested inside a continuation-by-enclosure cannot be parsed properly, resulting in the following error message: E:\enclosure.ahk (1) : ==> Missing "'" Specifically: boxes := () =>...
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: 855

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

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

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

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

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?
by lvalkov
23 Mar 2019, 09:50
Forum: Ask For Help
Topic: When is a window not a window? WinGet , Tally, Count
Replies: 3
Views: 263

Re: When is a window not a window? WinGet , Tally, Count

A control is a window. Occupies a certain portion of the screen. May or may not be visible at a given moment. Knows how to draw itself. Responds to events from the user or the operating system. WinGet, OutputVar, List doesn't list windows by name. It lists them by their handles. Since you haven't cl...
by lvalkov
22 Mar 2019, 08:51
Forum: Bug Reports
Topic: ✅ #IfTimeout and keyboard hook bug
Replies: 5
Views: 790

Re: #IfTimeout and keyboard hook bug

Because I was unable to locate any LowLevelHooksTimeout values in the registry on Windows 10, I must now operate under the assumption that LowLevelHooksTimeout is undefined , meaning the system timeout is supposed to be in the ballpark of around 300 ms . If up to 300 ms are allowed for, why then doe...

Go to advanced search