|
You last visited: Today at 16:53
Advertisement
Help
Discussion on Help within the AutoIt forum part of the Coders Den category.
03/04/2011, 16:27
|
#1
|
elite*gold: 0
Join Date: Feb 2011
Posts: 34
Received Thanks: 19
|
Help
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
|
#2
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Hinter Next GUICtrlSetState(-1, $GUI_ENABLE)
|
|
|
03/04/2011, 17:00
|
#3
|
elite*gold: 0
Join Date: Feb 2011
Posts: 34
Received Thanks: 19
|
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
|
#4
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Ja genau so wieso klappts nicht?
|
|
|
03/04/2011, 17:07
|
#5
|
elite*gold: 0
Join Date: Feb 2011
Posts: 34
Received Thanks: 19
|
ne das fenster geht zu
|
|
|
03/04/2011, 17:10
|
#6
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Ja den rest musst du auch da lassen also die While schleife. Einfach das unter Next HINZUFÜGEN.
|
|
|
03/04/2011, 17:11
|
#7
|
elite*gold: 0
Join Date: Feb 2011
Posts: 34
Received Thanks: 19
|
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
|
#8
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
PHP 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) $Button1 = 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 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
|
#9
|
elite*gold: 0
Join Date: Aug 2009
Posts: 962
Received Thanks: 96
|
jetzt noch das man bei button1 eine exe startest:P
|
|
|
03/04/2011, 17:55
|
#10
|
elite*gold: 52
Join Date: Oct 2010
Posts: 1,998
Received Thanks: 389
|
Da musst du hier zwischen den Befehl einfügen. Kugg einfach mal nach der Funktion ShellExecute
Case $Button1
EndSwitch
|
|
|
03/04/2011, 18:21
|
#11
|
elite*gold: 0
Join Date: Feb 2010
Posts: 344
Received Thanks: 151
|
|
|
|
03/04/2011, 19:01
|
#12
|
elite*gold: 15
Join Date: Nov 2005
Posts: 13,021
Received Thanks: 5,323
|
#closed
|
|
|
All times are GMT +2. The time now is 16:53.
|
|