Jump to content
Sign in to follow this  

Skip an array.

Recommended Posts

... it gets to where it clicks the Flowcast window's OK button ControlClick("Flowcast", "OK","")

The ControlClick() second parameter for "Text" is for window text to match the window (along with "Title"), not for matching the control.

The third parameter is where you need to identify the OK button. There are a couple of ways to do that. The easiest is to run the AU3Info.exe AutoIt window info tool and get the ClassNameNN for the button. It should be something like "Button1". In that case your function would look like: ControlClick("Flowcast", "", "Button1").

If the OK button is only one, or is the default, you might also get away with simply: ControlSend("Flowcast", "", "", "{ENTER}")

You might still need to use the text field to specify the window, if there is more than one "Flowcast" window (i.e. the main app and the error window titles both start with "Flowcast"). Then the text field can ID which window you mean by specifying some of the visible text. For example: ControlClick("Flowcast", "An error has occurred", "Button1")

Hope that helps.


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post

Link to post
Share on other sites

The reason it skips the error loop is because the the value of $Flowcast is False until after the error loop.

The Function does work because it changes the value of $Flowcast to True. (I put MsgBoxes with the $Flowcast value all over the loop and in the Function after changing the value). But this happens after reading the standard false value before the error loop, not before.

How do I time the flag value so it is true before the error loop?

Once again I'm stuck. And I thought this would be an easy one. :)

Edited by JailDoctor

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...