Fossil Rock Posted September 14, 2007 Share Posted September 14, 2007 I need to find an exact match using the line below. There are a total of 4 unique items. 3 items that will partial match and 1 that is an exact match (case insensitive)._ListView_ClickItem($hWnd, _ListView_FindInText($hWnd, $sText) & _ListView_FindInText($hWnd, $sText)So far as I have found, it will always find the first match, partial or not.If there is no option for an exact match, what would be the best method to determine an exact match?Note: I've loaded the listview into an array and it shows the 4 unique items. I'm trying to avoid loading the listview into an array to find and select the item I'm looking for. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Zedna Posted September 14, 2007 Share Posted September 14, 2007 ; Description ...: Searches for an item with the specified text Func _ListView_FindText($hWnd, $sText, $iStart=-1, $fPartialOK=True, $fWrapOK=True) Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Fossil Rock Posted September 14, 2007 Author Share Posted September 14, 2007 Thanks for the fast reply Zedna, I'll give it a shot. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Fossil Rock Posted September 14, 2007 Author Share Posted September 14, 2007 (edited) Sorry, no go... When I set $fPartialOK to False I get no results.Edit: This may be the problem .... _ListView_FindText "The search is case insensitive. The search is performed on the item only. Use _ListView_FindInText if you want to search for the text in subitems."Both items I'm checking are subitems. Edited September 14, 2007 by Fossil Rock Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now