Page 1 of 1

ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 17 Aug 2018, 02:17
by labrint
Hi Guys,

I need to be able to click on individual buttons on the toolstrip attached in the image. I have uploaded the result of the ACC viewer to help you find a solution.

John

Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 19 Aug 2018, 16:00
by BriHecato
If this is any of WinAPI - each button will have different ClassNN.

Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 22 Aug 2018, 03:38
by labrint
They all have the same ClassNN! I need to use some form of index, but I dont know how. I've looked into ControlClick and SendMessage but got nowhere.

Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 20 Sep 2018, 08:01
by SlipperyGrams
I'm facing the same challenge. Has anyone figured something out meantime?

Regards

Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 18 Jan 2021, 06:49
by labrint
Anyone ?

Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 18 Jan 2021, 07:09
by mikeyww
ImageSearch could be a good option here.

Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 18 Jan 2021, 10:26
by just me
@labrint, if it is a kind of toolbar control responding to toolbar messages this (german) thread might help you.

Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 02 Mar 2022, 02:25
by labrint
I'm adding this link as a continuation of this thread, as @rommmcek answered my question there.

viewtopic.php?p=448883#p448883

This covers the tooltip.

What remains is:

a) Systreeview32 (tree) (how to click and open individual nodes, and get their text or text of their child

b) Tables (how to click on Top left cell to highlight all cells)

Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)

Posted: 15 Mar 2022, 14:50
by rommmcek
Hi!

For SysTreeView32 works analogous to Buttons on ToolStrip (tested on Ahk Gui TreeView).
Where Object is retrieved from SysTreeView32 (the frame of the AccViewer must encompass the whole Tree).
And ChildId is retrieved from each Tree branch.
Acc.accDoDefaultAction(ChildId) will then click on given branch expanding/shrinking subbranches.
Acc.accName(ChildId) will yield the name.

For Tables (if you mean SpreadSheets) DoDefaultAction() does nothing. It would be possible to retrieve position of the Sheet and then use Click command, however App should be Active or at list visible...
So I would recommend you ComObj as more suitable for the job!

bye!