Sign in to follow this  
Followers 0
Jex

Messenger problem

4 posts in this topic

If im try add user giving that error :

MessengerClient.au3 (177) : ==> Expected a "=" operator in assignment statement.:

$Listitems[$ListItemsLimit][1] = GUICtrlCreateListViewItem($List, $Add[2])

$Listitems^ ERROR

I can't find what is wrong?

Client.au3 :

#include <GUIConstants.au3>
#include <GuiListView.au3>
#include <GuiImageList.au3>

Global $Looktcp = 0, $MainSocket = -1, $Port = 7592, $Friendsave
$Reg1 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 1")
If @error Then
    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 1", "REG_SZ", "0")
    $Reg1 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 1")
EndIf
$Reg2 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 2")
If @error Then
    RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 2", "REG_SZ", "0")
    $Reg2 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 2")
EndIf
$Width = 154
$Height = 235
$Form = GUICreate("FLEXY", $Width, $Height, -1, -1, BitOR($WS_POPUP, $WS_BORDER))
$Close = GUICtrlCreateLabel("X", $Width - 15, 0, 11, 20)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetCursor(-1, 0)
$Formtitle = GUICtrlCreateLabel(" Login Screen", 0, 4, @DesktopWidth, 20, -1, $GUI_WS_EX_PARENTDRAG)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Formtitlebackground = GUICtrlCreateGraphic(0, 0, @DesktopWidth, 22)
GUICtrlSetBkColor(-1, 0x000000)
$Input1 = GUICtrlCreateInput("", 16, 56, 121, 21)
$Label1 = GUICtrlCreateLabel("Username :", 16, 32, 58, 17)
$Input2 = GUICtrlCreateInput("", 16, 112, 121, 21, $ES_PASSWORD)
$Label2 = GUICtrlCreateLabel("Password :", 16, 88, 56, 17)
$Checkbox1 = GUICtrlCreateCheckbox("Save username", 16, 146, 97, 17)
$Checkbox2 = GUICtrlCreateCheckbox("Save password", 16, 170, 97, 17)
$Login = GUICtrlCreateButton("Login", 16, 200, 123, 25, 0)
If $Reg1 = 1 Then
    GUICtrlSetState($Checkbox1, $GUI_CHECKED)
    $Reg1 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Input 1")
    GUICtrlSetData($Input1, $Reg1)
EndIf
If $Reg2 = 1 Then
    GUICtrlSetState($Checkbox2, $GUI_CHECKED)
    $Reg2 = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Input 2")
    GUICtrlSetData($Input2, $Reg2)
EndIf

GUISetState(@SW_SHOW, $Form)

While 1
    $msg = GUIGetMsg()
    Switch $msg
        Case $Close
            Exit
        Case $Login
            If GUICtrlRead($Checkbox1) = $GUI_CHECKED Then
                RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 1", "REG_SZ", "1")
                RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Input 1", "REG_SZ", GUICtrlRead($Input1))
            Else
                RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 1", "REG_SZ", "0")
            EndIf
            If GUICtrlRead($Checkbox2) = $GUI_CHECKED Then
                RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 2", "REG_SZ", "1")
                RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Input 2", "REG_SZ", GUICtrlRead($Input2))
            Else
                RegWrite("HKEY_LOCAL_MACHINE\SOFTWARE\FLEXY", "Messenger Checkbox 2", "REG_SZ", "0")
            EndIf
            If GUICtrlRead($Label1) And GUICtrlRead($Label2) <> "" Then
                TCPStartup()
                $ServerIP = @IPAddress1 ;InputBox("?", "What is server ip adress?", @IPAddress1)
                ;If @error = 0 Then
                $MainSocket = TCPConnect($ServerIP, $Port)
                If $MainSocket = -1 Then
                    MsgBox("", "", "Unable to connect.")
                Else
                    TCPSend($MainSocket, "!Connected||" & GUICtrlRead($Input1) & "||" & GUICtrlRead($Input2))
                EndIf
                ;EndIf
            Else
                MsgBox("", "", "Fill username and password box before press login button")
            EndIf
    EndSwitch
    $TCPRecv = TCPRecv($MainSocket, 2048)
    If StringInStr($TCPRecv, "!ConnectAccepted") Then
        $Username = StringSplit($TCPRecv, "||", 1)
        GUIDelete($Form)
        ExitLoop
    ElseIf $TCPRecv = "!Wrong"  Then
        GUICtrlSetData($Input1, "")
        GUICtrlSetData($Input2, "")
        MsgBox("", "", "Username or password wrong!")
        $Looktcp = 0
    EndIf
WEnd

$Width = 170
$Height = 250
$Form = GUICreate("FLEXY", $Width, $Height, -1, -1, BitOR($WS_POPUP, $WS_BORDER))
$Close = GUICtrlCreateLabel("X", $Width - 15, 0, 11, 20)
GUICtrlSetFont(-1, 10, 800, 0, "Comic Sans MS")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
GUICtrlSetCursor(-1, 0)
$Formtitle = GUICtrlCreateLabel(" " & $Username[2] & " (Online)", 0, 4, @DesktopWidth, 20, -1, $GUI_WS_EX_PARENTDRAG)
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT)
$Formtitlebackground = GUICtrlCreateGraphic(0, 0, @DesktopWidth, 22)
GUICtrlSetBkColor(-1, 0x000000)
;$List = _GUICtrlListView_Create ($Form, "", 0, 23, $Width, 215, BitOR($LVS_NOCOLUMNHEADER, $LVS_REPORT, $LVS_SINGLESEL, $LVS_SHOWSELALWAYS))
;_GUICtrlListView_SetExtendedListViewStyle ($List, BitOR($LVS_EX_FULLROWSELECT, $LVS_EX_SUBITEMIMAGES))
;_GUICtrlListView_InsertColumn ($List, 0, "Column 1", 165)
$List = GUICtrlCreateListView("", 0, 23, $Width, 215, BitOR($LVS_SHOWSELALWAYS, $LVS_SINGLESEL, $LVS_NOCOLUMNHEADER))
_GUICtrlListView_AddColumn ($List, "Column 1", 160)
$hImage = _GUIImageList_Create ()
_GUIImageList_Add ($hImage, _GUICtrlListView_CreateSolidBitMap (GUICtrlGetHandle($List), 0xFF0000, 16, 16))
_GUIImageList_Add ($hImage, _GUICtrlListView_CreateSolidBitMap (GUICtrlGetHandle($List), 0x00FF00, 16, 16))
_GUICtrlListView_SetImageList ($List, $hImage, 1)
$MenuItem = GUICtrlCreateMenu("Menu")
$MenuItem1 = GUICtrlCreateMenuItem("Add user", $MenuItem)
$MenuItem2 = GUICtrlCreateMenuItem("Delete user", $MenuItem)
$MenuItem3 = GUICtrlCreateMenuItem("Save users", $MenuItem)
$Separator1 = GUICtrlCreateMenuItem("", $MenuItem, 2)
$MenuItem4 = GUICtrlCreateMenuItem("Exit", $MenuItem)
GUISetState(@SW_SHOW, $Form)

While 1
    Checktcp()
    $msg = GUIGetMsg()
    Switch $msg
        Case $Close
            Sendfriendlist()
            Exit
        Case $MenuItem4
            Sendfriendlist()
            Exit
        Case $MenuItem3
            Sendfriendlist()
        Case $MenuItem1
            $User = InputBox("?", "Username?")
            If @error = 0 Then TCPSend($MainSocket, "!Add||" & $User)
        Case $MenuItem2
            $Count = _GUICtrlListView_GetSelectedIndices ($List, 1)
            _GUICtrlListView_DeleteItem ($List, $Count[1])
    EndSwitch
WEnd

Func Checktcp()
    $Data = TCPRecv($MainSocket, 2048)
    If StringInStr($Data, "!List||") Then
        $Friendlist = StringSplit($Data, "||", 1)
        $Friendlist2 = StringSplit($Friendlist[2], "[]", 1)
        $Onlinelist = StringSplit($Friendlist[3], "[]", 1)
        Dim $Listitems[UBound($Friendlist2) ][UBound($Friendlist2) ]
        For $i = 1 To UBound($Friendlist2) - 1
            If $Friendlist2[$i] <> "" Then
                $Listitems[$i][1] = GUICtrlCreateListViewItem($Friendlist2[$i], $List)
                $Listitems[$i][2] = $Friendlist2[$i]
                $Listitems[$i][3] = 0
            EndIf
            For $x = 1 To UBound($Onlinelist) - 1
                If $Listitems[$i][2] = $Onlinelist[$x] Then
                    $Listitems[$i][3] = 1
                    ExitLoop
                EndIf
            Next
            If $Listitems[$i][3] = 1 Then
                _GUICtrlListView_SetItemImage($List, $i - 1, 1)
                GUICtrlSetColor($Listitems[$i][1], 0x00FF00)
            Else
                _GUICtrlListView_SetItemImage($List, $i - 1, 0)
                GUICtrlSetColor($Listitems[$i][1], 0xFF0000)
            EndIf
        Next
        Arrange()
        $ListItemsLimit = UBound($Listitems)
    ElseIf StringInStr($Data, "!Add||") Then
        $Add = StringSplit($Data, "||", 1)
        $Listitems[$ListItemsLimit][1] = GUICtrlCreateListViewItem($List, $Add[2])
        $Listitems[$ListItemsLimit][2] = $Add[2]
        $Listitems[$ListItemsLimit][3] = $Add[3]
        If $Listitems[$ListItemsLimit][3] = 1 Then
            _GUICtrlListView_SetItemImage($List, UBound($Listitems) - 2, 1)
            GUICtrlSetColor($Listitems[$ListItemsLimit][1], 0x00FF00)
        Else
            _GUICtrlListView_SetItemImage($List, UBound($Listitems) - 2, 0)
            GUICtrlSetColor($Listitems[$ListItemsLimit][1], 0xFF0000)
        EndIf
        Arrange()
        $ListItemsLimit += 1
    ElseIf StringInStr($Data, "!Adderror||") Then
        $Adderror = StringSplit($Data, "||", 1)
        MsgBox("", "Error", $Adderror[2] & " not found.")
    ElseIf StringInStr($Data, "!Bye") Then
        MsgBox("", "", "Server down.")
        Exit
    ElseIf StringInStr($Data, "!Ping") Then
        TCPSend($MainSocket, "!Ping")
    ElseIf StringInStr($Data, "!Setonline||") Then
        $Onlines = StringSplit($Data, "||", 1)
        For $i = 1 To UBound($Listitems) - 2
            If $Listitems[$i][2] = $Onlines[2] Then
                $Listitems[$i][3] = 1
                GUICtrlSetColor($Listitems[$i][1], 0x00FF00)
                ExitLoop
            EndIf
        Next
    ElseIf StringInStr($Data, "!Setoffline||") Then
        $Offlines = StringSplit($Data, "||", 1)
        For $i = 1 To UBound($Listitems) - 2
            If $Listitems[$i][2] = $Offlines[2] Then
                $Listitems[$i][3] = 0
                GUICtrlSetColor($Listitems[$i][1], 0xFF0000)
                ExitLoop
            EndIf
        Next
    EndIf
EndFunc   ;==>Checktcp

Func Sendfriendlist()
    $Listcount = _GUICtrlListView_GetItemCount ($List)
    For $i = 1 To $Listcount
        $Listtext = _GUICtrlListView_GetItemText ($List, $i - 1)
        If $i = 1 Then
            $Friendsave = ">>>" & $Listtext
        ElseIf $i = $Listcount Then
            $Friendsave = $Friendsave & "[]" & $Listtext & "<<<" 
        Else
            $Friendsave = $Friendsave & "[]" & $Listtext
        EndIf
    Next
    TCPSend($MainSocket, "!Friendsave||" & $Friendsave & "||" & $Listcount)
EndFunc   ;==>Sendfriendlist

Func Arrange()
    Global $B_DESCENDING[_GUICtrlListView_GetColumnCount ($List) ]
    _GUICtrlListView_SimpleSort ($List, $B_DESCENDING, 0)
EndFunc   ;==>Arrange

Func OnAutoItExit()
    If $MainSocket <> -1 Then
        Sleep(100)
        TCPSend($MainSocket, "!Bye")
        TCPCloseSocket($MainSocket)
    EndIf
    TCPShutdown()
EndFunc   ;==>OnAutoItExitoÝ÷ Ù'«½êÚ»v®¶­sb6æ6ÇVFRfÇC´uT6öç7FçG2æS2fwC°¢6æ6ÇVFRfÇC´uTVFBæS2fwC°¢6æ6ÇVFRfÇC´FFRæS2fwC°¢6æ6ÇVFRfÇC´fÆRæS2fwC°¢6æ6ÇVFRfÇCµ7G&æræS2fwC°¢6æ6ÇVFRfÇC´wVÆ7D&÷æS2fwC° ¤vÆö&Â6öç7Bb33cµ÷'BÒsS"Âb33c´ÖÆVæwFÒ#C¤vÆö&Âb33c´Ö6öæ2ÒÂb33c´6öææV7FVE6ö6¶WE²b33c´Ö6öæ5ÒÂb33c´æ6µ²b33c´Ö6öæ5ÒÂb33c´7W'&VçE6ö6¶WBÒÂb33cµG&6²ÒÂb33c´66WBÒÂb33c´W'&÷"ÒÂb33cµFÖW#"Âb33c´6V6·7FGW2ÒÂb33cµ7FGW5²b33c´Ö6öæ5ФvÆö&Â6öç7Bb33c´Ö6öææV7FöâÒb33c´Ö6öæ2Ò ¤f÷"b33cµG&6²ÒFòb33c´Ö6öææV7Föà b33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÒÓ¤æW@ ¢b33c´f÷&ÒÒuT7&VFRgV÷C´dÄU6W'fW"gV÷C²ÂcÂCCÂ2ÂR¢b33c´VFBÒuT7G&Ä7&VFTVFBgV÷C²gV÷C²ÂÂÂCRÂ3BÂ&Dõ"b33c´U5õ$TDôäÅÂb33c´U5õtåE$UEU$âÂb33cµu5õe45$ôÄÂÂb33cµu5ô45$ôÄÂÂb33c´U5ôUDõe45$ôÄÂÂb33c´U5ôUDô45$ôÄ¢b33c´Æ7BÒuT7G&Ä7&VFTÆ7BgV÷C²gV÷C²ÂSÂÂÂ3B¢b33c´çWBÒuT7G&Ä7&VFTçWBgV÷C²gV÷C²ÂÂC"ÂSRÂ#¢b33cµ6VæBÒuT7G&Ä7&VFT'WGFöâgV÷Cµ6VæBÆÂgV÷C²ÂS#ÂC"ÂsÂ#¤uT6WE7FFR5uõ4õr ¤vÆö&Âb33c´Öå6ö6¶WBÒD57F'E6W'fW"b33cµ÷'BÂb33c´Ö6öæ2¤bW'&÷"fÇC²fwC²FVà 6öç6öÆRgV÷Cµ6W'fW"Væ&ÆRFòæFƦRâgV÷C²ÂgV÷C²gV÷C²¤VÇ6P 6öç6öÆRgV÷Cµ6W'fW"æFƦVBâgV÷C²ÂgV÷C²gV÷C²¤VæD` ¥vÆR b33cµFÖW"ÒFÖW$æB b33c¶×6rÒuTvWD×6r 7vF6b33c¶×6p 66Rb33cµ6Væ@ D56VæDÖW76vTÆÂuT7G&Å&VBb33c´çWB uT7G&Å6WDFFb33c´çWBÂgV÷C²gV÷C² 66Rb33c´uTôUdTåEô4Äõ4P W@ VæE7vF6 b33c´6öææV7FVE6ö6¶WE²b33c´7W'&VçE6ö6¶WEÒÒD566WBb33c´Öå6ö6¶WB bb33c´6öææV7FVE6ö6¶WE²b33c´7W'&VçE6ö6¶WEÒfÇC²fwC²ÓFVà b33c´7W'&VçE6ö6¶WBÒ6ö6¶WE6V&6 VæD` f÷"b33cµG&6²ÒFòb33c´Ö6öææV7Föà bb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒfÇC²fwC²ÓFVà b33c´FFÒD5&V7bb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÂb33c´ÖÆVæwF bb33c´FFÒgV÷C²b333´'RgV÷C²FVà 'Rb33cµG&6² VÇ6Tb7G&ætå7G"b33c´FFÂgV÷C²b333µærgV÷C²FVà b33cµ7FGW5²b33cµG&6µÒÒ VÇ6Tb7G&ætå7G"b33c´FFÂgV÷C²b333´6öææV7FVBgV÷C²FVà b33c´62Ò7G&æu7ÆBb33c´FFÂgV÷C·ÇÂgV÷C²Â b33c¶F"ÒfÆT÷VâgV÷C¶F"çGBgV÷C²Â f÷"b33c¶ÒFòôfÆT6÷VçDÆæW2gV÷C¶F"çGBgV÷C² b33c´ÆæRÒfÆU&VDÆæRb33c¶F"Âb33c¶ b33c´ÆæW7ÆBÒ7G&æu7ÆBb33c´ÆæRÂgV÷C·ÇÂgV÷C²Â bb33c´65³%ÒÒb33c´ÆæW7ÆE³ÒæBb33c´65³5ÒÒb33c´ÆæW7ÆE³%ÒFVà b33c´æ6µ²b33cµG&6µÒÒb33c´65³%Ð ôuT7G&ÄÆ7D&÷ôFE7G&ærb33c´Æ7BÂb33c´æ6µ²b33cµG&6µÒ 6öç6öÆRb33c´æ6µ²b33cµG&6µÒfײgV÷C²6öææV7FVBâW6W&æÖR¢gV÷C²fײb33c´ÆæW7ÆE³ÒfײgV÷C²77v÷&B¢gV÷C²fײb33c´ÆæW7ÆE³%ÒfײgV÷C²gV÷C²Âb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ D56VæBb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÂgV÷C²b333´6öææV7D66WFVGÇÂgV÷C²fײb33c´æ6µ²b33cµG&6µÒ b33c´g&VæFÆ7BÒfÆU&VBgV÷C¶g&VæFÆ7BçGBgV÷C² b33c´Æ7G6V&6Òõ7G&æt&WGvVVâb33c´g&VæFÆ7BÂgV÷C²fwC²fwC²fwC²gV÷C²ÂgV÷C²fÇC²fÇC²fÇC²gV÷C² f÷"b33c¶ÒFòT&÷VæBb33c´Æ7G6V&6Ò7FW  bb33c´Æ7G6V&6²b33c¶ÒÒb33c´æ6µ²b33cµG&6µÒFVà b33cµ6VæFÆ7BÒõ7G&æt&WGvVVâb33c´g&VæFÆ7BÂgV÷C²fwC²fwC²fwC²gV÷C²ÂgV÷C²fÇC²fÇC²fÇC²gV÷C² b33cµ6VæFÆ7C"Òb33cµ6VæFÆ7E²b33c¶²Ð WDÆö÷ VæD` æW@ bôuT7G&ÄÆ7D&÷ôvWD6÷VçBb33c´Æ7BfÇC²fwC²FVà f÷"b33c¶ÒFòôuT7G&ÄÆ7D&÷ôvWD6÷VçBb33c´Æ7BÒ bb33c¶ÒFVà b33c´öæÆæVÆ7BÒôuT7G&ÄÆ7D&÷ôvWEFWBb33c´Æ7BÂb33c¶ VÇ6P b33c´öæÆæVÆ7BÒb33c´öæÆæVÆ7BfײgV÷CµµÒgV÷C²fײôuT7G&ÄÆ7D&÷ôvWEFWBb33c´Æ7BÂb33c¶ VæD` æW@ D56VæBb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÂgV÷C²b333´Æ7GÇÂgV÷C²fײb33cµ6VæFÆ7C"fײgV÷C·ÇÂgV÷C²fײb33c´öæÆæVÆ7B VæD` D56VæDÖW76vTÆÂgV÷C²b333µ6WFöæÆæWÇÂgV÷C²fײb33c´æ6µ²b33cµG&6µÒÂb33cµG&6² b33c´66WBÒ b33cµ7FGW5²b33cµG&6µÒÒ WDÆö÷ VæD` æW@ bb33c´66WBfÇC²fwC²FVà D56VæBb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÂgV÷C²b333µw&öærgV÷C² 6öç6öÆRb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒfײgV÷C²W6W&æÖR÷"77v÷&Bw&öærâW6W&æÖR¢gV÷C²fײb33c´65³%ÒfײgV÷C²77v÷&B¢gV÷C²fײb33c´65³5ÒfײgV÷C²gV÷C²Âb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ b33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÒÓ b33c´7W'&VçE6ö6¶WBÒ6ö6¶WE6V&6 b33c´66WBÒ VæD` VÇ6Tb7G&ætå7G"b33c´FFÂgV÷C²b333´FBgV÷C²FVà b33c´FBÒ7G&æu7ÆBb33c´FFÂgV÷C·ÇÂgV÷C²Â b33cµ&VFg&VæBÒfÆU&VBgV÷C¶g&VæFÆ7BçGBgV÷C² b33cµ&VFg&VæC"Òõ7G&æt&WGvVVâb33cµ&VFg&VæBÂgV÷C²fwC²fwC²fwC²gV÷C²ÂgV÷C²fÇC²fÇC²fÇC²gV÷C² f÷"b33c¶ÒFòT&÷VæBb33cµ&VFg&VæC"Ò7FW  bb33c´FE³%ÒÒb33cµ&VFg&VæC%²b33c¶ÒFVà f÷"b33c¶ÒFòôuT7G&ÄÆ7D&÷ôvWD6÷VçBb33c´Æ7B bôuT7G&ÄÆ7D&÷ôvWEFWBb33c´Æ7BÂb33c¶ÒÒb33cµ&VFg&VæC%²b33c¶ÒFVà b33cµ7FBÒ WDÆö÷ VÇ6P b33cµ7FBÒ VæD` æW@ D56VæBb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÂgV÷C²b333´FGÇÂgV÷C²fײb33cµ&VFg&VæC%²b33c¶ÒfײgV÷C·ÇÂgV÷C²fײb33cµ7FB 6öç6öÆRb33c´æ6µ²b33cµG&6µÒfײgV÷C²W6W"FB&WVW7B6öæf&ÖVBâgV÷C²fײb33c´FE³%ÒfײgV÷C²gV÷C²Âb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ b33c´W'&÷"Ò WDÆö÷ VæD` æW@ bb33c´W'&÷"fÇC²fwC²FVà D56VæBb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÂgV÷C²b333´FFW'&÷'ÇÂgV÷C²fײb33c´FE³%Ò 6öç6öÆRb33c´æ6µ²b33cµG&6µÒfײgV÷C²&WVW7FVBW6W"æ÷Bf÷VæBâgV÷C²fײb33c´FE³%ÒfײgV÷C²gV÷C²Âb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ VæD` b33c´W'&÷"Ò VÇ6Tb7G&ætå7G"b33c´FFÂgV÷C²b333´g&VæG6fWÇÂgV÷C²FVà b33cµ6fVg&VæBÒ7G&æu7ÆBb33c´FFÂgV÷C·ÇÂgV÷C²Â b33c´g&VæFÆ7F6÷VçBÒôfÆT6÷VçDÆæW2gV÷C¶g&VæFÆ7BçGBgV÷C² f÷"b33c¶ÒFòb33c´g&VæFÆ7F6÷Vç@ bfÆU&VDÆæRgV÷C¶g&VæFÆ7BçGBgV÷C²Âb33c¶ÒgV÷C²fwC²fwC²fwC²gV÷C²fײb33c´æ6µ²b33cµG&6µÒfײgV÷C²fÇC²fÇC²fÇC²gV÷C²FVà ôfÆUw&FUFôÆæRgV÷C¶g&VæFÆ7BçGBgV÷C²Âb33c¶²Âb33cµ6fVg&VæE³%Ò 6öç6öÆRb33c´æ6µ²b33cµG&6µÒfײgV÷C²g&VæBÆ7B6fVBâF÷FÂ6fVBW6W'2¢gV÷C²fײb33cµ6fVg&VæE³5ÒfײgV÷C²gV÷C²Âb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ b33c´W'&÷"Ò WDÆö÷ VæD` æW@ bb33c´W'&÷"fÇC²fwC²FVà 6öç6öÆRb33c´æ6µ²b33cµG&6µÒfײgV÷C²g&VæBÆ7Bæ÷B6fVBâgV÷C²Âb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ VæD` b33c´W'&÷"Ò VÇ6Tbb33c´FFfÇC²fwC²gV÷C²gV÷C²FVà µD56VæDÖW76vTÆÂb33c´FF 6öç6öÆRb33c´æ6µ²b33cµG&6µÒfײgV÷C²6VæBFB6öÖÖæB¢gV÷C²fײb33c´FFÂb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ VæD` VæD` æW@ b33cµFÖW#"³ÒFÖW$Ffbb33cµFÖW" b&÷VæBb33cµFÖW#"ÂfwC³ÒFVà b33cµFÖW#"Ò b33c´6V6·7FGW2Ò D56VæDÖW76vTÆÂgV÷C²b333µærgV÷C² f÷"b33cµG&6²ÒFòb33c´Ö6öææV7Föà bb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒfÇC²fwC²ÓFVà b33cµ7FGW5²b33cµG&6µÒÒ VæD` æW@ VæD` b&÷VæBb33cµFÖW#"ÂfwC³Ò3æBb33c´6V6·7FGW2ÒFVà f÷"b33cµG&6²ÒFòb33c´Ö6öææV7Föà bb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒfÇC²fwC²ÓæBb33cµ7FGW5²b33cµG&6µÒÒFVà 'Rb33cµG&6² VæD` æW@ b33c´6V6·7FGW2Ò VæD`¥tVæ@ ¤gVæ26öç6öÆRb33c´FFÂb33c´6öâ b33c´VFGBÒuT7G&Å&VBb33c´VFB bb33c´VFGBÒgV÷C²gV÷C²FVà uT7G&Å6WDFFb33c´VFBÂôæ÷uFÖRRfײgV÷C²ÒgV÷C²fײvWDb33c´6öâfײgV÷C²ÒgV÷C²fײb33c´FF VÇ6P uT7G&Å6WDFFb33c´VFBÂb33c´VFGBfײ5$Äbfײôæ÷uFÖRRfײgV÷C²ÒgV÷C²fײvWDb33c´6öâfײgV÷C²ÒgV÷C²fײb33c´FF VæD` ôuT7G&ÄVFEôÆæU67&öÆÂb33c´VFBÂÂôuT7G&ÄVFEôvWDÆæT6÷VçBb33c´VFB¤VæDgVæ2³ÓÒfwC´6öç6öÆP ¤gVæ2D56VæDÖW76vTÆÂb33c´FFÂb33cµG&6¶ÆÖBÒÓ" Æö6Âb33cµG&6²Ò f÷"b33cµG&6²ÒFòb33c´Ö6öææV7Föà bb33c´FFfÇC²fwC²gV÷C²gV÷C²æBb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒfÇC²fwC²ÓæBb33cµG&6²fÇC²fwC²b33cµG&6¶ÆÖBFVà D56VæBb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÂb33c´FF ´6öç6öÆRb33c´FFfײgV÷C²6VæBgV÷C²fײb33c´æ6µ²b33cµG&6µÒÂb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ VæD` æW@¤VæDgVæ2³ÓÒfwCµD56VæDÖW76vTÆÀ ¤gVæ2D57F'E6W'fW"b33cµ÷'BÂb33c´Ö6öææV7BÒ Æö6Âb33cµ6ö6¶W@ b33cµ6ö6¶WBÒD57F'GW 6VÆV7@ 66Rb33cµ6ö6¶WBÒ 6WDW'&÷"W'&÷" &WGW&âÓ VæE6VÆV7@ b33cµ6ö6¶WBÒD5Æ7FVâFG&W73Âb33cµ÷'BÂb33c´Ö6öææV7B 6VÆV7@ 66Rb33cµ6ö6¶WBÒÓ 6WDW'&÷"W'&÷" &WGW&â VæE6VÆV7@ 6WDW'&÷" &WGW&âb33cµ6ö6¶W@¤VæDgVæ2³ÓÒfwCµD57F'E6W'fW  ¤gVæ26ö6¶WE6V&6 Æö6Âb33cµG&6²Ò f÷"b33cµG&6²ÒFòb33c´Ö6öææV7Föà bb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÒÓFVà &WGW&âb33cµG&6° VæD` æW@¤VæDgVæ2³ÓÒfwCµ6ö6¶WE6V&6 ¤gVæ2vWDb33cµ6ö6¶WB Æö6Âb33cµ6ö6¶WDFG&W70 b33cµ6ö6¶WDFG&W72ÒFÆÅ7G'V7D7&VFRgV÷C·6÷'C·W6÷'C·VçC¶6%³ÒgV÷C² b33c´ÒFÆÄ6ÆÂgV÷Cµw3%ó3"æFÆÂgV÷C²ÂgV÷C¶çBgV÷C²ÂgV÷C¶vWGVW&æÖRgV÷C²ÂgV÷C¶çBgV÷C²Âb33cµ6ö6¶WBÂgV÷C·G"gV÷C²ÂFÆÅ7G'V7DvWEG"b33cµ6ö6¶WDFG&W72ÂgV÷C¶çE÷G"gV÷C²ÂFÆÅ7G'V7DvWE6¦Rb33cµ6ö6¶WDFG&W72 bæ÷BW'&÷"æBb33c´³ÒÒFVà b33c´ÒFÆÄ6ÆÂgV÷Cµw3%ó3"æFÆÂgV÷C²ÂgV÷C·7G"gV÷C²ÂgV÷C¶æWEöçFögV÷C²ÂgV÷C¶çBgV÷C²ÂFÆÅ7G'V7DvWDFFb33cµ6ö6¶WDFG&W72Â2 bæ÷BW'&÷"FVâb33c´Òb33c´³Ð VÇ6P b33c´ÒFG&W73 VæD` b33cµ6ö6¶WDFG&W72Ò &WGW&âb33c´¤VæDgVæ2³ÓÒfwC´vWD ¤gVæ2'Rb33cµG&6² D56Æ÷6U6ö6¶WBb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ 6öç6öÆRb33c´æ6µ²b33cµG&6µÒfײgV÷C²F66öææV7FVBâgV÷C²Âb33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒ f÷"b33c¶ÒFòôuT7G&ÄÆ7D&÷ôvWD6÷VçBb33c´Æ7BÒ bb33c´æ6µ²b33cµG&6µÒÒôuT7G&ÄÆ7D&÷ôvWEFWBb33c´Æ7BÂb33c¶FVà ôuT7G&ÄÆ7D&÷ôFVÆWFU7G&ærb33c´Æ7BÂb33c¶ WDÆö÷ VæD` æW@ D56VæDÖW76vTÆÂgV÷C²b333µ6WFöffÆæWÇÂgV÷C²fײb33c´æ6µ²b33cµG&6µÒ b33c´6öææV7FVE6ö6¶WE²b33cµG&6µÒÒÓ b33c´7W'&VçE6ö6¶WBÒ6ö6¶WE6V&6¤VæDgVæ2³ÓÒfwC´'P ¤gVæ2öäWFôDWB D56VæDÖW76vTÆÂgV÷C²b333´'RgV÷C² 6ÆVW D56WFF÷vâ¤VæDgVæ2³ÓÒfwC´öäWFôDW

db.txt :

admin||123
admin2||123
admin 3||123
flexy 123||123
flexy||12345
test||123
test123||123

friendlist.txt :

>>>admin<<<
>>>admin 3[]admin2[]flexy 123<<<
>>>admin2<<<
>>><<<
>>>admin 3<<<
>>>admin2[]flexy 123<<<
>>>flexy 123<<<
>>><<<
>>>flexy<<<
>>>admin[]admin2[]flexy[]flexy 123<<<
>>>test<<
>>>admin2[]flexy<<<
>>>test123<<<
>>>admin<<<

Share this post


Link to post
Share on other sites

Well, one thing is for sure, you're treating $ListItemsLimit as if it were global and it's not.

But it's not bringing up an error in au3check for me.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I can't find solution :P

I'm added that in line 175 ( after create list )

Global $Listitems[$ListItemsLimit][4]

and added that in line 177 ( before add user in list )

ReDim $Listitems[$ListItemsLimit + 1][4]

Now not giving error but not adding user in list too..

Edit : I'm fixed that problem but now have another problem :

If im use

Global $B_DESCENDING[_GUICtrlListView_GetColumnCount ($List) ]
    _GUICtrlListView_SimpleSort ($List, $B_DESCENDING, 0)

Icon color and icon text color changing and showing wrong ;)

Example Listview index 5 have online user and that user text green and icon green but if im sort listview, text color and icon color showing wrong user online. But text color control id based so need not change after sort :)

After sort i need take online users list from server to check users one by one for change icon and text color again.

Edited by Jex

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  
Followers 0