ne0trace Posted January 30, 2008 Posted January 30, 2008 (edited) Hello, I am currently working on an install script for "Autodesk Max 2008". I am using "ControlClick"-function for pressing "Next" Buttons but I am having big problems with it. Sometimes they work as intended and sometimes the scripts pauses. You can clearly see that the buttons are beeing pressed but without any effect. I've now used the "send ( "{enter}" )" function but I don't think that this is the best way. Any idea anyone? WinWait ( "Autodesk® 3ds Max® 2008" , "< &Back" ) ControlClick ( "Autodesk® 3ds Max® 2008", "&Next >", "Button5" ) ;Screen2 Edit: Now I am stuck at a point where "ControlClick" & "send ( "{enter}" both do not work. Felix Edited January 30, 2008 by ne0trace
Zedna Posted February 6, 2008 Posted February 6, 2008 try this: WinWait ( "Autodesk® 3ds Max® 2008" , "< &Back" ) Winactivate ( "Autodesk® 3ds Max® 2008" , "< &Back" ) WinWaitActive ( "Autodesk® 3ds Max® 2008" , "< &Back" ) While ControlCommand( "Autodesk® 3ds Max® 2008", "&Next >", "Button5","IsEnabled","") = 0 Sleep(50) WEnd ControlFocus ( "Autodesk® 3ds Max® 2008", "&Next >", "Button5" ) ;Screen2 ControlClick ( "Autodesk® 3ds Max® 2008", "&Next >", "Button5" ) ;Screen2 It's redundant code but in case of problems some piece of this code may help. Resources UDF ResourcesEx UDF AutoIt Forum Search
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