Jump to content



Photo

Sean's GUI Inspector


  • Please log in to reply
2 replies to this topic

#1 seangriffin

seangriffin

    Polymath

  • Active Members
  • PipPipPipPip
  • 223 posts

Posted 12 June 2010 - 01:43 PM

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.

Attached File  Toolkit.au3   41.74KB   551 downloads
Attached File  GUI Inspector.au3   49.07KB   531 downloads

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, 14 June 2010 - 02:17 PM.

Cheers,Sean.See my other UDFs:SAP UDF - Automate SAPJava UDF - Automate Java Applications & AppletsTesseract (OCR) UDF - Capture text from applications, controls and the desktopTextract (OCR) UDF - Capture text from applications and controlsFileSystemMonitor UDF - File, Folder, Drive and Shell MonitoringVLC (Media Player) UDF - Creating and controlling a VLC control in AutoITGoogle Maps UDF - Creating and controlling Google Maps (inc. GE) in AutoITSAPIListBox (Speech Recognition) UDF - Speech Recognition via the Microsoft Speech (SAPI) ListBoxeBay UDF - Automate eBay using the eBay APIChildProc (Parallel Processing) UDF - Parallel processing functions for AutoITHyperCam (Screen Recording) UDF - Automate the HyperCam screen recorderTwitter UDF - Automate Twitter using OAuth and the Twitter APIcURL UDF - a UDF for transferring data with URL syntaxSee my other Tools:Rapid Menu Writer - Add menus to DVDs in secondsTV Player - Automates the process of playing videos on an external TV / MonitorRapid Video Converter - A tool for resizing and reformatting videosRapid DVD Creator - Convert videos to DVD fast and for freeZapPF - A tool for killing processes and recycling filesSean's eBay Bargain Hunter - Find last minute bargains in eBay using AutoITSean's GUI Inspector - A scripting tool for querying GUIsTransLink Journey Planner with maps - Incorporating Google Maps into an Australian Journey PlannerAutomate Qt and QWidgetsBrisbane City Council Event Viewer - See what's going on in Brisbane, Australia







#2 taurus905

taurus905

    "Lead, follow, or get out of the way."

  • Active Members
  • PipPipPipPipPipPip
  • 440 posts

Posted 02 March 2012 - 01:41 AM

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

#3 macwcodvs

macwcodvs

    Seeker

  • Active Members
  • 18 posts

Posted 09 March 2012 - 06:28 AM

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, 09 March 2012 - 06:38 AM.

don't know englishSome advertising from me:

GOM Media Player---addon for gom player autosave playlist





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users