Jump to content

Recommended Posts

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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...