Jump to content

Send("{DOWN}") until End of List?


Recommended Posts

I have a program that I use at work that requires me to select a checkbox to be able to select the files that I want to delete. I can successfully do something as follows to get it to select the records. What I am trying to figure out though is a way to loop Space and Down until the end of the list. Is there an error code that would be generated if Send("{DOWN}") didn't find an entry? The length of the list varies so I didn't want to hard code a number of times to loop it.

Send("{SPACE}")
Send("{DOWN}")
Send("{SPACE}")
Send("{DOWN}")
Link to comment
Share on other sites

Check wich component in your app will be selected after the next DOWN,

Use autoIt window info to find out what the Id of that component is, if that

component is highlighted or selected you know your out of your list.

Send("{DOWN}")

If testIfIamInList() Then

Send("{SPACE}")

Else

Go on with the rest of my code

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...