Help

03/04/2011 16:27 PingBot#1
Also ich habe eine Frage ich möchte das erreichen:

wenn der Ladebalken durch gelaufen ist das dann erst der button drück bar ist aber wie mache ich das das er nicht anklick bar ist habe ich

Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 454, 163, 192, 124)
$Button2 = GUICtrlCreateButton("Klick und Start", 80, 72, 305, 81, $WS_GROUP)
GUICtrlSetFont(-1, 24, 400, 0, "Ruach LET")
GUICtrlSetBkColor(-1, 0xFF00FF)
GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetCursor (-1, 0)
$Progress1 = GUICtrlCreateProgress(8, 8, 441, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

            For $i = 0 To 100
                GUICtrlSetData($Progress1, $i)
                Sleep(60)
            Next

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

			while 1
sleep(10)
wend;


			While (1)

Send("{2},{1},{4},{Space},")
Wend


	EndSwitch
WEnd
03/04/2011 16:47 BlackHybrid#2
Hinter Next GUICtrlSetState(-1, $GUI_ENABLE)
03/04/2011 17:00 PingBot#3
SO?

GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetCursor (-1, 0)
$Progress1 = GUICtrlCreateProgress(8, 8, 441, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

For $i = 0 To 100
GUICtrlSetData($Progress1, $i)
Sleep(60)
Next
GUICtrlSetState(-1, $GUI_ENABLE)
03/04/2011 17:04 BlackHybrid#4
Ja genau so wieso klappts nicht?
03/04/2011 17:07 PingBot#5
ne das fenster geht zu
03/04/2011 17:10 BlackHybrid#6
Ja den rest musst du auch da lassen also die While schleife. Einfach das unter Next HINZUFÜGEN.
03/04/2011 17:11 PingBot#7
GUICtrlSetCursor (-1, 0)
$Progress1 = GUICtrlCreateProgress(8, 8, 441, 57)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

For $i = 0 To 100
GUICtrlSetData($Progress1, $i)
Sleep(60)
Next
GUICtrlSetState(-1, $GUI_ENABLE)


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

while 1
sleep(10)
wend;

ich habe nix
geändert
03/04/2011 17:16 BlackHybrid#8
PHP Code:
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 GUICreate("Form1"454163192124)
$Button1 GUICtrlCreateButton("Klick und Start"807230581$WS_GROUP)
GUICtrlSetFont(-1244000"Ruach LET")
GUICtrlSetBkColor(-10xFF00FF)
GUICtrlSetState(-1$GUI_DISABLE)
GUICtrlSetCursor(-10)
$Progress1 GUICtrlCreateProgress(8844157)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

For $i 0 To 100
    GUICtrlSetData
($Progress1$i)
    
Sleep(60)
Next
GUICtrlSetState
($Button1$GUI_ENABLE)


While 
1
    $nMsg 
GUIGetMsg()
    Switch 
$nMsg
        
Case $GUI_EVENT_CLOSE
            
Exit
        Case 
$Button1
    
EndSwitch
WEnd

While 1
    Sleep
(10)
WEnd 
So habs jetzt mal zusammen gebastelt.
03/04/2011 17:38 lautlosertot#9
jetzt noch das man bei button1 eine exe startest:P
03/04/2011 17:55 BlackHybrid#10
Da musst du hier zwischen den Befehl einfügen. Kugg einfach mal nach der Funktion ShellExecute
Case $Button1
EndSwitch
03/04/2011 18:21 derpo#11
[Only registered and activated users can see links. Click Here To Register...]
03/04/2011 19:01 Adroxxx#12
[Only registered and activated users can see links. Click Here To Register...]
#closed