Sign in to follow this  
Followers 0
leapingleon

Selecting an Item in the list

2 posts in this topic

Hi All

I am using the following code to select an item in a list:

ControlListView("Test Window", "", "SysListView321", "Select", $results[0])
    Send("{ENTER}")

The item in the list that i want to be selected is highlighted, however when the 'Enter' is send, the first item in the list opens up. It seems even though the item I want is selected, the first item remains active and is opened when Enter is sent.

How do I get around this? I have tried to find if there is any function that moves the mouse to the selected items index, but there doesnt seem to be one.

Thanks guys

Share this post


Link to post
Share on other sites



It might be similar to a problem i was having earlier, however this topic was about a button and is sorted now.

http://www.autoitscript.com/forum/index.ph...c=39672&hl=

Basically, AutoIT couldnt click a button if the mouse wasnt hovering over it (some custom designed script I think). But I got around that.

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  
Followers 0