JesusIsKing Posted December 1, 2007 Share Posted December 1, 2007 How do i search through listview items NAMES for specific text in each listview item's name? Link to comment Share on other sites More sharing options...
GEOSoft Posted December 1, 2007 Share Posted December 1, 2007 How do i search through listview items NAMES for specific text in each listview item's name?First off what version of AutoIt do you have installed? Second, have you REALLY looked through the UDFs to see what functions are available? In the help file go to User Defined Functions>>Listview Management. You should be able to find all the Listview functionality you need. George Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.*** The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number. Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else. "Old age and treachery will always overcome youth and skill!" Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 First off what version of AutoIt do you have installed? Second, have you REALLY looked through the UDFs to see what functions are available? In the help file go to User Defined Functions>>Listview Management. You should be able to find all the Listview functionality you need.I'm using 3.2.8.1 and I looked through the helpfiles and was also referred to the UDF _GUICtrlListViewFindItem() but it can't search from any part of the listview item name. It can only search partial from the beginning... Link to comment Share on other sites More sharing options...
Fossil Rock Posted December 1, 2007 Share Posted December 1, 2007 For version 3.2.8.1 - _ListView_FindInText() Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 For version 3.2.8.1 - _ListView_FindInText()I can't find it in the helpfile? Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 @Fossil Rock Are you sure that's for 3.2.8.1? Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 Anyone knows? Link to comment Share on other sites More sharing options...
Fossil Rock Posted December 1, 2007 Share Posted December 1, 2007 @Fossil RockAre you sure that's for 3.2.8.1?Sure am Ace ... but you'll need A3LListView.au3 (which someone who will remain nameless *FREDDIE* deleted).Another option is to use it's equivalent in 3.2.10.0.... _GUICtrlListView_FindInText(). Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 Sure am Ace ... but you'll need A3LListView.au3 (which someone who will remain nameless *FREDDIE* deleted).Another option is to use it's equivalent in 3.2.10.0.... _GUICtrlListView_FindInText().Thank you Link to comment Share on other sites More sharing options...
Fossil Rock Posted December 1, 2007 Share Posted December 1, 2007 Thank youThank Gary ... he did all the hard work of porting it into the new version. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 (edited) I get an error saying: Use GUICtrlDelete to delete item. Or if item was created with UDF functions MAKE sure to pass in handle to control NOT the controlid when i do this: $RemainListViewItems = _GUICtrlListView_FindInText($aListview, "Pot Limit", -1, True, False) _GUICtrlListView_DeleteItem($aListview, $RemainListViewItems) I want to delete the listview item that has the text "Pot Limit" anywhere in the name. Edited December 1, 2007 by JesusIsKing Link to comment Share on other sites More sharing options...
Fossil Rock Posted December 1, 2007 Share Posted December 1, 2007 I get an error saying: Use GUICtrlDelete to delete item. Or if item was created with UDF functions MAKE sure to pass in handle to control NOT the controlid when i do this: $RemainListViewItems = _GUICtrlListView_FindInText($aListview, "Pot Limit", -1, True, False) _GUICtrlListView_DeleteItem($aListview, $RemainListViewItems) I want to delete the listview item that has the text "Pot Limit" anywhere in the name. What client are you using? Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 What do you mean what client? Link to comment Share on other sites More sharing options...
Fossil Rock Posted December 1, 2007 Share Posted December 1, 2007 What do you mean what client?"Pot Limit" is a poker term ... I'm assuming by this and your thread here that you're referring to a poker client. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 It's called Full Tilt Poker. http://www.fulltiltpoker.com Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 I get an error saying: Use GUICtrlDelete to delete item. Or if item was created with UDF functions MAKE sure to pass in handle to control NOT the controlid when i do this: $RemainListViewItems = _GUICtrlListView_FindInText($aListview, "Pot Limit", -1, True, False) _GUICtrlListView_DeleteItem($aListview, $RemainListViewItems) I want to delete the listview item that has the text "Pot Limit" anywhere in the name. Do you know why I am getting this error? Link to comment Share on other sites More sharing options...
Fossil Rock Posted December 1, 2007 Share Posted December 1, 2007 It's called Full Tilt Poker. http://www.fulltiltpoker.comOk, I don't think you're going to be able to delete anything, but you can filter with FTP's options. Go to the edit tab and uncheck anything you don't want to show up in the list. From there you'll use the custom tab which will only list what you want to search through (btdt). Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 Ok, I don't think you're going to be able to delete anything, but you can filter with FTP's options. Go to the edit tab and uncheck anything you don't want to show up in the list. From there you'll use the custom tab which will only list what you want to search through (btdt).I guess I mislead you. I have a program I scripted that shows currently opened tables for the Full Tilt Application in my own listview. I want to scan that listview for listview item names that have the word "Pot Limit" and if found delete them.But I am having trouble achieving this. How? Link to comment Share on other sites More sharing options...
Fossil Rock Posted December 1, 2007 Share Posted December 1, 2007 Ah ... for 3.2.10.0 use _GUICtrlListViewDeleteItem() and for 3.2.8.1 use _ListView_DeleteItem(). Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
JesusIsKing Posted December 1, 2007 Author Share Posted December 1, 2007 Ah ... for 3.2.10.0 use _GUICtrlListViewDeleteItem() and for 3.2.8.1 use _ListView_DeleteItem().I think it's _GUICtrlListView_DeleteItem() because when I did _GUICtrlListViewDeleteItem() it said unknown function name. Also, I'm still getting that same error. 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