GuiCtrlSetData()
Schliesungsproblem
-
- [ offen ]
-
simon -
7. April 2009 um 11:45 -
Geschlossen -
Erledigt
-
-
Ich mach das so:
-#include <GUIConstants.au3>Spoiler anzeigen
[autoit]
[/autoit]
while 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then exit(1) --> so funktioniert es bei mir.
select
case $msg = $close ; hier gehen dann die normalen weiteren case befehle weiter...
exit(1) -
Ok und wie baue ich es bei mir ein
Qode:
[autoit]GUICreate("Programm", @DesktopWidth, @DesktopHeight, 0, 0, 0x80880000 + 0x00000008)
[/autoit][autoit][/autoit][autoit]
GUICtrlCreateProgress(100,@DesktopHeight - 300,@DesktopWidth - 200,200)
GUISetState()While 1
[/autoit]
Switch GUIGetMsg()
Case -3
Exit
EndSwitch
WEnd -
Tipp, lese mal das Tutorial von peethebee... http://wiki.autoit.de/wiki/index.php/Tutorial
-
DA habe ich jetzt aber nix gefunden dass mir weiterhilft wie der GUICTrlCreateProgress durchläuft
-
GUICtrlSetData($Porgress1, 50)
-
Wiso verschwindet der BAlken durch die Funktion GUISetSTate nicht oder stimmt das mit =100 nicht
Spoiler anzeigen
[autoit]#include <GUIConstants.au3>
[/autoit] [autoit][/autoit] [autoit]GUICreate("Programm", @DesktopWidth, @DesktopHeight, 0, 0, 0x80880000 + 0x00000008)
[/autoit] [autoit][/autoit] [autoit]
$Porgress1 = GUICtrlCreateProgress(100,@DesktopHeight - 300,@DesktopWidth - 200,200)
GUICtrlSetData($Porgress1, 50)
Sleep(100)
GUICtrlSEtData($Porgress1,100)GUISetState()
[/autoit] [autoit][/autoit] [autoit]While 1
[/autoit]
Switch GUIGetMsg()
Case -3
Exit
Case $Porgress1 = 100
GUISetState($Porgress1,$GUI_HIDE)
EndSwitch
WEnd -
Habs selbst herausgefunden
-