Getting info on a window

Questions about programming languages and debugging
Post Reply
User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Getting info on a window

Post by maboroshi »

Does anyone have any information on getting the names of controls from with in a GUI

like say I wanted to get the Frame/windows name and it is named GXWindowDraw or something and then I needed info on an Entry control with in that window and it is named GXWindowDrawEntry or something

How can I get this info well I guess it would be in the language API any other suggestions a tool etc

Thanks

Maboroshi :)

alien100
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 693
Joined: 25 Sep 2006, 16:00
17
Location: Spartan HQ
Contact:

Post by alien100 »

[img]http://img127.imageshack.us/img127/9128/sig3copyyybq4.jpg[/img]

alien100
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 693
Joined: 25 Sep 2006, 16:00
17
Location: Spartan HQ
Contact:

Post by alien100 »

and this one i think its mostly about graphics >>>http://www.syllable.org/docs/0.6.0/gui/group__gui.html<<<
i am not sure what exactly are u looking for
[img]http://img127.imageshack.us/img127/9128/sig3copyyybq4.jpg[/img]

alien100
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 693
Joined: 25 Sep 2006, 16:00
17
Location: Spartan HQ
Contact:

Post by alien100 »

ok i think this is what you are looking for>>http://www.mvps.org/access/api/api0053.htm<<<
[img]http://img127.imageshack.us/img127/9128/sig3copyyybq4.jpg[/img]

User avatar
Gogeta70
^_^
^_^
Posts: 3275
Joined: 25 Jun 2005, 16:00
18

Post by Gogeta70 »

Please try not to triple post.
¯\_(ツ)_/¯ It works on my machine...

User avatar
FrankB
Ph. D. in Sucko'logics
Ph. D. in Sucko'logics
Posts: 315
Joined: 06 Mar 2006, 17:00
18
Location: Belgistahn
Contact:

Post by FrankB »

Yes, Mab', I have it hard to understand what you really want.

The only part i got was the beginning :
" Does anyone have any information on getting the names of controls from with in a GUI ".

... if the controls are private --which becomes rare nowadays -- iti s not easy.
There are loads of lists of names of controls for all sorts of common widgets, wether it is Visual C++, GTK+, Qt, and other GUI-developement tools.

Another thing is renaming DLL's, so as the programming gives debug output, ( take SAPGui's for example , they are very verbose )

Also, programmers ( of the same herd ) often reference all controls’ names and alert messages to an external file, a text It allows them to avoid to compile code every time the text is changed, testers, sales and marketing representatives and customers can change them and experience how they look without going back to the developer to implement the changes.

The debug tool is always your friend.
( an hexa-editor can be a debug tool ;-) :-) :-)

HTH

User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

Sorry

Post by maboroshi »

Sorry ya I don't really no how to say it but here goes

I'm looking at how to control a window and the UI in that window VIA scripting language known as python

I have found a module which lets me do this named pywinauto dl here http://www.openqa.org/pywinauto/

now I'm running an uncommon User interface in particular a game with certain elements of the UI unknown to me from what I can tell from the documentation of the module I need to run find_window, find_windows, enum_windows functions etc to find out which controls are available but at the time I had posted I did not read the documentation all the way through . However I'm still unclear as to how to do this... so back to my original question... Does anyone have a tool to do this


Cheers

Maboroshi

User avatar
maboroshi
Dr. Mab
Dr. Mab
Posts: 1624
Joined: 28 Aug 2005, 16:00
18

lol

Post by maboroshi »

Just reread your post FrankB. Ya I was thinking a hex editor but that would take a whole lot of messing about more than I'm prepared to do for this project.

I'm also thinking I will find out what engine this game was written in. I'm almost certain it was written in C++ but, probably just for Logic as the UI for writing macros uses Luascript.

So it may use a UI Engine integrated with Luascript but I'm not entirely sure. If it does then I will try and find the Documentation on the User Interface.

However I did manage to figure out how to return the windows handle and the handle of all top level windows but I'm unsure as to what a Top Level window is, if I'm correct it is the Top Most Window but again its not returning controls which is really what I need /sigh...


Thats it this is no longer about gaming now its about building a tool to get Window control Identifying pieces for any Windows Control :)

/cheer


Maboroshi

Post Reply