Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 15:13

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

Advertisement



2 Fragen

Discussion on 2 Fragen within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
2 Fragen

Hi
Ich hab mal wieder 2 Fragen:
1. Ich habe für einen Freund ein Programm erstellt, und bei mir läuft es auch super und alles, aber wenn ich ihm das Programm schicke und er es starten will, kommt: Keine zulässige Win32 Anwendung.
Ich hab ihm die 32Bit und 64Bit Version geschickt. Beides ging nicht.

2. Ich will einen Updater für meine Scripts machen aber der will nicht so wie ich will, dass er soll :P
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

Global $iSize$geladen$fortschritt
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Updater"37765192124)
$Progress1 GUICtrlCreateProgress(83235325)
$Label2 GUICtrlCreateLabel(@InetGetBytesRead&" von "&$iSize&" KB geladen"8835517)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

$iSize InetGetSize("http://url.de/script.exe")
InetGet("http://url.de/script.exe")
$fortschritt 100* @InetGetBytesRead $iSize
While @InetGetActive
    $fortschritt 
100* @InetGetBytesRead $iSize
    GUICtrlSetData
($Progress1,$fortschritt)
    
GUICtrlSetData($Label2,@InetGetBytesRead&" von "&$iSize&" KB geladen")
WEnd

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
Ich hoffe, dass ihr mir helfen könnt.

mfg poll7979
.Resistance is offline  
Old 02/22/2011, 18:02   #2
 
derpo's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 344
Received Thanks: 151
1. Das Problem kenne ich nicht.
Du könntest es aber bei Tools -> Compile in eine .a3x speichern lassen, aber dann braucht derjenige AutoIt.

2. Was genau ist das Problem beim Updater?
derpo is offline  
Old 02/22/2011, 18:39   #3
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
1. Das ist ehr blöd^^ da schau ich mal wie es geht^^

2. Er fängt nicht mal an, die Datei runter zu laden.
Wenn der Updater soweit läuft, will ich noch einen Versionscheck einbauen aber das ist zweitrangig und das schaff ich dann
Aber er lädt die Datei einfach nicht runter
.Resistance is offline  
Old 02/22/2011, 19:48   #4
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Ich denke dass man die file nicht so einfach von solchen seiten runterladen kann, da es kein richtigen direkt link gibt. Man muss auf den seiten ja auch immer Captcha etc eingebenn
BlackHybrid is offline  
Old 02/22/2011, 19:56   #5
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
Ich wills doch auch auf einen kostenlosen Webspace laden. Da geht es einfach so!
.Resistance is offline  
Old 02/22/2011, 20:17   #6
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Dann kann ich dir auch net helfen weil bei mir immer InetGet bisher immer funktioniert hat.
Außerdem würde ich mal AutoIt neu runterladen weil @InetGetBytesRead schon seit länger als einem Jahr abgeschafft wurde.
BlackHybrid is offline  
Old 02/22/2011, 20:24   #7
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
Achso das könnte sein^^
Wie könnte ich das dann machen?
InetGet geht sonst bei mir auch.
Ich will aber den Fortschritt vom Download einmal in der ProgressBar darstellen und einmal noch die geladenen KB anzeigen lassen
.Resistance is offline  
Old 02/22/2011, 20:37   #8
 
derpo's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 344
Received Thanks: 151
mit _INetGetSource und #include <INet.au3>
Bei _INetGetSource musst du noch manuell die Datei speichern, die Daten werden von der Funktion zurückgegeben.
derpo is offline  
Old 02/22/2011, 20:44   #9
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
Wie kann ich bei _INerGetSource den Fortschritt rausfinden, und wie viel er schon geladen hat, dass ich es schreiben lassen kann und die ProgressBar funktioniert?
.Resistance is offline  
Old 02/22/2011, 21:20   #10
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Hier mal ein zusammen gesuchter Teil aus meinem Patcher


PHP Code:
$INetGroese InetGetSize("URL")
$CompGroese FileGetSize("Pfad")
If 
$INetGroese <> $CompGroese Then

    $InetGet 
InetGet("URL""Pfad"11)
    While 
1
        $Groese 
FileGetSize("Hier Pfad von $InetGet")
        
$Prozent Round(InetGetInfo($InetGet) / $INetGroese 100)
        
GUICtrlSetData($Progress1$Prozent)
        If 
$Groese $INetGroese Then
            GUICtrlSetData
($Progress1100)
            
ExitLoop
        
EndIf
    
WEnd
EndIf 
BlackHybrid is offline  
Old 02/22/2011, 21:52   #11
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
Habs so probiert, aber es geht einfach nicht-.-^^
.Resistance is offline  
Old 02/22/2011, 21:54   #12
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Der Download oder was? Versuch mal bei InetGet den Pfand anzugeben wos hin soll. Heißt deine File die du runterlädst vllt genaus so wie dein programm?
BlackHybrid is offline  
Thanks
1 User
Old 02/22/2011, 22:02   #13
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
Der Download geht
Aber das Label, das anzeigt "... von ... KB geladen" und die Progressbar funktionieren noch nicht
.Resistance is offline  
Old 02/22/2011, 22:14   #14
 
BlackHybrid's Avatar
 
elite*gold: 52
The Black Market: 101/0/0
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
Poste nochmal dein momentanes script
BlackHybrid is offline  
Old 02/22/2011, 22:16   #15
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
PHP Code:
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#include <INet.au3>

Global $iSize
Global $geladen 0
$iSize 
Round(InetGetSize("http://***") / 1000)
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Updater"37765192124)
$Progress1 GUICtrlCreateProgress(83235325)
$Label2 GUICtrlCreateLabel($geladen " KB von " $iSize " KB geladen"8835517)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

$inetget InetGet("http://***", @ScriptDir "\***.exe",1)
While 
1
    $geladen 
Round(InetGetInfo($inetget) / 1000)
    
$lSize Round(FileGetSize("***.exe") / 1000)
    
$prozent Round(InetGetInfo($inetget) / $iSize 100)
    
GUICtrlSetData($Progress1,$prozent)
    
GUICtrlSetData($Label2$geladen " KB von " $iSize " KB geladen")
    If 
$lSize $iSize Then
        GUICtrlSetData
($Progress1,100)
        
GUICtrlSetData($Label2$lSize " KB von " $iSize " KB geladen")
        
ExitLoop
    
EndIf
WEnd

While 1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit

    EndSwitch
WEnd 
.Resistance is offline  
Reply


Similar Threads Similar Threads
xBox 360 .. Fragen Fragen und nochmal Fragen !
01/05/2011 - Consoles - 12 Replies
^Tach elitepvpers.... Also ich hab ne xBox 360 (was glaube ich viele haben^^) 1.Frage : Wie findet ihr (die mit der xBox306) das neue Uptade 2.Frage : Was ist euer lieblingsspiel??? 1.Antwort^^: Update sieht eig. ganz gut aus ...Trotzdem is das orginal am besten ^^
[Fragen]Fragen über Crossfire von Anfänger-Pro's
12/14/2010 - CrossFire - 4 Replies
In diesem Thread könnt ihr fragen stellen(auch fragen die manche dumm finden):cool:



All times are GMT +1. The time now is 15:13.


Powered by vBulletin®
Copyright ©2000 - 2024, 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 ©2024 elitepvpers All Rights Reserved.