Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 06:22

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

Advertisement



group/radio hilfe.

Discussion on group/radio hilfe. within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
muse-'s Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 520
Received Thanks: 61
group/radio hilfe.

hey leute.
hab totales blackout grade und daher folgende frage:
wie stell ich es ein,wenn ich 2 groupboxen mit jeweils 2 radios drin hab,
sodass bei beidem jeweils eins ausgelesen werden kann
script:
Quote:
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\pwn_age55\eigene dateien\s1-gamebot.kxf
$Form1_1 = GUICreate("s1 q-bot ", 465, 362, 662, 370)
GUISetBkColor(0xA6CAF0)
$Label1 = GUICtrlCreateLabel("S1_GAME-BOT ", 144, 8, 179, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
$Button1 = GUICtrlCreateButton("push me!", 160, 296, 145, 33, 0)
$Button2 = GUICtrlCreateButton("end.", 352, 320, 73, 25, 0)
$Radio1 = GUICtrlCreateRadio("1650*1080", 272, 168, 113, 17)
$Radio2 = GUICtrlCreateRadio("1280*1024", 272, 208, 113, 17)
$Group1 = GUICtrlCreateGroup("Auflösung", 248, 144, 177, 97)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("browser.", 40, 144, 177, 97)
$Radio3 = GUICtrlCreateRadio("FireFox", 64, 168, 113, 17)
$Radio4 = GUICtrlCreateRadio("I-Exlporer", 64, 208, 113, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
go ()
Case $Button2
Exit
EndSwitch
WEnd
func go ()
$ausgabe1 = $Radio1 And BitAND(GUICtrlRead($Radio1), $GUI_CHECKED) = $GUI_CHECKED
$ausgabe2 = $Radio2 And BitAND(GUICtrlRead($Radio2), $GUI_CHECKED) = $GUI_CHECKED
$ausgabe3 = $Radio3 And BitAND(GUICtrlRead($Radio3), $GUI_CHECKED) = $GUI_CHECKED
$ausgabe4 = $Radio4 And BitAND(GUICtrlRead($Radio4), $GUI_CHECKED) = $GUI_CHECKED
...
thanks guys.

//so nochmal bis jetzt mein script.
also ich meine folgendes:
ich habe 2 groups á 2 radios.
ich weiß,wie man radios ausließt,aber nur wenn nur eines ausgewählt werden kann
in dem fall können aber 2 ausgewählt werden,versteht ihr? xD
also entweder ist das total tricky. oder ich steh einfach aufm schlauch oO
muse- is offline  
Old 10/18/2009, 14:42   #2
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
Ich versteh deine Frag nicht. Kannst du deinen gesamten Code mal posten?!
| Moep | is offline  
Old 10/18/2009, 16:54   #3
 
muse-'s Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 520
Received Thanks: 61
thread updated.
muse- is offline  
Old 10/18/2009, 18:50   #4
 
| Moep |'s Avatar
 
elite*gold: 0
Join Date: Apr 2008
Posts: 1,079
Received Thanks: 438
meinst du soetwas?

Code:
#include <GUIConstantsEx.au3>
#Region ### START Koda GUI section ### Form=c:\dokumente und einstellungen\pwn_age55\eigene dateien\s1-gamebot.kxf
$Form1_1 = GUICreate("s1 q-bot ", 465, 362, 662, 370)
GUISetBkColor(0xA6CAF0)
$Label1 = GUICtrlCreateLabel("S1_GAME-BOT ", 144, 8, 179, 24)
GUICtrlSetFont(-1, 12, 800, 0, "MS Sans Serif")
GUICtrlSetColor(-1, 0x000080)
$Button1 = GUICtrlCreateButton("push me!", 160, 296, 145, 33, 0)
$Button2 = GUICtrlCreateButton("end.", 352, 320, 73, 25, 0)
$Radio1 = GUICtrlCreateRadio("1650*1080", 272, 168, 113, 17)
$Radio2 = GUICtrlCreateRadio("1280*1024", 272, 208, 113, 17)
$Group1 = GUICtrlCreateGroup("Auflösung", 248, 144, 177, 97)
GUICtrlCreateGroup("", -99, -99, 1, 1)
$Group2 = GUICtrlCreateGroup("browser.", 40, 144, 177, 97)
$Radio3 = GUICtrlCreateRadio("FireFox", 64, 168, 113, 17)
$Radio4 = GUICtrlCreateRadio("I-Exlporer", 64, 208, 113, 17)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
go ()
Case $Button2
Exit
EndSwitch
WEnd
func go ()
	If (BitAND(GUICtrlRead($Radio1), $GUI_CHECKED)) And (BitAND(GUICtrlRead($Radio3), $GUI_CHECKED))Then
		MsgBox("","","1650*1080 und Firefox eingestellt")
	ElseIf (BitAND(GUICtrlRead($Radio1), $GUI_CHECKED)) And (BitAND(GUICtrlRead($Radio4), $GUI_CHECKED))Then
		MsgBox("","","1650*1080 und IE eingestellt")
	ElseIf (BitAND(GUICtrlRead($Radio2), $GUI_CHECKED)) And (BitAND(GUICtrlRead($Radio3), $GUI_CHECKED)) Then
		MsgBox("","","1280*1024 und Firefox eingestellt")
	ElseIf (BitAND(GUICtrlRead($Radio2), $GUI_CHECKED)) And (BitAND(GUICtrlRead($Radio4), $GUI_CHECKED)) Then
		MsgBox("","","1280*1024 und IE eingestellt")
	Else
		MsgBox("","","Bitte Browser und Auflösung einstellen")
	EndIf 
EndFunc
| Moep | is offline  
Thanks
1 User
Old 10/18/2009, 19:56   #5
 
muse-'s Avatar
 
elite*gold: 0
Join Date: Oct 2007
Posts: 520
Received Thanks: 61
perfekt ,tausend dank!
muse- is offline  
Reply


Similar Threads Similar Threads
[AutoIt] $Radio hilfe
04/11/2010 - AutoIt - 1 Replies
hat sich erledigt hab es selbst herausgefunden :D
{HILFE}group.txt gelöscht
03/29/2010 - Metin2 Private Server - 0 Replies
meine group.txt wurde gelöscht und wollte fragen ob mir jemand eine vollständige hochladen könnte PLS :handsdown::handsdown::handsdown:
[Radio]Dirty south radio online
08/08/2009 - Video Art - 0 Replies
http://img44.imageshack.us/img44/7157/dramajpg.jpg Enjoy Dirty south radio online .com! It´s an american internet radio! They only play dirty music man ^^ Just open the Link( dirtysouthradioonline.com to listen them or download desktop dsr player http://www.dirtysouthradioonline.com/espscripts/Ds rRadioPlayer.exe
[Hilfe] Radio
05/06/2009 - General Coding - 6 Replies
Hey, ich wollte mal fragen, ob man nen Radio Button "Transparent" machen kann, sodass man zwar den Text sieht, aber diesen weißen Hintergrund nicht. $Form1 = GUICreate("Form666", 499, 320, 210, 215) $Button1 = GUICtrlCreateButton("Start",40, 72, 137, 49) $Radio1 = GUICtrlCreateRadio("Radio 1", 40, 160, 105, 17) $Pic1 = GUICtrlCreatePic("blub.jpg", 0, 0, 497, 297, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
[AutoIt] $Radio hilfe
05/03/2009 - AutoIt - 6 Replies
Huhu leute , bin noch neu in der au3 szene und hab ma was zum üben gemacht doch komme schon am anfang nicht mehr weiter , da ich nicht weiß wie man auslesen kann welche Radiobox gerade benuzt wurde und dies dann mit dem Klickbutton verbindet...(wie gesagt ist nur was um zu üben hat keinen tieferen sinn der spaß :P) Habe das ganze schon ohne Race-choose hinbekommen wollte es nun aber bissl erweitern. //Google hat auch keine informativen Threads herausgegeben



All times are GMT +1. The time now is 06:22.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.