Hallo
möchte gerne ein kleines QUIZ machen.
10 Fragen über Computer,
hab einen kleinen Teil der funktionen schon.
Spoiler anzeigen
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.2.10.0
Author: myName
Script Function:
Template AutoIt script.
#ce ----------------------------------------------------------------------------
; Script Start - Add your code below here
#include <GUIConstants.au3>
#Region ### START Koda GUI section ### Form=C:\Dokumente und Einstellungen\Mike\Desktop\quiz\Form1.kxf
$Form1 = GUICreate("QUIZ - Mechatronik", 547, 268, 193, 125)
$Radio1 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio2 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio3 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio4 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio5 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio6 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio7 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio8 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio9 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio10 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio11 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio12 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio13 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio14 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio15 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio16 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio17 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio18 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio19 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio20 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio21 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio22 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio23 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio24 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio25 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio26 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio27 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Radio28 = GUICtrlCreateRadio("Radio1", 368, 88, 129, 25)
$Radio29 = GUICtrlCreateRadio("Radio1", 368, 128, 129, 25)
$Radio30 = GUICtrlCreateRadio("Radio1", 368, 168, 129, 25)
$Label1 = GUICtrlCreateLabel("Frage1", 16, 32, 284, 25)
$Label2 = GUICtrlCreateLabel("Frage2", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Label3 = GUICtrlCreateLabel("Frage3", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Label4 = GUICtrlCreateLabel("Frage4", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Label5 = GUICtrlCreateLabel("Frage5", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Label6 = GUICtrlCreateLabel("Frage6", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Label7 = GUICtrlCreateLabel("Frage7", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Label8 = GUICtrlCreateLabel("Frage8", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Label9 = GUICtrlCreateLabel("Frage9", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Label10 = GUICtrlCreateLabel("Frage10", 16, 32, 284, 25)
GUICtrlSetState(-1,$GUI_Hide)
$Button1 = GUICtrlCreateButton("Beenden", 368, 232, 65, 17, 0)
$Button2 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button3 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button4 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button5 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button6 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button7 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button8 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button9 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button10 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Button11 = GUICtrlCreateButton("Weiter", 448, 232, 65, 17, 0)
$Pic1 = GUICtrlCreatePic("", 16, 88, 305, 161, BitOR($SS_NOTIFY,$WS_GROUP,$WS_CLIPSIBLINGS))
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
Exit
Case $Button2
Case $Button3
Case $Button4
Case $Button5
Case $Button6
Case $Button7
Case $Button8
Case $Button9
Case $Button10
Case $Button11
EndSwitch
WEnd
Möchte es so, dass Label die Frage ist und imer 3 Radio buttons zur Auswahl stehen.
2 Falsch 1 Richtig
Wenn Falsch angekreutz ist dann in ner Msgbox die richtige Antwort und dann überspringen zur nächsten Frage.
Zum SChluss ne Auswertung in Prozent und Schulnoten.
Ginge dass irgendwie ?
So : If GUICtrlRead($Radio2)=$GUI_CHECKED then
;~ MsgBox(0, "Fehler!", "Eine Moderne CPU hat 4 Kerne")
MsgBox(0, "Richtig!", "Weiter zur nächsten Frage.")
else
MsgBox(0, "Fehler!", "Eine Moderne CPU hat 4 Kerne")
EndIf ?????
Bräuchte es morgen.
Wäre Klasse wenn mir da jmd helfen könnte.
greetings
mike