McPete Posted May 4, 2009 Posted May 4, 2009 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
Authenticity Posted May 4, 2009 Posted May 4, 2009 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?
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