Jump to content

SpyThing


CyberSlug
 Share

Recommended Posts

This program is supposed to help you get the classnameNN's of window controls. (Written so that I do not have to keep switching among AutoIt Window Spy, my text editor, and an installer I was trying to automate.)

http://www.autoitscript.com/fileman/users/public/CyberSlug/SpyThing.au3

Notes: Does not work well with frame controls. "Buttons" (bt) could include radio and checkbox controls. "Labels" (lb) could include picture controls.

Run SpyThing, run a program such as "calc", then press Win+S...

http://www.autoitscript.com/fileman/users/public/CyberSlug/SpyThingEx.png:

http://www.autoitscript.com/fileman/users/public/CyberSlug/SpyThingEx.png

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

Uploaded slightly modified version:

Because frames appear as buttons (and hide other controls), you can hide a button by clicking on it. Press Win+F5 to refresh/restore the window...

I also added tooltips with controls' text.

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
Share on other sites

well, that's interesting and handy... it'd be cool to be able to somehow click the button to copy the text to the clipboard... maybe shift-click to hide buttons? (I'm GUI-Ignorant here, don't know if that's possible)

"I'm not even supposed to be here today!" -Dante (Hicks)

Link to comment
Share on other sites

  • 3 weeks later...

Oops, I never got around to answering your question.... I can add that feature.

I also have ideas to turn SpyThing into something that resembles Larry's AU3ScriptWriter:

1) User chooses some installer to run via a FileOpenDialog.

2) User waits for the installer to pop up a window.

3) User presses a key (such as Pause) to capture the title, text, and control information of that window.

4) A SpyThing-like window appears and the user clicks the corresponding button/checkbox/whatevers.

5) SpyThing records the click information and performs the same action on the actual installer window.

6) GOTO Step 2

; Idea of what kind of script I'd *like* to generate

$title = "Welcome to Setup"
#cs
The text body of the setup window would go here
The info might span multiple lines
I'd probably put it in a comment block so that the user
could extract what info he needs
#ce
WinWait($title)
ControlClick($title, "", "&Continue")

;...

Get after me if I don't post to this thread within a week :ph34r:

Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...