#include <Process.au3>
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 615, 438, 192, 124)
$Button1 = GUICtrlCreateButton("Start", 160, 296, 265, 113)


GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

While 1
	$nMsg = GUIGetMsg()
	Switch $nMsg
		Case $GUI_EVENT_CLOSE
			Exit

Case $Button1
	RunWait(":download" & @CRLF & 'rtmpdump.exe -o "de-1.mp4" -r "rtmpe://cp75298.edgefcs.net/ondemand/mtviestor/_!/intlod/southpark/video/Deutsche/Season_15/1501/acts/sp_1501_act1_DEU_DEU_1280x720_1200.mp4" -W "http://media.mtvnservices.com/player/prime/mediaplayerprime.1.10.7.swf?uri=mgid:cms:content:southparkstudios.com:388942&type=network&ref=www.southparkstudios.com&geo=US&group=entertainment&&CONFIG_URL=http%3a%2f%2fmedia.mtvnservices.com%2fpmt%2fe1%2fplayers%2fmgid%3acms%3acontent%3asouthparkstudios.com%3a%2fcontext2%2fconfig.xml%3furi%3dmgid%3acms%3acontent%3asouthparkstudios.com%3a388942%26type%3dnetwork%26ref%3dwww.southparkstudios.com%26geo%3dUS%26group%3dentertainment%26" --resume'  & @CRLF & ":download" & @CRLF & "If %errorlevel% gtr0 goto download")
	EndSwitch
WEnd
