Sign in to follow this  
Followers 0
seangriffin

Sean's GUI Inspector

3 posts in this topic

#1 ·  Posted (edited)

This is a simple tool that helps AutoIT scripters in identifying and finding controls/elements/objects in GUIs.

It is a work-in-progress, but I've decided to publish it here in the forums. Mostly because I like publishing stuff :mellow:. But also because I dislike keeping my work in one place, in case it gets damaged, deleted or lost (dread the thought).

There are probably many similar tools already in the forums, but I couldn't be bothered looking for one to use :P

I decided to write this tool after years of writing small adhoc scrap pieces of script to interrogate IE and it's DOM elements. I've reached the point where I can't handle doing this anymore, and would prefer to always have a tool there to do this work.

When I began using AutoIT in 2008 I started my own toolkit of IE functions called "Toolkit.au3". I've been using this toolkit ever since, building and adapting it slowly to cope with the automation of new and different applications. The toolkit is far from complete, but it suits my needs at any point in time. My new GUI Inspector compliments the toolkit, using it's functions where possible, and eventually I hope to have it output lines of script that can be pasted into other scripts to help in automation. It's got a long way to go.

I haven't decided yet whether to version control this. For the moment I'm simply attaching the script below, with a brief explanation on how it works if anyone's interested in trying it out.

Toolkit.au3

GUI Inspector.au3

Copy the two attachments above to a folder of your choice, and run "GUI Inspector.au3". A GUI will be displayed. By default the GUI will be setup to query the Google search page.

There are 4 main panels / sections to the GUI:

  • the Attach section
  • the Querying (tabbed) section
  • the Output section
  • other buttons at the bottom
You operate the tool in a "top-down" fashion. Starting at the top, you specify what window you want to "attach" to for the purposes of querying. Next, click on the appropriate tab for the type of object you want to investigate. For instance, "IE Tables" to analyse the HTML tables within the page. Next, click a button within the selected tab to query something. For instance, clicking "Get All Table Cells" will grab every cell across every table within the page. The results of the query are presented in the Output section. Depending on the nature of the results, they may get presented as free text (ie. in the case of "Get Doc HTML") or as a listview (ie. in the case of "Get All Table Cells").

Future enhancements will include:

  • Search facilities
  • Multiple Output tabs will compare facilities to highlight difference between similar web pages
  • Script output facilities, to generate the script necessary to access the same objects within your own scripts
Edited by seangriffin

Cheers, Sean.

See my other UDFs:

Chrome UDF - Automate Chrome | SAP UDF - Automate SAP | Java UDF - Automate Java Applications & Applets | Tesseract (OCR) UDF - Capture text from applications, controls and the desktop | Textract (OCR) UDF - Capture text from applications and controls | FileSystemMonitor UDF - File, Folder, Drive and Shell Monitoring | VLC (Media Player) UDF - Creating and controlling a VLC control in AutoIT | Google Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoIT | SAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBox | eBay UDF - Automate eBay using the eBay API | ChildProc (Parallel Processing) UDF - Parallel processing functions for AutoIT | HyperCam (Screen Recording) UDF - Automate the HyperCam screen recorder | Twitter UDF - Automate Twitter using OAuth and the Twitter API | cURL UDF - a UDF for transferring data with URL syntax

See my other Tools:

Rapid Menu Writer - Add menus to DVDs in seconds | TV Player - Automates the process of playing videos on an external TV / Monitor | Rapid Video Converter - A tool for resizing and reformatting videos | [topic130531]Rapid DVD Creator - Convert videos to DVD fast and for free | ZapPF - A tool for killing processes and recycling files | Sean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoIT | Sean's GUI Inspector - A scripting tool for querying GUIs | TransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey Planner | Automate Qt and QWidgets | Brisbane City Council Event Viewer - See what's going on in Brisbane, Australia

Share this post


Link to post
Share on other sites



Hello seangriffin,

Thank you for sharing all your hard work on this tool.

I'm amazed that others haven't commented. And I'm even more amazed this tool still works after over 20 months of being posted.

I'd be grateful to see any updates or improvements you've made.

Thanks again,

taurus905


"Never mistake kindness for weakness."-- Author Unknown --"The highest point to which a weak but experienced mind can rise is detecting the weakness of better men."-- Georg Lichtenberg --Simple Obfuscator (Beta not needed.), Random names for Vars and Funcs

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I'm amazed that others haven't commented. And I'm even more amazed this tool still works after over 20 months of being posted.

dunno

im prefer firefox+ plugin/extensionfirebug

also title in this thread Gui inspector

nothing about IE

its should named IE inspector with gui

or something

lol why its should dont work;s

some examples work from 2004 year

without any fix/update

and about GUI script

need set title window IE manually its lame

its should start IE

or atleast parse all IEFrame class opened windows

where u can select window

anyway pretty big size code gjxD

Edited by macwcodvs

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0