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. AarOnly

Beiträge von AarOnly

  • Inputbox auslesen und in mit if verwenden.

    • AarOnly
    • 25. Februar 2017 um 17:41

    Hallo,
    ich habe ein Problem:
    Ich will das jenachdem welche zahl man in die inputbox eingibt das ein anderer call ausgeführt wird. nur wird egal was in der box steht immer function lobby4 ausgeführt.

    Nicht wundern: Ist erst zu 1/4 fertig :D

    Danke im Vorraus

    Aaron

    AutoIt: LobbyBot
    #include <ButtonConstants.au3>
    #include <EditConstants.au3>
    #include <GUIConstantsEx.au3>
    #include <StaticConstants.au3>
    #include <WindowsConstants.au3>
    #include <MsgBoxConstants.au3>
    #RequireAdmin
    #NoTrayIcon
    #Region ### START Koda GUI section ### Form=D:\Programmierzeugs\AutoIt\LobbyBot CSGO\LobbyBotGUI.kxf
    $Form1 = GUICreate("Form1", 257, 138, 1042, 450)
    GUISetBkColor(0x808000)
    $Start = GUICtrlCreateButton("Start Lobby", 8, 88, 233, 41, $WS_GROUP)
    $m8 = GUICtrlCreateInput("How many m8s you have?", 8, 56, 153, 21)
    GUICtrlSetBkColor(-1, 0xF4F7FC)
    $mm = GUICtrlCreateCheckbox("Matchmaking", 8, 32, 89, 17)
    $casual = GUICtrlCreateCheckbox("Casual", 104, 32, 57, 17)
    $Label1 = GUICtrlCreateLabel("LobbyBot v1.0", 0, 0, 73, 17)
    GUICtrlSetBkColor(-1, 0x800080)
    $Label2 = GUICtrlCreateLabel("by aaronly", 80, 0, 52, 17)
    GUICtrlSetBkColor(-1, 0x008080)
    GUISetState(@SW_SHOW)
    #EndRegion ### END Koda GUI section ###
    
    
    While 1
    	$nMsg = GUIGetMsg()
    	Switch $nMsg
    		Case $GUI_EVENT_CLOSE
    			Exit
    		 Case $Start
    			If $m8 = 2 Then
    			   Call ("Lobby2")
    			ElseIf $m8 = 3 Then
    			   Call ("Lobby3")
    			ElseIf $m8 = 4 Then
    			   Call ("Lobby4")
    			ElseIf $m8 = 5 Then
    			   Call ("Lobby5")
    			EndIf
    
    
    
    
    
    
    	EndSwitch
     WEnd
     #Region ;Lobby Functions
    
    
    ;Function Lobby2 to start a lobby with 2 people.
     Func Lobby2()
    	MsgBox(0, "LobbyBot", "2er Lobby wird gestartet")
     EndFunc
     ;Function Lobby3 to start a lobby with 3 people.
     Func Lobby3()
    	MsgBox(0, "LobbyBot", "3er Lobby wird gestartet!")
     EndFunc
     ;Function Lobby3 to start a lobby with 4 people.
      Func Lobby4()
    	MsgBox(0, "LobbyBot", "4er Lobby wird gestartet")
     EndFunc
     ;Function Lobby2 to start a lobby with 5 people.
     Func Lobby5()
    	MsgBox(0, "LobbyBot", "5er Lobby wird gestartet!")
     EndFunc
    
    
     #EndRegion
    Alles anzeigen

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™