1. Dashboard
  2. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  3. Forenregeln
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Alles
  • Alles
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
  1. AutoIt.de - Das deutschsprachige Forum.
  2. Mitglieder
  3. BTXUser

Beiträge von BTXUser

  • Inputfenster über Radiobutton auswählen.

    • BTXUser
    • 3. November 2011 um 18:37

    Hey Danke Raupi für deine so umfangreiche Antwort. Du hast mir sehr gut geholfen. Jetzt kann ich weiter basteln und ja es wird ein AP-Relikt Rechner^^. Man, da hat aber jemand gut Augen^^

  • Inputfenster über Radiobutton auswählen.

    • BTXUser
    • 3. November 2011 um 15:31

    Hallo alle zusammen. Ich steh noch am Anfang von Autoit. Ich bau gerade ein kleines Programm und komme einfach nicht weiter. Ich habe 16 Button. Jeder Button ist mit einer bestimmten Zahl hinterlegt.
    Es soll so funktionieren. Ich wähle das gewünschte Inputfenster mit dem Radiobutton aus und drücke dann einen Button von 16 Stück einen. z.b. Button 2 , der den Wet 50 hat. Dann soll die Zahl 50
    im ausgewählten Inputfenster stehen. Drücke ich noch mal den Button, soll er die Zahl einfach zusammen rechnen. 50+50= 100. Würde mich über Tipps von Euch freuen :)

    Dazu ein Beispiel nochmal
    [Blockierte Grafik: http://cdn.imghack.se/medium/8a676b3cd9e64145c9e85f0548d709d4.jpg]

    [autoit]

    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #Region ### START Koda GUI section ### Form=
    $Form1_1 = GUICreate("test", 560, 346, 265, 197)
    GUISetBkColor(0xFFFFFF)
    $Label1 = GUICtrlCreateLabel("1:", 8, 8, 70, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "Microsoft Sans Serif")
    $Label7 = GUICtrlCreateLabel("4.:", 8, 80, 70, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "Microsoft Sans Serif")
    $Label2 = GUICtrlCreateLabel("2:", 8, 32, 70, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "Microsoft Sans Serif")
    $Label3 = GUICtrlCreateLabel("3:", 8, 56, 70, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "Microsoft Sans Serif")
    $Label4 = GUICtrlCreateLabel("6:", 8, 128, 70, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "Microsoft Sans Serif")
    $Label5 = GUICtrlCreateLabel("5:", 8, 104, 70, 24)
    GUICtrlSetFont(-1, 12, 400, 0, "Microsoft Sans Serif")
    $Input1 = GUICtrlCreateInput("", 80, 8, 121, 21)
    $Input2 = GUICtrlCreateInput("", 80, 32, 121, 21)
    $Input4 = GUICtrlCreateInput("", 80, 80, 121, 21)
    $Input3 = GUICtrlCreateInput("", 80, 56, 121, 21)
    $Input5 = GUICtrlCreateInput("", 80, 104, 121, 21)
    $Input6 = GUICtrlCreateInput("", 80, 128, 121, 21)
    $Radio1 = GUICtrlCreateRadio("", 352, 8, 113, 17)
    $Radio2 = GUICtrlCreateRadio("", 352, 32, 113, 17)
    $Radio3 = GUICtrlCreateRadio("", 352, 56, 113, 17)
    $Radio4 = GUICtrlCreateRadio("", 352, 80, 113, 17)
    $Radio5 = GUICtrlCreateRadio("", 352, 104, 113, 17)
    $Radio6 = GUICtrlCreateRadio("", 352, 128, 113, 17)
    $Input7 = GUICtrlCreateInput("", 224, 8, 121, 21)
    $Input8 = GUICtrlCreateInput("", 224, 32, 121, 21)
    $Input9 = GUICtrlCreateInput("", 224, 56, 121, 21)
    $Input10 = GUICtrlCreateInput("", 224, 80, 121, 21)
    $Input11 = GUICtrlCreateInput("", 224, 104, 121, 21)
    $Input12 = GUICtrlCreateInput("", 224, 128, 121, 21)
    $Button1 = GUICtrlCreateButton("", 8, 160, 131, 25)
    $Button2 = GUICtrlCreateButton("", 8, 224, 131, 25)
    $Button3 = GUICtrlCreateButton("", 8, 256, 131, 25)
    $Button4 = GUICtrlCreateButton("", 8, 192, 131, 25)
    $Button5 = GUICtrlCreateButton("", 144, 160, 131, 25)
    $Button6 = GUICtrlCreateButton("", 144, 224, 131, 25)
    $Button7 = GUICtrlCreateButton("", 144, 256, 131, 25)
    $Button8 = GUICtrlCreateButton("", 144, 192, 131, 25)
    $Button9 = GUICtrlCreateButton("", 280, 160, 131, 25)
    $Button10 = GUICtrlCreateButton("", 280, 224, 131, 25)
    $Button11 = GUICtrlCreateButton("", 280, 256, 131, 25)
    $Button12 = GUICtrlCreateButton("", 280, 192, 131, 25)
    $Button13 = GUICtrlCreateButton("", 416, 160, 131, 25)
    $Button14 = GUICtrlCreateButton("", 416, 224, 131, 25)
    $Button15 = GUICtrlCreateButton("", 416, 256, 131, 25)
    $Button16 = GUICtrlCreateButton("", 416, 192, 131, 25)
    GUICtrlSetFont(-1, 30, 400, 0, "Rage Italic LET")
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###

    [/autoit][autoit][/autoit][autoit]

    While 1
    $nMsg = GUIGetMsg()
    Switch $nMsg
    Case $GUI_EVENT_CLOSE
    Exit
    Case $nMsg = $Button1
    $read1 = 50
    $Ergebnis = $read1
    GUICtrlSetData($Input12, GUICtrlRead($Input12)+$Ergebnis)
    EndSwitch
    WEnd

    [/autoit]

Spenden

Jeder Euro hilft uns, Euch zu helfen.

Download

AutoIt Tutorial
AutoIt Buch
Onlinehilfe
AutoIt Entwickler
  1. Datenschutzerklärung
  2. Impressum
  3. Shoutbox-Archiv
Community-Software: WoltLab Suite™