Get internal dialog "path" from Window Handle?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 1024
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Get internal dialog "path" from Window Handle?

Post by Grovkillen » Wed Jun 28, 2023 12:42 pm

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.
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Grovkillen
Automation Wizard
Posts: 1024
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Get internal dialog "path" from Window Handle?

Post by Grovkillen » Wed Jun 28, 2023 1:17 pm

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.
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Grovkillen
Automation Wizard
Posts: 1024
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Get internal dialog "path" from Window Handle?

Post by Grovkillen » Wed Jun 28, 2023 1:55 pm

A "dump variables" (_DUMP_VAR) to a string would work for me :)
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1354
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: Get internal dialog "path" from Window Handle?

Post by Dorian (MJT support) » Wed Jun 28, 2023 2:41 pm

I just asked Marcus and this was his response...
Object names are only internal and not published. Only the class name is visible publicly
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 1024
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: Get internal dialog "path" from Window Handle?

Post by Grovkillen » Wed Jun 28, 2023 4:14 pm

Thanks for the info. I made a loop to populate my own variables with the paths.

Thanks again for clearing my quotation mark.
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts