Sign in to follow this  
Followers 0
ne0trace

ControlClick not working

2 posts in this topic

#1 ·  Posted (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 by ne0trace

Share this post


Link to post
Share on other sites



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.

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