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
ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)
ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)
- Attachments
-
- ToolBar.png (162.45 KiB) Viewed 2027 times
Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)
If this is any of WinAPI - each button will have different ClassNN.
Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)
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.
-
- Posts: 2
- Joined: 02 Apr 2017, 08:59
Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)
I'm facing the same challenge. Has anyone figured something out meantime?
Regards
Regards
Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)
ImageSearch could be a good option here.
Re: ControlClick on Toolstrip / Toolbar with multiple buttons (same ClassNN)
@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)
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)
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)
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!
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!
Who is online
Users browsing this forum: Google [Bot], Greg_Roberts, inseption86, narej and 177 guests