Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 17:35

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

Advertisement



[Prozessleiste]

Discussion on [Prozessleiste] within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
DreamStyler's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 96
Received Thanks: 42
[Prozessleiste]

Heyho epvpers!

Ich war grade dabei und hab mir ein Script für den Test der Internetverbindung geschrieben, weil mir langweilig war. Klappt auch, nur das mit der Prozessleiste will iwie nicht. Schon ziemlich scheiße..^^ naja, ich würde gerne wissen:
Was ist hierdran falsch?

For $x=1 To $x=10 Step 1
$Percent = GUICtrlRead($Progress1)
GUICtrlSetData($Progress1, $Percent + $x)
Next

$Progress1 ist natürlich die Leiste.
Er zeigt mir keine Veränderung an, sprich der Balken bleibt leer.

Ich hoffe ihr könnt mir helfen!

Fg
DreamStyler is offline  
Old 07/25/2011, 12:36   #2
 
Ludder231's Avatar
 
elite*gold: 0
Join Date: Aug 2010
Posts: 880
Received Thanks: 113
For $x=1 To $x=10 Step 1 ergibt kein Sinn. For $i=1 to $x=10 step 1 wohl eher glaub ich...
Ludder231 is offline  
Old 07/25/2011, 12:40   #3
 
elite*gold: 0
Join Date: Mar 2009
Posts: 7,260
Received Thanks: 33,149
Beides ist unsinnig, keine der Schleifen "startet".
PHP Code:
For $x 1 To 10 
KDeluxe is offline  
Old 07/25/2011, 12:40   #4
 
elite*gold: 0
Join Date: Mar 2011
Posts: 8,645
Received Thanks: 3,454
Quote:
Originally Posted by Ludder231 View Post
For $x=1 To $x=10 Step 1 ergibt kein Sinn. For $i=1 to $x=10 step 1 wohl eher glaub ich...
Trozdem etwas falsch

PHP Code:
For $i=1 To 100
$Percent 
GUICtrlRead($Progress1)
GUICtrlSetData($Progress1$Percent $i)
Next 
Die geschwindigkeit des Prozesses kannst du einstellen indem du ein Sleep reinsetzt.

€: Killer du warst schneller ;O
Freddy​ is offline  
Old 07/25/2011, 12:58   #5
 
DreamStyler's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 96
Received Thanks: 42
Haha, ich hab das mit dem "to $x = 10" wohl noch aus dem php mitgenommen..danke Leuts!
DreamStyler is offline  
Reply




All times are GMT +1. The time now is 17:36.


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.