Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 05:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



GUICtrlCreateRadio Problem

Discussion on GUICtrlCreateRadio Problem within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #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:"481607920)
$Radio8 GUICtrlCreateRadio("Hex"241844117)
GUICtrlSetState(-1$GUI_CHECKED)
GUICtrlSetFont(-184000"Arial")
GUICtrlSetFont(-1104000"Tahoma")
$Radio9 GUICtrlCreateRadio("Usual"1041847317)
GUICtrlSetFont(-184000"Arial")
$Label2 GUICtrlCreateLabel("or"801841620)
GUICtrlSetFont(-1104000"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.
WieMeinen is offline  
Old 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 
.nAno is offline  
Old 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
WieMeinen is offline  
Old 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
.nAno is offline  
Old 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^^
WieMeinen is offline  
Old 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
.nAno is offline  
Reply


Similar Threads 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.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.