|
You last visited: Today at 05:11
Advertisement
GUICtrlCreateRadio Problem
Discussion on GUICtrlCreateRadio Problem within the AutoIt forum part of the Coders Den category.
12/14/2009, 14:37
|
#1
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
GUICtrlCreateRadio Problem
Hi ich habe ein Script, welches eine GUI hat und dort kann man einstellen, ob der Output in Hex-format oder im normalen Format ausgegeben werden soll.
So sieht der Teil aus:
PHP Code:
$Label1 = GUICtrlCreateLabel("Color output:", 48, 160, 79, 20)
$Radio8 = GUICtrlCreateRadio("Hex", 24, 184, 41, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
GUICtrlSetFont(-1, 10, 400, 0, "Tahoma")
$Radio9 = GUICtrlCreateRadio("Usual", 104, 184, 73, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Label2 = GUICtrlCreateLabel("or", 80, 184, 16, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Tahoma")
Ich weiß nur nicht, wie ich ihm sagen kann, dass er wenn das eine true ist, das andere false ist.
Das gleiche Problem, habe ich auch in einem andren Teil des Skripts. Nur dort sind es ganz viele Radios. Desweiteren kann man die Radios auch nicht umstellen.
|
|
|
12/14/2009, 20:16
|
#2
|
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
|
PHP Code:
$trueOrFalse = *was auch immer jetz true oder false returnen soll
If $trueOrFalse = True Then
$dasAndere = False
Else
$dasAndere = True
EndIf
War das so schwer?
E: Weiss nich ob AutoIT das unterscheiden kann, aber sons geht das auch als
PHP Code:
$dasAndere = not $trueOrFalse
|
|
|
12/15/2009, 13:22
|
#3
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
Also auf mein Skript angewannt, wäre das dann so?
Quote:
$Label1 = GUICtrlCreateLabel("Color output:", 48, 160, 79, 20)
$Radio8 = GUICtrlCreateRadio("Hex", 24, 184, 41, 17)
GUICtrlSetState(-1, $GUI_CHECKED)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
GUICtrlSetFont(-1, 10, 400, 0, "Tahoma")
$Radio9 = GUICtrlCreateRadio("Usual", 104, 184, 73, 17)
GUICtrlSetFont(-1, 8, 400, 0, "Arial")
$Label2 = GUICtrlCreateLabel("or", 80, 184, 16, 20)
GUICtrlSetFont(-1, 10, 400, 0, "Tahoma")
If GUICtrlRead ($radio8) = true Then
$radio9 = False
Iniwrite ("data.ini"........)
ElseIf GUICtrlRead ($radio9) = true Then
$radio8 = False
Iniwrite ("data.ini"........)
EndIf
|
|
|
|
12/15/2009, 14:46
|
#4
|
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
|
ne du lässt $radio9 einfach als True vorbestimmen und falls $radio8 True ist, lässt du $radio9 zu false ändern
|
|
|
12/15/2009, 15:49
|
#5
|
elite*gold: 0
Join Date: Jun 2008
Posts: 99
Received Thanks: 19
|
Is doch egal^^. Es funktioniert bei mir auch so^^
|
|
|
12/15/2009, 15:59
|
#6
|
elite*gold: 1
Join Date: Oct 2008
Posts: 1,078
Received Thanks: 276
|
dann is gut xD
Solltes du das Script länger schreiben wärs aber kürzer nützlicher
|
|
|
Similar Threads
|
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello!
I have this same problem as here when i'm starting my server:
http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html
But I didn't know the answer.. how to repair this?
Greetings
|
All times are GMT +1. The time now is 05:13.
|
|