|
You last visited: Today at 12:20
Advertisement
GUICtrlRead ?
Discussion on GUICtrlRead ? within the AutoIt forum part of the Coders Den category.
03/24/2011, 22:20
|
#1
|
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
|
GUICtrlRead ?
Hallo E*PvP ich stehe gerade irgend wie aufm Schlauch D:
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Wecker", 242, 438, 192, 124)
$Label11 = GUICtrlCreateLabel("Uhrzeit", 0, 8, 37, 17)
$Stunden = GUICtrlCreateInput("Stunden", 40, 8, 49, 21)
$Minuten = GUICtrlCreateInput("Min", 104, 8, 25, 21)
$Label2 = GUICtrlCreateLabel(":", 96, 8, 7, 17)
$Label3 = GUICtrlCreateLabel("Erinnerung ", 0, 40, 58, 17)
$Erinerung = GUICtrlCreateInput("An was Wilslt du Erinnert werden ?", 8, 64, 225, 21)
GUICtrlSetLimit(-1, 999)
$Button1 = GUICtrlCreateButton("Start", 0, 88, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Func _Start()
If $Stunden = @HOUR And $Minuten = @MIN Then
MsgBox(1, "ACHTUNG" GUICtrlRead($Erinerung) ")
EndIf
EndFunc ;==>_Start
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start
EndSwitch
WEnd
Was ist daran falsch ?
Danke
|
|
|
03/25/2011, 00:34
|
#2
|
elite*gold: 0
Join Date: Mar 2009
Posts: 2,317
Received Thanks: 1,255
|
du nutz hier schon den guictrlread() befehl GUICtrlRead($Erinerung) aber bei $Stunden und $minuten nicht... warrrumm?
bei Case $Button1 .. _Start fehlen die beiden klammern _Start()
und eine funk immer unterhalb vom quellcode setzten, wo du diesen gebrauchst..
bzw halt unter der haupt while - schleife...
PHP Code:
#include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Wecker", 242, 438, 192, 124) $Label11 = GUICtrlCreateLabel("Uhrzeit", 0, 8, 37, 17) $Stunden = GUICtrlCreateInput("Stunden", 40, 8, 49, 21) $Minuten = GUICtrlCreateInput("Min", 104, 8, 25, 21) $Label2 = GUICtrlCreateLabel(":", 96, 8, 7, 17) $Label3 = GUICtrlCreateLabel("Erinnerung ", 0, 40, 58, 17) $Erinerung = GUICtrlCreateInput("An was Wilslt du Erinnert werden ?", 8, 64, 225, 21) GUICtrlSetLimit(-1, 999) $Button1 = GUICtrlCreateButton("Start", 0, 88, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ###
While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 _Start()
EndSwitch WEnd
Func _Start() While @HOUR = GUICtrlRead($Stunden) And @MIN = GUICtrlRead($Minuten) $msg = MsgBox(1, "ACHTUNG", GUICtrlRead($Erinerung)) If $msg = 1 Then ExitLoop WEnd EndFunc
|
|
|
03/26/2011, 12:09
|
#3
|
elite*gold: 0
Join Date: Jan 2010
Posts: 108
Received Thanks: 3
|
Quote:
Originally Posted by omer36
du nutz hier schon den guictrlread() befehl GUICtrlRead($Erinerung) aber bei $Stunden und $minuten nicht... warrrumm?
bei Case $Button1 .. _Start fehlen die beiden klammern _Start()
und eine funk immer unterhalb vom quellcode setzten, wo du diesen gebrauchst..
bzw halt unter der haupt while - schleife...
PHP Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Wecker", 242, 438, 192, 124)
$Label11 = GUICtrlCreateLabel("Uhrzeit", 0, 8, 37, 17)
$Stunden = GUICtrlCreateInput("Stunden", 40, 8, 49, 21)
$Minuten = GUICtrlCreateInput("Min", 104, 8, 25, 21)
$Label2 = GUICtrlCreateLabel(":", 96, 8, 7, 17)
$Label3 = GUICtrlCreateLabel("Erinnerung ", 0, 40, 58, 17)
$Erinerung = GUICtrlCreateInput("An was Wilslt du Erinnert werden ?", 8, 64, 225, 21)
GUICtrlSetLimit(-1, 999)
$Button1 = GUICtrlCreateButton("Start", 0, 88, 75, 25)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
_Start()
EndSwitch
WEnd
Func _Start()
While @HOUR = GUICtrlRead($Stunden) And @MIN = GUICtrlRead($Minuten)
$msg = MsgBox(1, "ACHTUNG", GUICtrlRead($Erinerung))
If $msg = 1 Then ExitLoop
WEnd
EndFunc
|
Ach wtf xd
Danke
|
|
|
 |
Similar Threads
|
[AutoIt] Hilfe! GUICtrlRead Combobox = 0 ??
02/15/2011 - AutoIt - 1 Replies
Hallo!
Ich habe ein kleines Problem mit meiner Combobox. Immer wenn ich mithilfe der Funktion show() den Wert der Combobox auslesen möchte, ist das Ergebnis eine 0. Hab schon lange gegoogelt aber nichts gefunden was mich weiterbringt. Kann mir bitte eine sagen woran es liegen kann? Thx garantie :P
Unten ist ein Beispiel, wollte keinen Kilometerlangen Code reinkopieren.
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 297, 140,...
|
[Schnelle Hilfe]Guictrlread???
04/08/2010 - AutoIt - 2 Replies
Hallo
will mal schnell fragen mach grade nen script für mich in SciTe bzw. AutoIt...
also wie macht man das nochmal mit send, guictrlread under input?
also ich meins so ist falsch ich weiß... (glaub ich)
send(Guictrlread=$input1)
was hab ich da falsch gemacht?? hatte das mal im kopf doch dann hab ichs
vergessen thx für help.
|
GUICtrlRead und WinSetState
12/10/2009 - AutoIt - 6 Replies
Hi, ich hätte da mal eine Frage. Und zwar programmier ich grade ein Programm (Script), das ein beliebiges Programm beendet, minimiert oder maximiert.
Mein Code:
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Include <GuiEdit.au3>
|
Problem mit GUICtrlRead
11/26/2009 - AutoIt - 8 Replies
Wollte hier n Script machen welches ne eingegebene IP bzw Hostnamen pingen kann und auch nen anderen Rechner durchsuchen kann (das ist erstma zweitrangig).
Problem ist das das anpingen beim 1. mal funktioniert und beim 2. mal nur 0 gepingt wird.
#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=c:\users\hans\desktop\autoit test\lanchecker\w gui\lan checker v01a gui.kxf...
|
[HILFE] GuiCtrlRead funst nit
09/19/2009 - AutoIt - 10 Replies
Hey,
ich habe ein problem
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\admin\desktop\autoexpspender.kxf
$Auto = GUICreate("mouwMOUW", 633, 447, 193, 125)
GUISetBkColor(0x000080)
|
All times are GMT +1. The time now is 12:22.
|
|