Sign in to follow this  
Followers 0
Truth

Determine if a button is enabled

5 posts in this topic

I'm using AutoIt 3 to control an application for a repetitive task. I need to search for several items, and then interact with the GUI depending on the result of each of my searchs.

If my search is successful, I will receive multiple items in a listbox. Selecting an item in the listbox will enable a button.

If the search is unsuccessful, the listbox will be empty, and the button disabled.

How can I determine whether or not a button is currrently enabled or disabled?

Thank you,

Carl.

Share this post


Link to post
Share on other sites



@AdmiralAlkex: I'm pretty sure when he said "I'm using AutoIt 3 to control an application" he didn't mean his own application made in AutoIt. I suppose I could be wrong though.

@Truth: Check out ControlCommand with "IsEnabled"

Share this post


Link to post
Share on other sites

@AdmiralAlkex: I'm pretty sure when he said "I'm using AutoIt 3 to control an application" he didn't mean his own application made in AutoIt. I suppose I could be wrong though.

I am sorry if I missunderstood. I blaim it on my lack of sleep tonight and my cat that's keep sleeping in front of my computer effectively stopping any effective work. :)

Share this post


Link to post
Share on other sites

I am sorry if I missunderstood. I blaim it on my lack of sleep tonight and my cat that's keep sleeping in front of my computer effectively stopping any effective work. :)

@AdminalAlkex: I'll blame it on the cat

@Saunders: That worked, thank you.

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  
Followers 0