Jump to content
Sign in to follow this  

How to ControlClick() a Hidden Button

Recommended Posts

So I've got this button that changes properties, e.g. START, STOP, and EXIT. Using the AutoIT ACtive Window Info tool:

- The ClassNameNN: never changes and it never matches the text on the control or the visible windows text

- The Text of the control reported by the tool never changes

- The Windows Title doesn't change either

I'm using this, ControlClick( "<windows title>", "", 1175), but it is not working.

Any ideas how to click this button? Also, what is going on with (Control is hidden) ?

>>>>>>>>>>> Control Under Mouse <<<<<<<<<<<

Size: X: 666 Y: 603 W: 75 H: 23

Control ID: 1175

ClassNameNN: Static8

Text: Denied

Style: 0x40020000

ExStyle: 0x00000004

(Control is hidden)

Edited by PerryRaptor

Share this post

Link to post
Share on other sites

It could be disabled.

Try using ControlEnable to enable it before clicking.

And maybe ControlShow too.

[quote name='Valik' post='301213' date='Jan 31 2007, 10:36 PM']You seem to have a habit of putting things in the wrong place. I feel sorry for any female you attempt to have sex with.[/quote][font="Lucida Sans Unicode"][/font]

Share this post

Link to post
Share on other sites

I've tried a few more things and still nothing works.

It appears to me that the button is over-drawn "text: Denied" and I'm thinking that the control parameters are based on the background and not the foreground.

So my new question is..."how do you determine if a control is over-drawn and if so, how do you click it?

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...