Sign in to follow this  
Followers 0
O2Freak

Need Help

4 posts in this topic

Hi all, i need to know how to make ur script wait for a grey button (unclickable) to be clickable then send a mouse click to a specific place but im not sure how to. I checked on the WinWaits and If but still failed. Just need some suggestions :think: .

Joash.

Share this post


Link to post
Share on other sites



Hi all, i need to know how to make ur script wait for a grey button (unclickable) to be clickable then send a mouse click to a specific place but im not sure how to. I checked on the WinWaits and If but still failed. Just need some suggestions :think: .

Joash.

try using the following (fill in the info needed to make it work)

$val = ControlCommand ( "title", "text", controlID, "IsEnabled" , "")
if $val then
  ; do something
endif

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites

Use ControlCommand() to do it.

Here is a loop that sleeps while the control is disabled.

While Not ControlCommand('title', 'text', 'classnameNN', 'IsEnabled', '')
    Sleep(500)
WEnd

The 1st 3 parameters need changing to suit.

:think:

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Wow, 2 replys already O_O. Thx guys for all ur help. Got that to work d :think:

Edited by O2Freak

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