Re: ToolbarWindow32 Button information
- From: "Ferio via VBMonster.com" <u44471@uwe>
- Date: Tue, 22 Jul 2008 21:50:58 GMT
This seem a bit complicated after looking through the examples, since I'm a
beginner at VB. How about accessing the menu and activate the command from
the menu? What do I need to get control of that part?
I did found find some information on Active Accessibility but I'm not sure
how this will help me click the button I want on my program. I found this
example
http://support.microsoft.com/default.aspx?scid=kb%3ben-us%3b315519
But it only shows the caption where ever my mouse cursor is pointing.
Juergen Thuemmler wrote:
What I mean by "the button information" is any information I can get from[quoted text clipped - 5 lines]
the
and
class of the toolbar.
Getting informations from common controls like Toolbar, Listview or Treeview
in foreign apps is not a trivial task. You can easy get a text from an edit
window, but not the caption of a toolbar button (an Item of the Toolbar).
Informations about Items of common controls are usually stored in a
structure (TBBUTTON, LVITEM, TVITEM ...) which must be passed to the foreign
app bo be filled with informations. The problem ist, that a structure
defined in your app has an address which is not valid in the foreign app.
To solve this problem, you must either create a valid and usable memory or
operate in the memory in the foreign app. Brad Martinez has demonstrated it
on a Listview sample (it's very similar to a toolbar) for two different ways
in
http://www.mvps.org/btmtz/listview/remotelistview.zip
Another way which I preferre is to hook into the foreign app and operate
inside to get infos or do something, but this requires a special standard
Dll with exported functions.
Last not least you can use the Active Accessibility to solve your problem
(some keywords: OleAcc.Dll, AccessibleObjectFromPoint(),
AccessibleObjectFromWindow()).
Juergen.
--
Message posted via VBMonster.com
http://www.vbmonster.com/Uwe/Forums.aspx/vbasic-winapi/200807/1
.
- Follow-Ups:
- Re: ToolbarWindow32 Button information
- From: Juergen Thuemmler
- Re: ToolbarWindow32 Button information
- References:
- ToolbarWindow32 Button information
- From: Ferio via VBMonster.com
- Re: ToolbarWindow32 Button information
- From: Karl E. Peterson
- Re: ToolbarWindow32 Button information
- From: Ferio via VBMonster.com
- Re: ToolbarWindow32 Button information
- From: Juergen Thuemmler
- ToolbarWindow32 Button information
- Prev by Date: Re: ToolbarWindow32 Button information
- Next by Date: Re: ToolbarWindow32 Button information
- Previous by thread: Re: ToolbarWindow32 Button information
- Next by thread: Re: ToolbarWindow32 Button information
- Index(es):
Loading