Jump to content
Sign in to follow this  

help using AutoIT window spy

Recommended Posts


yea im total newb at this and i cant find it i only can find autoIT window info

and i think its the same thing but in window info theres a part in it that

i think i need to see that says (control is hidden) and thats the part i wanna see i think

sorry for this total rookie question.


Share this post

Link to post
Share on other sites

You're right. 'AutoIt Window Info' is the same thing as 'AutoIt Window Spy'.

I create an empty GUI with hidden button...

#include <GUIConstants.au3>
$gui = GUICreate ( "test" , 400,300,-1,-1)
$btn = GUICtrlCreateButton("testbtn",30,30,100,30)
GUICtrlSetState ( $btn, $GUI_HIDE )
GUISetState (@SW_SHOW)
while 1

...and 'AutoIt Window Info' can find the button by blind dragging mouse over it.

Press CTRL-ALT-F to pause the display.

>>>>>>>>>>>> Window Details <<<<<<<<<<<<<
Title:  test
Class:  AutoIt v3 GUI
Size:   X: 438  Y: 325  W: 406  H: 325

>>>>>>>>>>> Mouse Details <<<<<<<<<<<
Screen: X: 483  Y: 380
Cursor ID:  2

>>>>>>>>>>> Pixel Color Under Mouse <<<<<<<<<<<
RGB:    Hex: 0xD4D0C8   Dec: 13947080

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<
Size:       X: 30   Y: 30   W: 100  H: 30
Control ID: 3
ClassNameNN:    Button1
Text:       testbtn
Style:      0x40034000
ExStyle:        0x00000000
(Control is hidden)

>>>>>>>>>>> Status Bar Text <<<<<<<<<<<

>>>>>>>>>>> Visible Window Text <<<<<<<<<<<

>>>>>>>>>>> Hidden Window Text <<<<<<<<<<<

Is this what you want to know?

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.