Sign in to follow this  
Followers 0
CodyBarrett

[SOLVED]GUI if,then,elseif,else,endif help

19 posts in this topic

#1 ·  Posted (edited)

i am making an account creation gui and uhhh i cant get it to read from the ini file i have here is a peice of my script that i think im having troubles with..

PS. my whole script is 600 lines long

$ACC = GUICreate("LOGIN\REGISTER",200,100)
$USER = GUICtrlCreateInput("USERNAME",0,0,200,20)
$UPASS = GuictrlcreateInput("PASSWORD",0,20,200,20,$ES_PASSWORD)
$Login = GUICtrlCreateButton("LOGIN", 0,40,200,20)
$REGbtn = GUICtrlCreateButton("REGISTER",0,60,200,20)
$Cancelacc = GUICtrlCreateButton("CANCEL",0,80,200,20)
GUICtrlSetData($USERRead, iniReadSection("guild.ini", "[ACCOUNT]"))
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
           Exit
    Case $cancelacc
        AutoItSetOption ( "GUICloseOnESC" )
        Send("{ESC}")
    Case $REGbtn
        GUIDelete($ACC)
        GUICreate($REG,200,60)
        GUISetState(@SW_SHOW)
    Case $Login
        IF GUICtrlRead($USERRead) = (GUICtrlRead($USER)=GUIctrlread($UPASS)) Then
            MsgBox(0, "Access GRANTED","")
        ElseIf GUICtrlRead($USERRead) = (GUICtrlRead($USER)=GUIctrlread($UPASS)) Then
            MsgBox(0, "Access DENIED","")
        EndIf

i ccould post my entire scipt but yeah... what am i doing wrong here or tell me if its elsewhere so i can load the rest of my script

Edited by bob00037

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

That Login case looks a bit weird.

If UserRead = (User = Pass) Then

;blah

elseif UserRead = (User = Pass) Then

;blah blah

EndIf

For starters, when do you expect User and Pass to be equal?

If User and Pass are equal, then (User = Pass) will be a True value.

Is UserRead supposed to equal True (or 1) before the condition is met?

Why is the ElseIf statement exactly the same? If the first isn't true, the second won't be either...

EDIT:

Ah, I see what you're trying to do, I think. IniReadSection doesn't work that way, is returns an array so you need to access the $Array[0][0] and $Arrray[0][1] fields to compare each against 'User' and 'Pass' respectively.

Edited by nikink

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

well... when i plan on loading it into the ini later... i plan on making it ike this

[ACCOUNT]

NAME=PASSWORD

so i thought loading it like the way it is might work.. but never mind i guess ill try your if statements

EDIT

If $UserRead = ($User = $UPass) Then
        MsgBox(0,"","ACCEPTED")
    elseif $UserRead = ($USER = $UPASS) Then
        MsgBox(0,"","DEClINED")
    EndIf

yeah very time i tried this.. the first messagebox would come up, is there a way to tell it if it is NOT equal?

as ou can probly guess i dont use if statements very often, lol i dont like em never have

Edited by bob00037

Share this post


Link to post
Share on other sites

Wow... you don't like IF statements?!?!? Kooky!

The Help file has info on Operators like 'Not', basically, yes you can check for inequality.

If Not (1 = 2) Then ; Will resolve to true all the time

If 1 <> 2 Then ; Will resolve to true all the time

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

ok...

WARNING would you like me to post my entire script?

and ill try the if not stuff

EDIT huh... wierd when i tried the NOT in the elseif statement only the elseif statment worked... here ill post my script(i warned you)

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.12.0
 Author:   BOB

 Script Function: GUI information organizer
    Template AutoIt script.

#ce ----------------------------------------------------------------------------
;This is made by BOB
;(bob00037 on the autoitforums)
; This script Is An Information Organizer For The Not Very Widely Known MMORPG Endless Online;
#include <GuiConstantsEx.au3>
#Include <GuiListView.au3>
#include <ButtonConstants.au3>
#include <GuiConstants.au3>
#include <Editconstants.au3>

#NoTrayIcon
DirCreate("C:\GUILDINFO")
If FileExists("C:\guildinfo\Guild.ini") Then
    
Else
    MsgBox(64,"no", "Does NOT exists")
    IniWrite("C:\GUILDINFO\Guild.ini", "Help", "#", "*****this is a help guide on the controlls of GI******                                                                                                                                                                                      #[For Each editbox hitting ENTER will call a function]                                            #[top right [X]=exit\OR\ ALT+f4=exit]                                                                         #[CANNOT edit the list box BUT just add a member then Delete it when you need to edit it, then add again]                                                                                        #[DO NOT change the directory outputs (i have not designed it to be user friendly)]")
    IniWrite("C:\guildinfo\Guild.ini", "Personal", "#Text", "0")
    IniWrite("C:\guildinfo\Guild.ini", "CurrentMembers", "#Current", "0")
    IniWrite("C:\guildinfo\Guild.ini", "Personal", "#Rules", "0")
    IniWrite("C:\guildinfo\Guild.ini", "ACCOUNT", "#1", "0")
    MsgBox(64,"NOW", "it exists")
    
    
EndIf
#region ; GLOBAL VARS
#Region; GI GUI
Global $GUI;GUI

Global $Pdt, $PSv, $Ldbtn, $Pdtdr, $INIp, $OpnDrb, $OpnDrI, $hlp, $INIh, $Rules, $Lrules, $SRules

Global $Delcm, $AdRcm, $Adrcm2, $Addcm, $listview, $Listview2, $INIcm, $Cmdt, $Cmld, $listedit, $CmSv, $Cmsv2, $CmLd, $CmLd2, $Cmcount, $Cmmemup, $CmMemCount, $Cmupdate, $noitemsm

Global $USERname, $USERL
#EndRegion

#Region;ACC GUI
Global $ACC
Global $USER, $UPASS, $USERp, $USERn, $USERp2, $USERn2, $REGacc, $REGpass, $cancelacc, $USERRead
#EndRegion

#Region; REG GUI
Global $REG; GUI
#EndRegion
#EndRegion

$ACC = GUICreate("LOGIN\REGISTER",200,100)
$USER = GUICtrlCreateInput("USERNAME",0,0,200,20)
$UPASS = GuictrlcreateInput("PASSWORD",0,20,200,20,$ES_PASSWORD)
$Login = GUICtrlCreateButton("LOGIN", 0,40,200,20)
$REGbtn = GUICtrlCreateButton("REGISTER",0,60,200,20)
$Cancelacc = GUICtrlCreateButton("CANCEL",0,80,200,20)
GUICtrlSetData($USERRead, iniReadSection("guild.ini", "[ACCOUNT]"))
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
           Exit
    Case $cancelacc
        AutoItSetOption ( "GUICloseOnESC" )
        Send("{ESC}")
    Case $REGbtn
        GUIDelete($ACC)
        GUICreate($REG,200,60)
        GUISetState(@SW_SHOW)
    Case $Login
    If IniReadSection("guild.ini","[PASSWORD]") = ($USER = $UPASS) Then
        MsgBox(0,"","ACCEPTED")
    elseif IniReadSection("guild.ini","[PASSWORD]")Not = ($USER = $UPASS) Then
        MsgBox(0,"","DECLINED")
    EndIf
    #region; GUI
$GUI = GuiCreate("GI    (Guild Information)   VERSION 0.00005", 400, 400)
GuiSetIcon(@SystemDir & "\mspaint.exe", 0)
GUIDelete($ACC)
#EndRegion

    #Region ; PIC
GuiCtrlCreatePic("guild.bmp",0,0, 399,79)
#EndRegion

    #Region ; Personal TAB
GuiCtrlCreateTab(0, 80)
GuiCtrlCreateTabItem("Personal")


_vars()
Func _vars()

    $PSv = GuiCtrlCreateButton("SAVE", 0, 360, 400, 20); The "save" button on the personal tab
    $OpnDrB = GuiCtrlCreateButton("OPEN DIR", 300, 315, 100, 20);  The "OPEN" button on the personal tab
    $Ldbtn = GUICtrlCreateButton("LOAD", 300, 335,100,20); The "load" button on the personal tab
    $hlp = GUICtrlCreateButton("HELP", 200, 380, 200,20); HELP button for the help file
    $Pdtdr = GUICtrlCreateInput("C:\guildinfo\guild.ini", 0, 335, 300, 20); The DIRECTORY input for LOAD on the personal tab
    $Pdt = GUICtrlCreateEdit(" ", 0, 130, 400, 175, $ES_MULTILINE);The BIG input on the personal tab
    $OpnDrI = GUICtrlCreateInput("C:\guildinfo", 0, 315, 300, 20); The DIRECTORY input for OPEN DIR on the personal tab
    $INIp = IniRead("Guild.ini", "personal", "#text", ""); The [personal] .ini text readback call
    $INIh = IniRead("Guild.ini", "Help", "#", ""); The [help] .ini text readback call
    $Lrules = GUICtrlCreateButton("LOAD RULES",5,105,195,20)
    $Srules = GUICtrlCreateButton("SAVE RULES",202,105,195,20)
    $Rules = Iniread("guild.ini", "Personal", "#Rules","")
    
EndFunc

; DATE
#Region
GuiCtrlCreateDate("", 0, 380, 200, 20)
#EndRegion
#EndRegion


    #Region ;Guild TAB
GuiCtrlCreateTab(0, 80)
GuiCtrlCreateTabItem("Guild")

#Region ; DATE
GuiCtrlCreateDate("", 0, 380, 200, 20)
#EndRegion


#Region
 _vars2()
Func _vars2()
    GUICtrlSetState(-1, $GUI_DROPACCEPTED)  ; to allow drag and dropping
    $CmMemCount = GUICtrlCreateEdit("0", 0, 130, 224, 20)
    $Adrcm = GuiCtrlCreateInput("Name|0|0|0|0", 0, 110, 224, 20)
    $Delcm = GuiCtrlCreateButton("Delete", 306, 110, 80, 20)
    $Addcm = GuiCtrlCreateButton("Add ", 226, 110, 80, 20)
    $listview = GuiCtrlCreateListView("Member|Rank|Warnings|Test Taken|Gone", 0, 150, 399, 200, BitOR($LVS_EDITLABELS, $LVS_EX_GRIDLINES))
    $Listview2 = GUICtrlRead($listview)
    $Adrcm2 = GUICtrlRead( $Adrcm )
    $CmSv = GUICtrlCreateButton("SAVE", 0, 360, 197, 18)
    $Cmld = GUICtrlCreateButton("LOAD", 198, 360, 200, 18)
    $Cmupdate = GUICtrlCreateButton("UPDATE", 226,130,160,20)
    $CMmemup = IniRead("guild.ini", "CurrentMembers", "Itemcount", "default")

EndFunc
#EndRegion
#EndRegion

    #Region; USER TAB
    GUICtrlCreateTab(0, 80)
    GUICtrlCreateTabItem("USER")
    GUISetState(@SW_SHOW)
        $USERL = GUICtrlCreateLabel("Welcome,",150,85,250,20)
        $USERname = GUICtrlCreateLabel(Guictrlread($USER), 200,85,250,20)
    AutoItSetOption ("GUICloseOnESC" )
    #EndRegion
        Case $PSv; PERSONAL
            Iniwrite("guild.ini", "personal", "#text", GUICtrlRead($Pdt))
        Case $Ldbtn
        GUICtrlSetData ( $Pdt, $INIp )
        Case $OpnDrB
            MsgBox( 0, "OPEN?", "UDF Directory" )
        Case $hlp
            MsgBox(0,"Help?", "UDF file",GUICtrlRead($Pdtdr))
            GUICtrlSetData ( $Pdt, $INIh )
        Case $LRules
            GUICtrlSetData($Pdt, $Rules)
        CASE $Srules
            iniwrite("guild.ini","personal","#rules", GUICtrlRead($Pdt))
        Case $Addcm; GUILD
            GUICtrlCreateListViewItem( GUICtrlRead( $Adrcm ), $listview)
        Case $Delcm
            _GUICtrlListView_DeleteItemsSelected($Listview)
        Case $CmSv
             if FileExists("guild.ini") then IniDelete("guild.ini","CurrentMembers")
            IniWrite("guild.ini","CurrentMembers","ItemCount",_GUICtrlListView_GetItemCount($listview))
            For $n = 0 To _GUICtrlListView_GetItemCount($listview) - 1
                $Itemtext = _GUICtrlListView_GetItemText($listview, $n)
                For $p = 1 To 5;for each column
                    $Itemtext &= '|' & _GUICtrlListView_GetItemText($listview, $n,$p)
                Next
                IniWrite("Guild.ini","CurrentMembers",$n,$Itemtext)
            Next
        Case $CmLd
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "0", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "1", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "2", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "3", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "4", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "5", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "6", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "7", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "8", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "9", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "10", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "11", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "12", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "13", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "14", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "15", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "16", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "17", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "18", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "19", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "20", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "21", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "22", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "23", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "24", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "25", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "26", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "27", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "28", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "29", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "30", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "31", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "32", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "33", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "34", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "35", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "36", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "37", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "38", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "39", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "40", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "41", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "42", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "43", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "44", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "45", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "46", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "47", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "48", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "49", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "50", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "51", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "52", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "53", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "54", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "55", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "56", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "57", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "58", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "59", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "60", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "61", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "62", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "63", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "64", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "65", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "66", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "67", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "68", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "69", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "70", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "71", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "72", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "73", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "74", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "75", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "76", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "77", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "78", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "79", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "80", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "81", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "82", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "83", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "84", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "85", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "86", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "87", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "88", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "89", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "80", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "91", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "92", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "93", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "94", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "95", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "96", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "97", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "98", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "99", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "100", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "101", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "102", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "103", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "104", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "105", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "106", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "107", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "108", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "109", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "110", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "111", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "112", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "113", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "114", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "115", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "116", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "117", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "118", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "119", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "120", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "121", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "122", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "123", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "124", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "125", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "126", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "127", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "128", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "129", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "130", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "131", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "132", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "133", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "134", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "135", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "136", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "137", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "138", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "139", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "140", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "141", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "142", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "143", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "144", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "145", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "146", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "147", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "148", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "149", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "150", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "151", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "152", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "153", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "154", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "155", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "156", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "157", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "158", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "159", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "160", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "161", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "162", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "163", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "164", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "165", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "166", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "167", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "168", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "169", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "170", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "171", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "172", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "173", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "174", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "175", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "176", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "177", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "178", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "179", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "180", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "181", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "182", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "183", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "184", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "185", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "186", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "187", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "188", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "189", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "180", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "191", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "192", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "193", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "194", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "195", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "196", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "197", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "198", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "199", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "200", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "201", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "202", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "203", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "204", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "205", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "206", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "207", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "208", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "209", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "210", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "211", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "212", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "213", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "214", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "215", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "216", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "217", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "218", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "219", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "220", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "221", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "222", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "223", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "224", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "225", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "226", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "227", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "228", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "229", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "230", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "231", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "232", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "233", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "234", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "235", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "236", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "237", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "238", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "239", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "240", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "241", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "242", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "243", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "244", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "245", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "246", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "247", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "248", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "249", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "250", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "251", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "252", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "253", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "254", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "255", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "256", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "257", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "258", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "259", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "260", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "261", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "262", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "263", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "264", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "265", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "266", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "267", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "268", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "269", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "270", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "271", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "272", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "273", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "274", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "275", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "276", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "277", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "278", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "279", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "280", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "281", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "282", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "283", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "284", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "285", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "286", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "287", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "288", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "289", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "280", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "291", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "292", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "293", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "294", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "295", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "296", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "297", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "298", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "299", "")), $Listview )
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", "300", "")), $Listview )
        Case $Cmupdate
            GUICtrlSetData( $CmMemCount, $Cmmemup)
    
    
    EndSwitch
WEnd
Edited by bob00037

Share this post


Link to post
Share on other sites

I don't think posting the whole script will help.

GUICtrlSetData($USERRead, iniReadSection("guild.ini", "[ACCOUNT]"))

Will not work the way I think you think it should.

IniReadSection returns a 2 dimension Array. The best you'll get from this is that it will return a singe number indicating success or failure in reading that section.

Arrays cannot be sent to Controls in that manner. You would need to get the values out of the Array and into numbers or more likely a string.

The String could be compared in your If statements if it is properly created/formatted so that it could match your Condition.

Is this making sense?

Share this post


Link to post
Share on other sites

I don't think posting the whole script will help.

GUICtrlSetData($USERRead, iniReadSection("guild.ini", "[ACCOUNT]"))

Will not work the way I think you think it should.

IniReadSection returns a 2 dimension Array. The best you'll get from this is that it will return a singe number indicating success or failure in reading that section.

Arrays cannot be sent to Controls in that manner. You would need to get the values out of the Array and into numbers or more likely a string.

The String could be compared in your If statements if it is properly created/formatted so that it could match your Condition.

Is this making sense?

yeah it makes sense.... i didnt know it returned a # statement... so what woul you suggest? should i save it as something like this

(in the ini)

[ACCOUNT]

acc=NAME\PASSWORD

then INIREAD

something like that?

or what would you suggest?

Share this post


Link to post
Share on other sites

If IniReadSection("guild.ini","[PASSWORD]") = ($USER = $UPASS) Then
        MsgBox(0,"","ACCEPTED")
    elseif IniReadSection("guild.ini","[PASSWORD]")Not = ($USER = $UPASS) Then
        MsgBox(0,"","DECLINED")
    EndIf

Nope.

If $MyPassword = $ThisPassword Then
  ; Yay the Password matches
Else
  ; Boo! The password doesn't match
EndIf

Or

If ($MyAccount = $ThisAccount) AND ($MyPassword = $ThisPassword) Then
  ; Yay the Account and Password match
Else
  ; Boo! Either the Account or Password (or both) don't match
EndIf

Share this post


Link to post
Share on other sites

so i take it that wont work since im trying to save the users input into a variable(done) then save into ini(not done) then load from ini whenever the user opens the exe and wants to login(not done) maybe could i try

not this way

If ($MyAccount = $ThisAccount) AND ($MyPassword = $ThisPassword) Then

; Yay the Account and Password match

Else

; Boo! Either the Account or Password (or both) don't match

EndIf

but this way

If ($MyAccount = Iniread("","","acc","")) AND ($MyPassword = Iniread("","","pass","")) Then

; Yay the Account and Password match

Else

; Boo! Either the Account or Password (or both) don't match

EndIf

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Closer. Get the assignments out of the IF statement - if an assignment works, it will return True.

So...

$ThisAccount = Iniread("","","acc","")
$ThisPass = Iniread("","","pass","")

If ($MyAccount = $ThisAccount) AND ($MyPassword = $ThisPass) Then
; Yay the Account and Password match
Else
; Boo! Either the Account or Password (or both) don't match
EndIf

EDIT: Of course, this assumes there's no reason the check for capitalisation, or other error checking. This is just an example of the logic of If statements, really. :mellow:

Edited by nikink

Share this post


Link to post
Share on other sites

#11 ·  Posted (edited)

Closer. Get the assignments out of the IF statement - if an assignment works, it will return True.

So...

$ThisAccount = Iniread("","","acc","")
$ThisPass = Iniread("","","pass","")

If ($MyAccount = $ThisAccount) AND ($MyPassword = $ThisPass) Then
; Yay the Account and Password match
Else
; Boo! Either the Account or Password (or both) don't match
EndIf
hmm stlll doesnt work i did this

Case $Login
        If ($USER = $USER2) AND ($UPASS = $UPASS2) Then
        MsgBox(0,"","ACCEPTED")
        Else
        MsgBox(0,"","DECLINED")
        EndIf

and as far as i can tell yours an mine are the same ( i always get the DeCLINED msg)

EDIT so now i changed the if line like this

If (GUICtrlRead($USER) = GUICtrlRead($USER2)) AND (GUICtrlRead($UPASS) = GUICtrlRead($UPASS2)) Then

but uhhh now i only get the accepted msg

Edited by bob00037

Share this post


Link to post
Share on other sites

If the GuiCtrlRead function is successful, it returns 1

So, assuming all four GuiCtrlReads are successful, your statement becomes:

If (1 = 1) AND (1 = 1) Then

Which will obviously, *always* be true.

Share this post


Link to post
Share on other sites

In this case (no pun)

If ($USER = $USER2) AND ($UPASS = $UPASS2) Then
        MsgBox(0,"","ACCEPTED")
        Else
        MsgBox(0,"","DECLINED")
        EndIf

Try:

If ($USER = $USER2) AND ($UPASS = $UPASS2) Then
        MsgBox(0,"","ACCEPTED")
        Else
        MsgBox(0,"","DECLINED: "& $USER & '<>' & $USER2 & ' and ' & $UPASS & '<>' & $UPASS2)
        EndIf

And see if your variables actually match what you think they should be...

Share this post


Link to post
Share on other sites

#14 ·  Posted (edited)

yeah ok i understan that... but its not doing that... even when i type in the input box

account[bob]

password[the]

OR

[wallawallabooboo]

[cheese]

and in my ini the acc name and pass should be

bbobb

tthhee

(just for testing lol)

every time it says it is true when tey are obviously dfferet names.... any ideas?

EDIT and yes i tried that... im guessing that $UPASS, ad $UPASS2 are not working somehow... ima cya guys tomorrow i gtg

Edited by bob00037

Share this post


Link to post
Share on other sites

#15 ·  Posted (edited)

So when you try:

If ($USER = $USER2) AND ($UPASS = $UPASS2) Then
        MsgBox(0,"","ACCEPTED: [" & $USER & ']<>[' & $USER2 & '] and [' & $UPASS & ']<>[' & $UPASS2 & ']')
        Else
        MsgBox(0,"","DECLINED: [" & $USER & ']<>[' & $USER2 & '] and [' & $UPASS & ']<>[' & $UPASS2 & ']')
        EndIf

What do you see?

And then try again with '==' instead of '=' in the statement.

Edited by nikink

Share this post


Link to post
Share on other sites

Well, first of all, I'd write the .ini file more like this:

[ACCOUNT]
user=bob
pass=ttthhee

And I'd write the checking code like this:

$user2=IniRead("guild.ini","ACCOUNT","user","")
$pass2=IniRead("guild.ini","ACCOUNT","pass","")

If (StringCompare($user2,GUICtrlRead($USER),2)==0) And (StringCompare($pass2,GUICtrlRead($PASS),2)==0) Then
    MsgBox(16,"YAY","Accepted!")
Else
    MsgBox(16,"Nope.","Phail.")
EndIf

Share this post


Link to post
Share on other sites

#17 ·  Posted (edited)

#cs ----------------------------------------------------------------------------

 AutoIt Version: 3.2.12.0
 Author:   BOB

 Script Function: GUI information organizer
    Template AutoIt script.

#ce ----------------------------------------------------------------------------
;This is made by BOB
;(bob00037 on the autoitforums)
; This script Is An Information Organizer For The Not Very Widely Known MMORPG Endless Online;
#include <GuiConstantsEx.au3>
#Include <GuiListView.au3>
#include <ButtonConstants.au3>
#include <GuiConstants.au3>
#include <Editconstants.au3>

#NoTrayIcon
DirCreate("C:\GUILDINFO")
If FileExists("C:\guildinfo\Guild.ini") Then
    
Else
    MsgBox(64,"no", "Does NOT exists")
    IniWrite("C:\GUILDINFO\Guild.ini", "Help", "#", "*****this is a help guide on the controlls of GI******                                                                                                                                                                                      #[For Each editbox hitting ENTER will call a function]                                            #[top right [X]=exit\OR\ ALT+f4=exit]                                                                         #[CANNOT edit the list box BUT just add a member then Delete it when you need to edit it, then add again]                                                                                        #[DO NOT change the directory outputs (i have not designed it to be user friendly)]")
    IniWrite("C:\guildinfo\Guild.ini", "Personal", "#Text", "0")
    IniWrite("C:\guildinfo\Guild.ini", "CurrentMembers", "#Current", "0")
    IniWrite("C:\guildinfo\Guild.ini", "Personal", "#Rules", "0")
    IniWrite("C:\guildinfo\Guild.ini", "ACCOUNT", "#1", "0")
    MsgBox(64,"NOW", "it exists")
    
    
EndIf
#region; GLOBAL VARS
#Region; GI GUI
Global $GUI;GUI

Global $Pdt, $PSv, $Ldbtn, $Pdtdr, $INIp, $OpnDrb, $OpnDrI, $hlp, $INIh, $Rules, $Lrules, $SRules

Global $Delcm, $AdRcm, $Adrcm2, $Addcm, $listview, $Listview2, $INIcm, $Cmdt, $Cmld, $listedit, $CmSv, $Cmsv2, $CmLd, $CmLd2, $Cmcount, $Cmmemup, $CmMemCount, $Cmupdate, $noitemsm

Global $USERname, $USERL
#EndRegion

#Region;ACC GUI
Global $ACC
Global $USER, $UPASS, $USERp, $USERn, $USERp2, $USERn2, $REGacc, $REGpass, $cancelacc, $USERRead
#EndRegion

#Region; REG GUI
Global $REG; GUI
#EndRegion
#EndRegion

$ACC = GUICreate("LOGIN\REGISTER",200,100)
$USER = GUICtrlCreateInput("USERNAME",0,0,200,20)
$UPASS = GuictrlcreateInput("PASSWORD",0,20,200,20,$ES_PASSWORD)
$Login = GUICtrlCreateButton("LOGIN", 0,40,200,20)
$REGbtn = GUICtrlCreateButton("REGISTER",0,60,200,20)
$Cancelacc = GUICtrlCreateButton("CANCEL",0,80,200,20)
GUICtrlSetData($USERRead, iniReadSection("guild.ini", "[ACCOUNT]"))
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
           Exit
    Case $cancelacc
        AutoItSetOption ( "GUICloseOnESC" )
        Send("{ESC}")
    Case $REGbtn
        GUIDelete($ACC)
        GUICreate($REG,200,60)
        GUISetState(@SW_SHOW)
    Case $Login
$inipass = Inireadsection ("guild.ini",guictrlread($user))
    If $inipass[1][0] = guictrlread($UPASS) Then
        MsgBox(0,"","ACCEPTED")
    else
        MsgBox(0,"","DECLINED")
    EndIf
    #region; GUI
$GUI = GuiCreate("GI    (Guild Information)   VERSION 0.00005", 400, 400)
GuiSetIcon(@SystemDir & "\mspaint.exe", 0)
GUIDelete($ACC)
#EndRegion

    #Region; PIC
GuiCtrlCreatePic("guild.bmp",0,0, 399,79)
#EndRegion

    #Region; Personal TAB
GuiCtrlCreateTab(0, 80)
GuiCtrlCreateTabItem("Personal")


_vars()
Func _vars()

    $PSv = GuiCtrlCreateButton("SAVE", 0, 360, 400, 20); The "save" button on the personal tab
    $OpnDrB = GuiCtrlCreateButton("OPEN DIR", 300, 315, 100, 20);  The "OPEN" button on the personal tab
    $Ldbtn = GUICtrlCreateButton("LOAD", 300, 335,100,20); The "load" button on the personal tab
    $hlp = GUICtrlCreateButton("HELP", 200, 380, 200,20); HELP button for the help file
    $Pdtdr = GUICtrlCreateInput("C:\guildinfo\guild.ini", 0, 335, 300, 20); The DIRECTORY input for LOAD on the personal tab
    $Pdt = GUICtrlCreateEdit(" ", 0, 130, 400, 175, $ES_MULTILINE);The BIG input on the personal tab
    $OpnDrI = GUICtrlCreateInput("C:\guildinfo", 0, 315, 300, 20); The DIRECTORY input for OPEN DIR on the personal tab
    $INIp = IniRead("Guild.ini", "personal", "#text", ""); The [personal] .ini text readback call
    $INIh = IniRead("Guild.ini", "Help", "#", ""); The [help] .ini text readback call
    $Lrules = GUICtrlCreateButton("LOAD RULES",5,105,195,20)
    $Srules = GUICtrlCreateButton("SAVE RULES",202,105,195,20)
    $Rules = Iniread("guild.ini", "Personal", "#Rules","")
    
EndFunc

; DATE
#Region
GuiCtrlCreateDate("", 0, 380, 200, 20)
#EndRegion
#EndRegion


    #Region;Guild TAB
GuiCtrlCreateTab(0, 80)
GuiCtrlCreateTabItem("Guild")

#Region; DATE
GuiCtrlCreateDate("", 0, 380, 200, 20)
#EndRegion


#Region
 _vars2()
Func _vars2()
    GUICtrlSetState(-1, $GUI_DROPACCEPTED); to allow drag and dropping
    $CmMemCount = GUICtrlCreateEdit("0", 0, 130, 224, 20)
    $Adrcm = GuiCtrlCreateInput("Name|0|0|0|0", 0, 110, 224, 20)
    $Delcm = GuiCtrlCreateButton("Delete", 306, 110, 80, 20)
    $Addcm = GuiCtrlCreateButton("Add ", 226, 110, 80, 20)
    $listview = GuiCtrlCreateListView("Member|Rank|Warnings|Test Taken|Gone", 0, 150, 399, 200, BitOR($LVS_EDITLABELS, $LVS_EX_GRIDLINES))
    $Listview2 = GUICtrlRead($listview)
    $Adrcm2 = GUICtrlRead( $Adrcm )
    $CmSv = GUICtrlCreateButton("SAVE", 0, 360, 197, 18)
    $Cmld = GUICtrlCreateButton("LOAD", 198, 360, 200, 18)
    $Cmupdate = GUICtrlCreateButton("UPDATE", 226,130,160,20)
    $CMmemup = IniRead("guild.ini", "CurrentMembers", "Itemcount", "default")

EndFunc
#EndRegion
#EndRegion

    #Region; USER TAB
    GUICtrlCreateTab(0, 80)
    GUICtrlCreateTabItem("USER")
    GUISetState(@SW_SHOW)
        $USERL = GUICtrlCreateLabel("Welcome,",150,85,250,20)
        $USERname = GUICtrlCreateLabel(Guictrlread($USER), 200,85,250,20)
    AutoItSetOption ("GUICloseOnESC" )
    #EndRegion
        Case $PSv; PERSONAL
            Iniwrite("guild.ini", "personal", "#text", GUICtrlRead($Pdt))
        Case $Ldbtn
        GUICtrlSetData ( $Pdt, $INIp )
        Case $OpnDrB
            MsgBox( 0, "OPEN?", "UDF Directory" )
        Case $hlp
            MsgBox(0,"Help?", "UDF file",GUICtrlRead($Pdtdr))
            GUICtrlSetData ( $Pdt, $INIh )
        Case $LRules
            GUICtrlSetData($Pdt, $Rules)
        CASE $Srules
            iniwrite("guild.ini","personal","#rules", GUICtrlRead($Pdt))
        Case $Addcm; GUILD
            GUICtrlCreateListViewItem( GUICtrlRead( $Adrcm ), $listview)
        Case $Delcm
            _GUICtrlListView_DeleteItemsSelected($Listview)
        Case $CmSv
             if FileExists("guild.ini") then IniDelete("guild.ini","CurrentMembers")
            IniWrite("guild.ini","CurrentMembers","ItemCount",_GUICtrlListView_GetItemCount($listview))
            For $n = 0 To _GUICtrlListView_GetItemCount($listview) - 1
                $Itemtext = _GUICtrlListView_GetItemText($listview, $n)
                For $p = 1 To 5;for each column
                    $Itemtext &= '|' & _GUICtrlListView_GetItemText($listview, $n,$p)
                Next
                IniWrite("Guild.ini","CurrentMembers",$n,$Itemtext)
            Next
        Case $CmLd
For $i = 0 to 300
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", $i, "")), $Listview )
        Case $Cmupdate
            GUICtrlSetData( $CmMemCount, $Cmmemup)
    
    
    EndSwitch
WEnd

Ini file

Username

password = I usually put permissions here.

Notice I cut about 300 lines out of there.

Edited by youknowwho4eva

Giggity

Share this post


Link to post
Share on other sites

#18 ·  Posted (edited)

So when you try:

CODE

If ($USER = $USER2) AND ($UPASS = $UPASS2) Then

MsgBox(0,"","ACCEPTED: [" & $USER & ']<>[' & $USER2 & '] and [' & $UPASS & ']<>[' & $UPASS2 & ']')

Else

MsgBox(0,"","DECLINED: [" & $USER & ']<>[' & $USER2 & '] and [' & $UPASS & ']<>[' & $UPASS2 & ']')

EndIf

What do you see?

And then try again with '==' instead of '=' in the statement.

i think... i see uhh

DECLINED <>3, and <>4

or soethin like that

and uhhh

Well, first of all, I'd write the .ini file more like this:

CODE

[ACCOUNT]

user=bob

pass=ttthhee

And I'd write the checking code like this:

CODE

$user2=IniRead("guild.ini","ACCOUNT","user","")

$pass2=IniRead("guild.ini","ACCOUNT","pass","")

If (StringCompare($user2,GUICtrlRead($USER),2)==0) And (StringCompare($pass2,GUICtrlRead($PASS),2)==0) Then

MsgBox(16,"YAY","Accepted!")

Else

MsgBox(16,"Nope.","Phail.")

EndIf

i tryed that it still gives me the second msgbox EVERY time... and youknowho4eva ill give yours a shot (PS i appreciate your effort in rewriting my script lol that 600 line monster was a little tricky)

Edited by bob00037

Share this post


Link to post
Share on other sites

holy crap.... it worked exactly the way i wanted it to... thanks youknowwho4eva WOW thanks so much :mellow: although i had to edit something this is it now (NOT Very MUCH EDITED)

#cs ----------------------------------------------------------------------------

AutoIt Version: 3.2.12.0
Author:   BOB

Script Function: GUI information organizer
    Template AutoIt script.

#ce ----------------------------------------------------------------------------
;This is made by BOB
;(bob00037 on the autoitforums)
; This script Is An Information Organizer For The Not Very Widely Known MMORPG Endless Online;
#include <GuiConstantsEx.au3>
#Include <GuiListView.au3>
#include <ButtonConstants.au3>
#include <GuiConstants.au3>
#include <Editconstants.au3>

#NoTrayIcon
DirCreate("C:\GUILDINFO")
If FileExists("C:\guildinfo\Guild.ini") Then
    
Else
    MsgBox(64,"no", "Does NOT exists")
    IniWrite("C:\GUILDINFO\Guild.ini", "Help", "#", "*****this is a help guide on the controlls of GI******                                                                                                                                                                                      #[For Each editbox hitting ENTER will call a function]                                            #[top right [X]=exit\OR\ ALT+f4=exit]                                                                         #[CANNOT edit the list box BUT just add a member then Delete it when you need to edit it, then add again]                                                                                        #[DO NOT change the directory outputs (i have not designed it to be user friendly)]")
    IniWrite("C:\guildinfo\Guild.ini", "Personal", "#Text", "0")
    IniWrite("C:\guildinfo\Guild.ini", "CurrentMembers", "#Current", "0")
    IniWrite("C:\guildinfo\Guild.ini", "Personal", "#Rules", "0")
    IniWrite("C:\guildinfo\Guild.ini", "ACCOUNT", "#1", "0")
    MsgBox(64,"NOW", "it exists")
    
    
EndIf
#region; GLOBAL VARS
#Region; GI GUI
Global $GUI;GUI

Global $Pdt, $PSv, $Ldbtn, $Pdtdr, $INIp, $OpnDrb, $OpnDrI, $hlp, $INIh, $Rules, $Lrules, $SRules

Global $Delcm, $AdRcm, $Adrcm2, $Addcm, $listview, $Listview2, $INIcm, $Cmdt, $Cmld, $listedit, $CmSv, $Cmsv2, $CmLd, $CmLd2, $Cmcount, $Cmmemup, $CmMemCount, $Cmupdate, $noitemsm

Global $USERname, $USERL
#EndRegion

#Region;ACC GUI
Global $ACC
Global $USER, $UPASS, $USERp, $USERn, $USERp2, $USERn2, $REGacc, $REGpass, $cancelacc, $USERRead
#EndRegion

#Region; REG GUI
Global $REG; GUI
#EndRegion
#EndRegion

$ACC = GUICreate("LOGIN\REGISTER",200,100)
$USER = GUICtrlCreateInput("USERNAME",0,0,200,20)
$UPASS = GuictrlcreateInput("PASSWORD",0,20,200,20,$ES_PASSWORD)
$Login = GUICtrlCreateButton("LOGIN", 0,40,200,20)
$REGbtn = GUICtrlCreateButton("REGISTER",0,60,200,20)
$Cancelacc = GUICtrlCreateButton("CANCEL",0,80,200,20)
GUICtrlSetData($USERRead, iniReadSection("guild.ini", "[ACCOUNT]"))
GUISetState(@SW_SHOW)

While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
           Exit
        Case $cancelacc
        AutoItSetOption ( "GUICloseOnESC" )
        Send("{ESC}")
        Case $REGbtn
        GUIDelete($ACC)
        GUICreate($REG,200,60)
        GUISetState(@SW_SHOW)
        Case $Login
$inipass = Iniread("guild.ini","ACCOUNT","ACC","")
    If $inipass = guictrlread($UPASS) Then
        MsgBox(0,"","ACCEPTED")
    else
        MsgBox(0,"","DECLINED")
    EndIf
    #region; GUI
$GUI = GuiCreate("GI    (Guild Information)   VERSION 0.00005", 400, 400)
GuiSetIcon(@SystemDir & "\mspaint.exe", 0)
GUIDelete($ACC)
#EndRegion

    #Region; PIC
GuiCtrlCreatePic("guild.bmp",0,0, 399,79)
#EndRegion

    #Region; Personal TAB
GuiCtrlCreateTab(0, 80)
GuiCtrlCreateTabItem("Personal")


_vars()
Func _vars()

    $PSv = GuiCtrlCreateButton("SAVE", 0, 360, 400, 20); The "save" button on the personal tab
    $OpnDrB = GuiCtrlCreateButton("OPEN DIR", 300, 315, 100, 20);  The "OPEN" button on the personal tab
    $Ldbtn = GUICtrlCreateButton("LOAD", 300, 335,100,20); The "load" button on the personal tab
    $hlp = GUICtrlCreateButton("HELP", 200, 380, 200,20); HELP button for the help file
    $Pdtdr = GUICtrlCreateInput("C:\guildinfo\guild.ini", 0, 335, 300, 20); The DIRECTORY input for LOAD on the personal tab
    $Pdt = GUICtrlCreateEdit(" ", 0, 130, 400, 175, $ES_MULTILINE);The BIG input on the personal tab
    $OpnDrI = GUICtrlCreateInput("C:\guildinfo", 0, 315, 300, 20); The DIRECTORY input for OPEN DIR on the personal tab
    $INIp = IniRead("Guild.ini", "personal", "#text", ""); The [personal] .ini text readback call
    $INIh = IniRead("Guild.ini", "Help", "#", ""); The [help] .ini text readback call
    $Lrules = GUICtrlCreateButton("LOAD RULES",5,105,195,20)
    $Srules = GUICtrlCreateButton("SAVE RULES",202,105,195,20)
    $Rules = Iniread("guild.ini", "Personal", "#Rules","")
    
EndFunc

; DATE
#Region
GuiCtrlCreateDate("", 0, 380, 200, 20)
#EndRegion
#EndRegion


    #Region;Guild TAB
GuiCtrlCreateTab(0, 80)
GuiCtrlCreateTabItem("Guild")

#Region; DATE
GuiCtrlCreateDate("", 0, 380, 200, 20)
#EndRegion


#Region
_vars2()
Func _vars2()
    GUICtrlSetState(-1, $GUI_DROPACCEPTED); to allow drag and dropping
    $CmMemCount = GUICtrlCreateEdit("0", 0, 130, 224, 20)
    $Adrcm = GuiCtrlCreateInput("Name|0|0|0|0", 0, 110, 224, 20)
    $Delcm = GuiCtrlCreateButton("Delete", 306, 110, 80, 20)
    $Addcm = GuiCtrlCreateButton("Add ", 226, 110, 80, 20)
    $listview = GuiCtrlCreateListView("Member|Rank|Warnings|Test Taken|Gone", 0, 150, 399, 200, BitOR($LVS_EDITLABELS, $LVS_EX_GRIDLINES))
    $Listview2 = GUICtrlRead($listview)
    $Adrcm2 = GUICtrlRead( $Adrcm )
    $CmSv = GUICtrlCreateButton("SAVE", 0, 360, 197, 18)
    $Cmld = GUICtrlCreateButton("LOAD", 198, 360, 200, 18)
    $Cmupdate = GUICtrlCreateButton("UPDATE", 226,130,160,20)
    $CMmemup = IniRead("guild.ini", "CurrentMembers", "Itemcount", "default")

EndFunc
#EndRegion
#EndRegion

    #Region; USER TAB
    GUICtrlCreateTab(0, 80)
    GUICtrlCreateTabItem("USER")
    GUISetState(@SW_SHOW)
        $USERL = GUICtrlCreateLabel("Welcome,",150,85,250,20)
        $USERname = GUICtrlCreateLabel(Guictrlread($USER), 200,85,250,20)
    AutoItSetOption ("GUICloseOnESC" )
    #EndRegion
        Case $PSv; PERSONAL
            Iniwrite("guild.ini", "personal", "#text", GUICtrlRead($Pdt))
        Case $Ldbtn
        GUICtrlSetData ( $Pdt, $INIp )
        Case $OpnDrB
            MsgBox( 0, "OPEN?", "UDF Directory" )
        Case $hlp
            MsgBox(0,"Help?", "UDF file",GUICtrlRead($Pdtdr))
            GUICtrlSetData ( $Pdt, $INIh )
        Case $LRules
            GUICtrlSetData($Pdt, $Rules)
        CASE $Srules
            iniwrite("guild.ini","personal","#rules", GUICtrlRead($Pdt))
        Case $Addcm; GUILD
            GUICtrlCreateListViewItem( GUICtrlRead( $Adrcm ), $listview)
        Case $Delcm
            _GUICtrlListView_DeleteItemsSelected($Listview)
        Case $CmSv
             if FileExists("guild.ini") then IniDelete("guild.ini","CurrentMembers")
            IniWrite("guild.ini","CurrentMembers","ItemCount",_GUICtrlListView_GetItemCount($listview))
            For $n = 0 To _GUICtrlListView_GetItemCount($listview) - 1
                $Itemtext = _GUICtrlListView_GetItemText($listview, $n)
                For $p = 1 To 5;for each column
                    $Itemtext &= '|' & _GUICtrlListView_GetItemText($listview, $n,$p)
                Next
                IniWrite("Guild.ini","CurrentMembers",$n,$Itemtext)
            Next
        Case $CmLd
        For $i = 0 to 300
            GUICtrlCreateListViewItem((INIread("guild.ini", "CurrentMembers", $i, "")), $Listview )
        Next
    EndSwitch
WEnd

WOW THANK YOU So MUCH... and :((i apreciate every1 else who tried to help my situation :))

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