O2Freak Posted May 1, 2006 Posted May 1, 2006 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 . Joash.
GaryFrost Posted May 1, 2006 Posted May 1, 2006 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 . 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.
MHz Posted May 1, 2006 Posted May 1, 2006 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) WEndThe 1st 3 parameters need changing to suit.
O2Freak Posted May 1, 2006 Author Posted May 1, 2006 (edited) Wow, 2 replys already O_O. Thx guys for all ur help. Got that to work d Edited May 1, 2006 by O2Freak
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now