Jump to content

Recommended Posts

Posted

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!
Posted

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)

  • 3 weeks later...
Posted

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!

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
  • Recently Browsing   0 members

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