CHAT FTP 2.0

« Older   Newer »
  Share  
-Anubi-
icon10  CAT_IMG Posted on 10/3/2010, 16:50     +1   -1




SPOILER (click to view)
#Include <ftpex.au3>
#Include <array.au3>
#include <buttonconstants.au3>
#include <editconstants.au3>
#include <guiedit.au3>
#include <guiconstantsex.au3>
#include <windowsconstants.au3>


$server = ''
$username = ''
$pass = ''
$usernameS = InputBox ( "!", "Write the name of the user to connect", "" )
$Open = _FTP_Open('MyFTP Control')
$Conn = _FTP_Connect($Open, $server, $username, $pass)


#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("CHAT FTP 2.0", 633, 447, 192, 124)
$Button1 = GUICtrlCreateButton("Send", 16, 336, 113, 33, $WS_GROUP)
$msg = GUICtrlCreateEdit("", 8, 9, 615, 313)
$edit = GUICtrlCreateEdit("", 136, 336, 489, 105)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
_FTP_FileGet ( $Conn, $usernameS, @UserProfileDir & "\bb.log" )
$read = FileRead ( @UserProfileDir & "\bb.log" )
if NOT $read = "" Then
_GUICtrlEdit_AppendText ($msg, $usernameS & " Write : " & @CRLF & $read & @CRLF)
_FTP_FileDelete ( $Conn, $usernameS )
FileDelete ( @UserProfileDir & "\bb.log" )
EndIf
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
$text = _GUICtrlEdit_GetText ($edit)
_GUICtrlEdit_AppendText ( $msg, @UserName & " Write: " & @CRLF & $text & @CRLF )
FileWrite ( @UserProfileDir & "\" & @UserName, $text )
_FTP_FilePut ( $Conn, @UserProfileDir & "\" & @UserName, @UserName )
FileDelete ( @UserProfileDir & "\" & @UserName )
EndSwitch
WEnd


Chat ftp, si può anche scegliere l'username con cui chattare ( è la versione Beta quindi scusate per la Koda :( )
 
Top
-Anubi-
CAT_IMG Posted on 10/3/2010, 17:19     +1   -1




Anubi ha dimenticato di aggiungere che non necessita di server - client, ma è come MSN
 
Top
Lahace
CAT_IMG Posted on 10/3/2010, 17:25     +1   -1




a quando una chat tramite connessione diretta? xD
comunque non male!
 
Top
-Anubi-
CAT_IMG Posted on 10/3/2010, 17:26     +1   -1




Con fastweb sarebbe inutile...xD
 
Top
-Anubi-
CAT_IMG Posted on 10/3/2010, 17:28     +1   -1




Ecco il file compilato per chi la vuole provare:

( cioè nessuno a quanto pare xD )

Edited by -Anubi- - 10/3/2010, 20:11

Download attachment
CHATFTP.zip ( Number of downloads: 25 )

 
Top
CAT_IMG Posted on 13/3/2010, 18:45     +1   -1

So creare belle gui

Group:
Bannato
Posts:
555
Reputazione:
0

Status:


al posto di
**username** write
metti
**username** wrote
cioè al past simple, suvvia un po' di inglese!
 
Top
-Anubi-
CAT_IMG Posted on 14/3/2010, 07:34     +1   -1




Quello è per riconoscere subito se mi rubano il programma , grazie di aver svelato l'inghippo xD
 
Top
6 replies since 10/3/2010, 16:50   265 views
  Share