DOWNLOAD LIBRARY
DOWNLOAD SANDBOX AND EXAMPLE
Listview Supplementary Library v1.0
Functions:
- LVG_Search()
- LVG_Get()
- LVG_Count_Un()
- LVG_GetNext_Un()
- LVG_Check()
- LVG_Select()
- LVG_Delete()
[*:185xdwbm]LVG_Search()
Returns the...
- Total number of the rows, that contain "Search string" and that are...
- Row numbers of all rows (comma separated list), that contain "Search string" and that are...
- Row number of the next row, that contains "Search string" and that's...
* Selected
* Deselected
* Checked
* Unchecked
* Selected AND checked
* Deselected AND unchecked
* Selected AND unchecked
* Deselected AND checked
...from the user specified row/column range.
Quick example:
Let's say you've got a Gui with the number 23 assigned to it (Gui, 23:...), and it has a Listview
with 150 rows. You want to get the row numbers of the selected rows from the first twenty rows, but you only want the rows,
that contain the word "Scripting" in their second field (column). Here's how to do it:
LVG_Search(23,"Selected","List","1-20","2","Scripting")
-----------------------------------------------------------------------------------
[*:185xdwbm]LVG_Get()
Returns the...
- Total number of rows, that are...
- Row numbers of all rows (comma separated list), that are...
- Row number of the next row, that's...
* Selected
* Deselected
* Checked
* Unchecked
* Selected AND checked
* Deselected AND unchecked
* Selected AND unchecked
* Deselected AND checked
...from the user specified row range
Quick example:
LVG_Get(1,"Unchecked","List","1-12;23-55;89;82")...will return a comma-separated list, that contains the row numbers of the unchecked rows from these row range: 1-12 or 23-55 or 89 or 82.
-----------------------------------------------------------------------------------
[*:185xdwbm]LVG_Count_Un()
Returns the row number of the next:
* Unchecked
* Deselected
...row.
Quick example:
LVG_Count_Un(1,"Deselected")...will return the total number of the deselected rows from the default Listview of GUI1.
-----------------------------------------------------------------------------------
[*:185xdwbm]LVG_GetNext_Un()
Returns the row number of the next:
* Unchecked
* Deselected
...row.
Quick example:
LVG_GetNext_Un(65,"Unchecked")
...will return the next unchecked row from the default Listview of GUI65.
-----------------------------------------------------------------------------------
[*:185xdwbm]LVG_Check()
Checks/Unchecks all the rows that are...
* Checked
* Unchecked
* Selected
* Deselected
* Reverts checks
Quick example:
LVG_Select(1,"CheckAll")...will check all the unchecked rows.
-----------------------------------------------------------------------------------
[*:185xdwbm]LVG_Select()
Selects/Deselects all the rows that are...
* Selected
* Deselected
* Checked
* Unchecked
* Reverts selection
Quick example:
LVG_Select(1,"Reverse")...will select all the deselected rows, and deselect all the selected ones.
-----------------------------------------------------------------------------------
[*:185xdwbm]LVG_Delete()
Deletes all the rows that are...
* Selected
* Deselected
* Checked
* Unchecked
* Selected AND checked
* Deselected AND unchecked
* Selected AND unchecked
* Deselected AND checked
Quick example:
LVG_Delete(1,"Unchecked")...will delete any unchecked rows.
-----------------------------------------------------------------------------------
Remarks:
- For further info on the functions' parameters see the descriptions by each function in the library file.
- It's not heavily commented (or should I say not commented at all)... So, if you have questions, don't hesitate to ask 'em in the forum topic.
- The uncheck/check-related features work only if the Listview has "Checked" specified among its options
- I ceated a simple sandbox to test the library, and it serves as a working example too.
About:
- Version: 1.1 by gahks <!-- m -->http://www.autohotkey.net/~gahks<!-- m -->
- License: Attribution-Share Alike 3.0 Unported: <!-- m -->http://creativecommo...nses/by-sa/3.0/<!-- m -->
- Forum topic: <!-- m -->http://www.autohotke...topic49091.html<!-- m -->
Changes:
1.1:
- renamed library file to LVG.ahk for compatibility reasons
- new feature: in lvg_search(), mode: All; search in all rows
[Library] Listview G v1.1 search, get, select, check, delete
Started by
gahks
, Sep 21 2009 06:35 PM
4 replies to this topic
#1
Posted 21 September 2009 - 06:35 PM
#2
Posted 22 September 2009 - 11:17 AM
great thanks
ill have a look at it when i find some time
ill have a look at it when i find some time
#3
Posted 04 October 2009 - 10:01 AM
Please post any bugs, opinions, suggestions, if you do.ll have a look at it when i find some time
I hope this library will spare y'all some time.
Update: 1.1
- renamed library file to LVG.ahk for compatibility reasons
- new feature: Search in all rows regardless of their selected/checked state
#4
Posted 30 November 2010 - 05:29 PM
i recently needed this library again but im having some problems
when i have a listview containing fields like this :
and i use
it gives me the row number correctly
but when i use
it returns nothing.its just blank
i tried it with the imdb link also like this :
but that doesnt work either
any ideas?
when i have a listview containing fields like this :
District 9;District 9 (2009) DVDRip XviD-MAXSPEED;http://www.imdb.com/title/tt1136608/;Action, Sci-Fi;2009;DVD Rip;Aliens;Yes;{T066795}and i use
LVG_Search(1,"All","List","All","1","District 9")
it gives me the row number correctly
but when i use
LVG_Search(1,"All","List","All","9","{T066795}")it returns nothing.its just blank
i tried it with the imdb link also like this :
LVG_Search(1,"All","List","All","3","http://www.imdb.com/title/tt1136608/")
but that doesnt work either
any ideas?
#5
Posted 14 August 2012 - 07:30 AM
Can anyone reupload the files?




