Jump to content
Sign in to follow this  

GUICtrlCreateListViewItem maximum number of lines

Recommended Posts



I have this code



while 1


if $line="" then



$aa=GUICtrlCreateListViewItem ( $line, $ListView1 )



Where from a text line I create items to a listview ($Listview1). The problem is that I have 8000 lines in the file but only 4000 (aprox.) are added to the listview

The listview is defined before as defined next

$ListView1 = GUICtrlCreateListView("area_am|aloj|agrega|split|rot|tipoam|telef|nome|data|A5|A6|A7|hidine", 24, 16, 553, 265, BitOR($LVS_REPORT,$LVS_SINGLESEL,$LVS_SHOWSELALWAYS,$LVS_AUTOARRANGE), BitOR($WS_EX_CLIENTEDGE,$LVS_EX_GRIDLINES,$LVS_EX_FULLROWSELECT,$LVS_EX_HEADERDRAGDROP ))

Share this post

Link to post
Share on other sites

Use Beta ( last I looked), which ups the max control count from 4K, and use the _GuiCtrlListView_* functions (see the Beta help file).


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post

Link to post
Share on other sites

AutoIt beta

- Changed: Maximum controls in a GUI window 4093 -> 65532.

So if you recompile your script with new beta you will ne able create about 65500 listview items by GUICtrlCreateListViewItem()


If you use _GUICtrlListView_AddItem() no such max. items limitation exists no matter of AutoIt version but it's slower.

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.