Jump to content

SysListView search text and click


teddyh2o
 Share

Recommended Posts

Hello guys,

I am new to AutoIt and not a good programmer. I have gone through guides and tutorials to get my script going. 

However, i am stuck on a little function. 

I need to search a text and click on the searched text. The program that i am using autoit with, ControlListView won't work since it needs to click on the text. 

The texts are under SysListView32 class. 

I tried following codes

$_UserName = "USERNAME"
$hWnd = WinGetHandle("WINDOW INFO")
$Finditem = ControlListView($hWnd, "", "[CLASS:SysListView32; INSTANCE:1]", "Finditem", $_UserName)
$Select = ControlListView($hWnd, "", "[CLASS:SysListView32; INSTANCE:1]", "Select",$Finditem)
_GUICtrlListView_SetItemSelected($select, 0, True, True)

any idea or tip?

Link to comment
Share on other sites

  • 2 weeks 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...