Jump to content

Multiple Send() methods not working


Recommended Posts

I am tring to automate changing settings in a GUI application. However, when I put multiple send methods sequenced one after another some of them work and them it seems it just stops. I tried using one send call with multiple buttons in the arguments but it does the same thing. I also tried changing the delay time, still no luck. I am running the application on win7 if that makes a difference. I noticed there were topics pertaining to problems with vista/7. Please help me figure out how to get this working. I am new to AutoIt but not new to programming. Thanks

Link to comment
Share on other sites

I originally had it this way.

Func changeSettings()
    Run("program.exe")
    WinWaitActive("Main Window")
    Send("!s")
    WinWaitActive("SETTINGS")
    Send("{DOWN}")
    Send("!u")
    Send("{DOWN 8}")
    Send("!e")
    Send("!o")
    WinClose("Main Window")

I also tried it like this

Func changeSettings()
    Run("program.exe")
    WinWaitActive("Main Window")
    Send("!s")
    WinWaitActive("SETTINGS")
    Send("{DOWN}!u{DOWN 8}!e!o")

Both of witch never complete the last !e and !o. Thanks

Link to comment
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
 Share

  • Recently Browsing   0 members

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