Search found 204 matches

by JJohnston2
22 Jun 2023, 23:44
Forum: Ask for Help (v2)
Topic: GUI ListView KeyPress Detect in v2 Topic is solved
Replies: 2
Views: 457

Re: GUI ListView KeyPress Detect in v2 Topic is solved

This worked great for me, thanks!
by JJohnston2
19 Jun 2023, 17:29
Forum: Suggestions on Documentation Improvements
Topic: DuckDuck Go Privacy Extension and AutoHotkey docs
Replies: 0
Views: 512

DuckDuck Go Privacy Extension and AutoHotkey docs

FYI, I was having problems with extremely high CPU usage with one or more doc web pages loaded (such as this one: https://www.autohotkey.com/docs/v2/lib/StrPtr.htm ). After further testing, it became clear that it was only happening on Firefox, not Chrome, and after individually disabling various ex...
by JJohnston2
19 Jun 2023, 16:36
Forum: Ask for Help (v2)
Topic: v2 Nested Class definition Topic is solved
Replies: 3
Views: 387

Re: v2 Nested Class definition Topic is solved

Thanks both for replies. The simplified example was particularly useful and marking the classes static enabled the calling notation (in the original code, which I didn't write), to remain the same.
by JJohnston2
16 Jun 2023, 16:06
Forum: Ask for Help (v2)
Topic: v2 Nested Class definition Topic is solved
Replies: 3
Views: 387

v2 Nested Class definition Topic is solved

Trying to use some v1 code in v2 (with minimal changes where needed). The v1 code has a nested class Encrypt defined inside of class Crypt , and some methods (including StrEncrypt() ) defined inside of class Encrypt ... see excerpt below. User code: hash := Crypt.Encrypt.StrEncrypt(input:="123",pw:=...
by JJohnston2
12 Jun 2023, 00:20
Forum: Ask for Help (v2)
Topic: WinWaitNotActive Timeout - Wait Forever Topic is solved
Replies: 2
Views: 283

WinWaitNotActive Timeout - Wait Forever Topic is solved

WinWaitNotActive WinTitle, WinText, Timeout, ExcludeTitle, ExcludeText ... Timeout Type: Integer or Float How many seconds to wait before timing out and returning 0. Leave blank to allow the function to wait indefinitely. ... I use variables sometimes to denote the argument meaning in functions whe...
by JJohnston2
30 Mar 2023, 21:44
Forum: SciTE4AutoHotkey
Topic: I can't get scite4 to run v2 Topic is solved
Replies: 3
Views: 1194

Re: I can't get scite4 to run v2 Topic is solved

@Datapoint ... Thanks!!
by JJohnston2
26 Feb 2023, 23:41
Forum: Ask for Help (v2)
Topic: GUI ListView KeyPress Detect in v2 Topic is solved
Replies: 2
Views: 457

GUI ListView KeyPress Detect in v2 Topic is solved

In v1 there were checks that could be used with a GUI ListView to detect a keypress and check the key that was pressed as shown below: MyListView: If ((A_GuiEvent="K" AND Chr(A_EventInfo)=" ")) DoSomething() In the v1 code above, A_EventInfo was used to see if Space was pressed on the ListView (in t...
by JJohnston2
03 Apr 2022, 15:36
Forum: Ask for Help (v1)
Topic: Method to move the SciTE divider for search results
Replies: 3
Views: 478

Re: Method to move the SciTE divider for search results

Yep, that occurred to me as a possible solution while I was writing the first post, so I went ahead and tried it. The top pane can be reduced in size (temporarily until you click) but the border between panes doesn't move. Changing the size of the bottom pane makes the bottom pane disappear complete...
by JJohnston2
02 Apr 2022, 18:25
Forum: Ask for Help (v1)
Topic: Method to move the SciTE divider for search results
Replies: 3
Views: 478

Method to move the SciTE divider for search results

I would like to toggle the vertical size of the search result pane in SciTE between 'normal (default)' and 'lots of search results showing, almost no code visible'. This can probably be done with a simulated mouse click+drag but I was looking for a programmatic way first, to adjust the pane size. De...
by JJohnston2
21 Mar 2022, 14:28
Forum: Ask for Help (v1)
Topic: Tablet / Touch Events
Replies: 1
Views: 424

Tablet / Touch Events

When using a tablet or touch screen along with an application that has a list of items (such as an email or to-do program), swiping left or right on an item can often be associated with an action (archive, delete, etc.). Does AutoHotkey have any way to simulate touch events on a non-touch system, wh...
by JJohnston2
19 Sep 2017, 00:13
Forum: Scripts and Functions (v1)
Topic: Excel: get selection screen coordinates (selected cells)
Replies: 3
Views: 1662

Re: Excel: get selection screen coordinates (selected cells)

Interesting idea. I like the proof of concept on translating screen coordinates, that may come in handy. Functionally, this doesn't do so well when the selected cell is off-screen (which would go for any highlight mechanism, except for in this case, the code draws a highlight box on top of the ribbo...
by JJohnston2
15 Sep 2017, 20:13
Forum: Ask for Help (v1)
Topic: Size the SciTE Output window
Replies: 1
Views: 950

Size the SciTE Output window

In SciTE there is an output window that can be used split screen. The class for the window on top is usually Scintilla1 and Scintilla2 for the window on bottom. The splitter bar in the middle appears to show SciTEWindowContent1, which actually encompasses both Scintilla1 and Scintilla 2, but draggin...
by JJohnston2
14 Jul 2017, 14:49
Forum: Ask for Help (v1)
Topic: .NET Windows
Replies: 3
Views: 1208

Re: .NET Windows

I have just been coming up to speed on using the AccViewer recently... I'll check that out and see if it finds anything.

I saw some of the other posts you had on executing the default action for Excel buttons... are there any other neat things you know of that can be done with it?
by JJohnston2
14 Jul 2017, 02:37
Forum: Ask for Help (v1)
Topic: .NET Windows
Replies: 3
Views: 1208

.NET Windows

I think SourceTree is written in .NET, the title/class/process info in Window Spy look like so: SourceTree ahk_class HwndWrapper[SourceTree.exe;;75302d1d-4350-49ed-81e5-c98f7e7b3b2d] ahk_exe SourceTree.exe No ClassNN values for any of the controls (mousing over things) Nothing for Status Bar Text No...
by JJohnston2
05 Jul 2017, 10:48
Forum: Ask for Help (v1)
Topic: A Better Way to Read Stdout
Replies: 3
Views: 6320

Re: A Better Way to Read Stdout

Didn't find these posts during previous searches... these look promising. Thanks.
by JJohnston2
05 Jul 2017, 00:32
Forum: Ask for Help (v1)
Topic: A Better Way to Read Stdout
Replies: 3
Views: 6320

A Better Way to Read Stdout

Does anyone have a good code example that shows stdout captured from a console command? Without a console window popping up Without redirecting command output to a file using > or >> and then reading the file Code below is from the RunWait help topic. It captures stdout from an executed command (or ...
by JJohnston2
02 Jul 2017, 18:09
Forum: Ask for Help (v1)
Topic: Capture all keystrokes on a GUI
Replies: 3
Views: 2491

Re: Capture all keystrokes on a GUI

>Are you talking about an AHK gui/edit control? No. Talking about detecting keystrokes when a ListBox is active, not a an Edit control. >https://autohotkey.com/board/topic/5835 ... ompletion/ This auto-completion script is neat! Very close to the type of GUI interface I was looking for. I see the im...
by JJohnston2
30 Jun 2017, 17:09
Forum: Ask for Help (v1)
Topic: Capture all keystrokes on a GUI
Replies: 3
Views: 2491

Capture all keystrokes on a GUI

If you open the "Run" dialog in Windows, you can type into an Edit control while simultaneously viewing a popup list of auto-complete options that can be navigated using up/down arrows. Even while you navigate this list with up/down arrows, you can also still continue to type (because the Edit contr...
by JJohnston2
30 Jun 2017, 16:38
Forum: Ask for Help (v1)
Topic: Most efficient way to do an array lookup
Replies: 17
Views: 7343

Re: Most efficient way to do an array lookup

@Helgef: InStr() will yield the search string location in bytes (characters), not in line numbers.

Go to advanced search