|
You last visited: Today at 06:22
Advertisement
group/radio hilfe.
Discussion on group/radio hilfe. within the AutoIt forum part of the Coders Den category.
10/18/2009, 13:48
|
#1
|
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
|
|
|
10/18/2009, 14:42
|
#2
|
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?!
|
|
|
10/18/2009, 16:54
|
#3
|
elite*gold: 0
Join Date: Oct 2007
Posts: 520
Received Thanks: 61
|
thread updated.
|
|
|
10/18/2009, 18:50
|
#4
|
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
|
|
|
10/18/2009, 19:56
|
#5
|
elite*gold: 0
Join Date: Oct 2007
Posts: 520
Received Thanks: 61
|
perfekt ,tausend dank!
|
|
|
 |
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.
|
|