Jump to content

Recommended Posts

Posted (edited)

$checklue =IniRead("chat.log","Chat","Text2","")
    $check2lue =IniRead("chat.log","Chat","Text","")
        $secmsg = $check2lue
While 1
AdlibEnable("testiy",500)   
    $nMsg = GUIGetMsg()
    Switch $nMsg
        Case $GUI_EVENT_CLOSE
            Exit
            
        Case $Button1 
            
            Connect()
    
    Case $Button2 
        lue()

        case $Button4
            Exit

    EndSwitch
WEnd

Func Connect()
        IniWrite("chat.log","Chat","Text","Testi")
IniWrite("chat.log","Chat","Text2","Testi")
    While 1
    lue()
    WEnd
    EndFunc
    
Func testiy()
    GUICtrlSetData($Edit1,$secmsg&@CRLF,"")
    EndFunc
    
    Func lue()
        
                
            

        if $checklue =  $check2lue Then
IniWrite("chat.log","Chat","Text2","changes")
            Else
            
        
            
EndIf
    
    Sleep(49)
        

EndFunc

Why this script not work? i want it reapeat text to my gui edit from .log if "text2" is NOT equal of "text", but it just add "testi" 1 time and then nothing, or if i try "text"= testi and "text2" = testi its type "Test" on gui edit like i want it.

if $checklue =  $check2lue Then
IniWrite("chat.log","Chat","Text2","Te")
            Else
            
        
            
EndIf

that code get same text loop off, because i dont want it type same text many times, just one.

Edited by fataly

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
×
×
  • Create New...