Is it possible to get the internal "path" if I have the window handle?
If I use the GetFocusedObject> command and get the handle I'd like to use that to find which (if any) internal element it is. More specifically I intend to use a OnMouseMove event to get data from each element's hint property.
Example variable name of a dialog element:
DIALOG1.MSCOMBOBOX1.HANDLE=2231480
So if I know the handle (2231480) it would be great to be able to get the DIALOG1.MSCOMBOBOX1 information from it.
Get internal dialog "path" from Window Handle?
Moderators: JRL, Dorian (MJT support)
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Get internal dialog "path" from Window Handle?
GetWindowNames> will get me a little further but it only gives the class (tMSComboBox) and not the actual object name (MSComboBox1) which is needed internally.
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Get internal dialog "path" from Window Handle?
A "dump variables" (_DUMP_VAR) to a string would work for me 

- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
Re: Get internal dialog "path" from Window Handle?
I just asked Marcus and this was his response...
Object names are only internal and not published. Only the class name is visible publicly
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: Get internal dialog "path" from Window Handle?
Thanks for the info. I made a loop to populate my own variables with the paths.
Thanks again for clearing my quotation mark.
Thanks again for clearing my quotation mark.