Jump to content
Sign in to follow this  
gertsolo

Waiting for a button to ungrey

Recommended Posts

gertsolo

Hey,

I'm using Syntoy to synchronize some folders. While it is doing that, the close button is preyed out and cannot be pressed.

I want to wait until that button is ungreyed and thus the work is done so I can press it.

How should I do that?

Edited by gertsolo

The more you learn, the less you know.

Share this post


Link to post
Share on other sites
dbzfanatic
gertsolo

Okay,

I'm getting this info about the button. How can I access it?

post-27256-1225352895_thumb.jpg


The more you learn, the less you know.

Share this post


Link to post
Share on other sites
dbzfanatic
gertsolo

What do you mean by access it? Click it automatically or just check the state?

I mean what should I use to click it


The more you learn, the less you know.

Share this post


Link to post
Share on other sites
dbzfanatic
gertsolo

ControlClick(). You really need to read the helpfile and pay attention to the Control* commands.

Ure right, I got it. I know that I have to use ControlClick, but I was referring to what controlID I should use. Anyway I got it.

One question left though, what is the exact syntax to check if it is enabled?


The more you learn, the less you know.

Share this post


Link to post
Share on other sites
dbzfanatic

Share this post


Link to post
Share on other sites
gertsolo

Seriously, read the helpfile. ControlCommand(*window_title*,"",*control_id*,"IsEnabled") <--Returns 1 if enabled, 0 otherwise.

ROGER THAT!!!!

thanks for your help dbzfanatic!

(me just rookie )


The more you learn, the less you know.

Share this post


Link to post
Share on other sites
dbzfanatic

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.