Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Help With This Code!

$
0
0
I made this code but it gives this error: "(29) : ==> "EndSwitch" statement with no matching "Switch" statement.:
EndSwitch"

Does anyone knows what it is the problem?

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <GUIListBox.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Cartão de memória - Plugin ", 615, 438, 192, 124)
$Button1 = GUICtrlCreateButton("Créditos", 496, 360, 105, 65)
$Button2 = GUICtrlCreateButton("Introduzir", 24, 360, 113, 65)
$Button3 = GUICtrlCreateButton("Procurar", 16, 40, 129, 89)
$List1 = GUICtrlCreateList("", 168, 32, 273, 240)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
  Case $GUI_EVENT_CLOSE
   Exit
  Case $Button1
	 msgbox( 64, "Créditos", "Desenvolvido por TheWebs" )
  Case $Button2
	 Case $Button3
   $var = FileSelectFolder("Choose a folder.", "")
	  if FileExists( $var & "\ttt.mp3" ) Then
	 _fe()
	 Else
	 _fne()
EndSwitch
WEnd
func _fe()
	MsgBox( 64, "Estado", "Ficheiro encontrado" )
EndFunc

func _fne()
  MsgBox( 64, "Estado", "Ficheiro não encontrado" )
  EndFunc


Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>