Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 19:16

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Upload Problem

Discussion on Upload Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 40
Received Thanks: 1
Upload Problem

Hallo,
hier soll eine Datei hochgeladen werden,
aber es funktioniert nicht.
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#include <ftp.au3>
#include <FTPEx.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("OT - Witze Konto"524305229124)
GUISetIcon("C:\Dokumente und Einstellungen\Stephie\Desktop\0d6bce8f-72b5-40a3-b00f-6980b673fa91-16.ico", -1)
$Input1 GUICtrlCreateInput("Kontonummer eingeben"242424121)
$Input2 GUICtrlCreateInput("Aktueller Kontostand"245624121)
$Button1 GUICtrlCreateButton("Kontostand anzeigen"2722423357)
$Group1 GUICtrlCreateGroup("Aktuelles"16849797)
GUICtrlCreateGroup("", -99, -9911)
$Input3 GUICtrlCreateInput("Neuen Stand eingeben"2413624121)
$Button2 GUICtrlCreateButton("Kontostand aktualisieren"27213623357)
$Group2 GUICtrlCreateGroup("Neues"1611249797)
GUICtrlCreateGroup("", -99, -9911)
$Button3 GUICtrlCreateButton("Update"1622411365)
$Button4 GUICtrlCreateButton("Beenden"14422418565)
$Button5 GUICtrlCreateButton("About"34422413765)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $Button1
            auslesen
()
        Case 
$Button2
    $schreiben 
IniWrite("1.ini"guictrlread($Input1), "Anzahl"guictrlread($Input3))
    
Sleep(2000)
$serv "****************"
$user "****************"
$pass "****************"

$FTP _FTPOpen("AutoIt v3")
$FTPServer _FTPConnect($FTP,$serv,$user,$pass,1)

ProgressOn("Upload","Uploading file [Cancel with F8]")
$x _FTP_UploadProgress($FTPServer"1.ini"'1.ini'"_UpdateParts")
ProgressSet(100,"Return: " $x & @CRLF "Error: " & @error)
Sleep(2000)
ProgressOff()

_FTPClose($FTPServer)
_FTPClose($FTP)

Func _UpdateParts($percent)
ProgressSet($percent,$percent &"%")
If 
_IsPressed("77"Then Return 0
Return bei 1 Fortsetzten
Endfunc
        
Case $Button3
            Run
("update.exe")
        Case 
$Button4
            
Exit
        Case 
$Button5
            Run
("about.exe")
        Case 
$GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd

Func auslesen
()
    
HttpSetUserAgent("Mozilla/5.0 (Windows; U; Windows NT 18.0; de; rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15 ( .NET CLR 3.5.30729; .NET4.0E)")
    
InetGet("http://sanctuaryfs.***********/1.ini",@ScriptDir &  "\1.ini"1,1)
    
Sleep(3000)
    
$speicher IniRead("1.ini"guictrlread($Input1) , "Anzahl","")
    
GUICtrlSetData($Input2$speicher)
EndFunc 
marioplayer95 is offline  
Reply


Similar Threads Similar Threads
Kleines Problem Mit Upload script
01/27/2011 - General Coding - 2 Replies
Moin, da ich an meiner HP bastel und u.a. Image Upload anbiete Wollt ich machen,das wenn der upload erfolgreich war der Link in einem input feld steht, jedoch ist jeder versuch von mir gescheiter in diesem PHP Code das einzubauen.. Bitte Um hilfe:) echo "Sie Können es nun unter Folgendem Link Aufrufen http://mydomain.org/bilderupload/".$_FILES. ";
Youtube Upload Problem?
10/19/2010 - Off Topic - 0 Replies
Hi Leute, Ich habe gerade ein Video auf Youtube hochgeladen. Das ganze hat 4 Stunden in Anspruch genommen und als es dann fertig war, stand da irgendwas von einem Fehler. Dann hab ich auf "Meine Videos" geklickt und dort stand: "Fehlgeschlagen (Upload abgebrochen)". Obwohl ich den Upload nicht abgebrochen habe. Ich habe das Video im .wmv Format gespeichert und es vorher mit Sony Vegas editiert. Kennt ihr dieses Problem vlt und wisst eine Lösung. Ich hoffe ich muss das Video nicht...
FTP Upload FileZilla Problem!!!
02/14/2010 - Metin2 Private Server - 0 Replies
Hi,ich versuche gerade metinen Clienten in funpic mit servertyp ftp hochzuladen. 3 Probleme: 1.Ich lade nur mit 30 KB/s 2.Wenn ein Lied aus BGM ordner fertig ist fängt es nochmal von vorne an. 3.Ein paar Lieder aus BGM geehen nur bis 81% oder so und dann steht oben "Tansfer aborted.Disk quota exceeded". Kann mir jemand helfen?



All times are GMT +1. The time now is 19:16.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.