RBCC Posted June 24, 2011 Share Posted June 24, 2011 Here is my script: Opt("WinWaitDelay",100) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('C:\Users\John\Desktop\objectdock\ObjectDock.Plus.v2.0.50727.Setup.exe') _WinWaitActivate("ObjectDock Plus 2 - InstallAware Wizard","") MouseClick("left",356,350,1) MouseClick("left",166,307,1) MouseClick("left",348,352,1) MouseClick("left",343,346,1) MouseClick("left",210,232,1) MouseClick("left",339,354,1) It pauses the script why?? How can I fix it? John Link to comment Share on other sites More sharing options...
monoscout999 Posted June 24, 2011 Share Posted June 24, 2011 (edited) i don`t have this function _WinWaitActivate() Look at the tittle maybe you miss some uppercase or lowercase letter, or some dot or coma. PD use the tags[autoit][/autoit] and put your code inside those tags Edited June 24, 2011 by monoscout999 Link to comment Share on other sites More sharing options...
RBCC Posted June 24, 2011 Author Share Posted June 24, 2011 What should that function be? Can you help me fix it? John Link to comment Share on other sites More sharing options...
monoscout999 Posted June 24, 2011 Share Posted June 24, 2011 i see from other post, you are using an old version of autoit, download the latest version so we all have the same functions. The script possibly is paused beacuse is waiting a window, that doesn´t show up, look careful the title match, see if this is well writed, you can use the "AutoIt Window Info" that comes with the instalation package of AutoIt to see the title and the text of the window. Link to comment Share on other sites More sharing options...
bo8ster Posted June 24, 2011 Share Posted June 24, 2011 Opt("WinWaitDelay",100) Opt("WinDetectHiddenText",1) Opt("MouseCoordMode",0) Run('C:\Users\John\Desktop\objectdock\ObjectDock.Plus.v2.0.50727.Setup.exe') WinWaitActivate("ObjectDock Plus 2 - InstallAware Wizard","") ; the '_' is not required at the start of the function. That is not a standard autoit function, WinWaitActive is. ; it will pause here waiting for the window to become active. This function has a return that you can look at to see if it fails. MouseClick("left",356,350,1) MouseClick("left",166,307,1) MouseClick("left",348,352,1) MouseClick("left",343,346,1) MouseClick("left",210,232,1) MouseClick("left",339,354,1) Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
RBCC Posted June 24, 2011 Author Share Posted June 24, 2011 How do I make it so it doesn't pause??? John Link to comment Share on other sites More sharing options...
bo8ster Posted June 24, 2011 Share Posted June 24, 2011 Don't use WinWaitActive or use WinActivate to force the window to become active. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic] Link to comment Share on other sites More sharing options...
monoscout999 Posted June 24, 2011 Share Posted June 24, 2011 Did you check the ¿title match? Link to comment Share on other sites More sharing options...
RBCC Posted September 1, 2011 Author Share Posted September 1, 2011 What should I use to have no wait for window to pop up? John Link to comment Share on other sites More sharing options...
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