Jump to content

Objectdock


Recommended Posts

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

i don`t have this function _WinWaitActivate() :huh2:

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 by monoscout999
Link to comment
Share on other sites

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

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

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

  • 2 months later...

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
 Share

  • Recently Browsing   0 members

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