Jump to content

ListView Copy


Recommended Posts

Hi,

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.

CODE

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

_GUICtrlListBox_InsertString($hListBox,$Chat,_GUICtrlListView_GetItemCount($hListBox))

_GUICtrlListBox_EndUpdate($hListBox)

$ChatOld = $Chat

EndIf

EndIf

WEnd

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...