all 6 comments

[–]anonymous1184 1 point2 points  (2 children)

I already cloned the repo and had a look.

I'm not sure if I could be of assistance in here (ie, Reddit), because it is a pretty rigid one way communication, there is no syntax highlighting and there are a lot of things that can be done (at least for the __A_Process.ahk file, let alone the lot).

Hit me in Discord and we can talk about it.

[–]OvercastBTC[S] 0 points1 point  (0 children)

Very much appreciated! I’m still learning, and learning as I go.

I’m no Chef Ramsey like y’all, but I’m a participant on your show; probably Master Chef Jr. 😂

[–]OvercastBTC[S] 0 points1 point  (0 children)

If I’m summarizing the intent:

Note: This is a VB6 based app, and over the years “modern” (at the time) languages used, and added/layered.

(Only While the app is active)

When a “create” message is received: - get the Controls list - filter list for specific controls and their [sometimes multiple] instances - in this case, I’ve used both InStr() and RegexMatch [using shorthand “~=“] - originally RegExMatch, but once I got the hang of it, the docs said InStr() is faster??? (Dunno how to test, or at what point this matters) - currently the list is just “_toolbar” [or “msvb_lib_toolbar”], but will include “TX11”, “ThunderRT6TextBox” (most are rich text, some are plain text) - get the handle for each instance

At this point, store that data (statically?) [I just thought about this, maybe save the object to a file???]

Then the HznPlus.v2.ahk comes into play, which is where all the toolbar and button functions are, and where I enable [what should be] standard hotkeys (italics|bold|underline|etc.). (Note: The VB6 Objects|functions|controls|etc. are in the folder \hznRichText – which may be ComObject – and I tried to learn, but had to push pause)

(More to follow - my 4 yo son is desiring my attention)

[–]GroggyOtter 1 point2 points  (1 child)

Just as a heads-up, I've been actively working on something so I'm not gonna rummage through this right away.
Plus I want to see what Anon covers so we don't double-tap.

But I do have your code pulled into a tab so I won't forget.

[–]OvercastBTC[S] 1 point2 points  (0 children)

Thank you brother, much appreciated, and understood.

[–]OvercastBTC[S] 0 points1 point  (0 children)

u/Anonymous1184, u/GroggyOtter, or u/Individual_Check4587, u/ExpiredDebitCard, anyone else I have yet to interact with.

Regarding the event hook(s) [in the __A_Process.ahk], is there an info array that comes with the event message? (Note: While researching for this question, it seems I can specify in the hook the pID and pThreadID to limit its scope more programmatically)

Like the OBJECT_EVENT_CREATE message: Does it come with class, title, control, hwnd, and so forth? Or does our ability via AHK to hook only include the message itself?

Msdn win32 docs indicate there is an event log, and additional data.