Sign in to follow this  
Followers 0
gertsolo

Waiting for a button to ungrey

10 posts in this topic

#1 ·  Posted (edited)

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



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

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

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

Share this post


Link to post
Share on other sites

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

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