Jump to content
Sign in to follow this  

ListView Copy

Recommended Posts



well i am very new to AutoIt so this is probabaly an easy problem.

I have a program with a list view. i wrote a script that creates a new AutoIt list box and i that copies the text from one list to the other with some filtering applied to it. Everything works fine but if a lot of text appears at the original list at the same time not all of it is copied into my newly created text box.


While 1

$ListCount = _GUICtrlListView_GetItemCount($hWnd)-1

$Chat = _GUICtrlListView_GetItemTextString($hWnd,_GUICtrlListView_GetItemCount($hWnd)-1)

If StringInStr($PChat,"Pete:") = 19 Then

If $Chat <> $ChatOld Then



$ChatOld = $Chat




Share this post

Link to post
Share on other sites

Hmm... a little bit messy. Mind to explain why you're adding strings to the list-box always from the last item in the list-view control? Is the list-view control gets updated continually from other program other than yours?

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.