From 3ff5998df51da3c944df8bfc89a5e8bff7fecb8e Mon Sep 17 00:00:00 2001 From: devnoname120 Date: Tue, 16 Dec 2014 21:50:02 +0100 Subject: [PATCH] Listen: Bind listening window to parent --- "Data/Reinh\303\266ren GUI.au3" | 6 +++--- "Data/Reinh\303\266ren.au3" | 4 ++-- GrooveLoad.au3 | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git "a/Data/Reinh\303\266ren GUI.au3" "b/Data/Reinh\303\266ren GUI.au3" index 86598ae..33d12ef 100644 --- "a/Data/Reinh\303\266ren GUI.au3" +++ "b/Data/Reinh\303\266ren GUI.au3" @@ -11,7 +11,7 @@ FileClose ($exitfile) ;MsgBox (0,"",$CmdLineRaw ) -If $cmdline[0] <> 6 Then +If $cmdline[0] <> 7 Then Exit EndIf $Datei = $cmdline[1] @@ -20,11 +20,11 @@ $Spieldauer = $cmdline[3] $Dateigroesse = $cmdline[4] $reinhoerenPID = $cmdline[5] $Fenstertitel = $cmdline[6] - +$HauptGUI = $cmdline[7] $dateigroessefuerlabel = Round($Dateigroesse / 1048576, 2) -$Player = GUICreate($Fenstertitel, 330, 75, 0, 0, -1, $WS_EX_TOOLWINDOW + $WS_EX_COMPOSITED) +$Player = GUICreate($Fenstertitel, 330, 75, 0, 0, -1, $WS_EX_TOOLWINDOW + $WS_EX_COMPOSITED, $HauptGUI) GUISetBkColor(0xFFFFFF) $Wasspielt = GUICtrlCreateLabel($Musiktitel, 13, 8, 308, 23) diff --git "a/Data/Reinh\303\266ren.au3" "b/Data/Reinh\303\266ren.au3" index 9ebc2ad..d3bde62 100644 --- "a/Data/Reinh\303\266ren.au3" +++ "b/Data/Reinh\303\266ren.au3" @@ -14,6 +14,7 @@ $StreamKey = FileReadLine ("Reinh $Musiktitel = FileReadLine ("Reinhören.txt",3) $Spieldauer = FileReadLine ("Reinhören.txt",4) $Fenstertitel = FileReadLine ("Reinhören.txt",5) +$HauptGUI = FileReadLine ("Reinhören.txt",6) $Dateigroesse = "-1" If $StreamIP = "" Or $StreamKey = "" Then @@ -56,8 +57,7 @@ $dlfertig = 0 $puffer = 0 $current = "Blub" $bytesread = IniRead("config.ini", "Downloadeinstellungen", "NumberOfBytesToRead", 150000) - -ShellExecute ("AutoIt3.exe",'"Reinhören GUI.au3" "'&$file&'" "'&$Musiktitel&'" "'&$Spieldauer&'" "'&$Dateigroesse&'" "'&@AutoItPID&'" "'&$Fenstertitel&'"') +ShellExecute ("AutoIt3.exe",'"Reinhören GUI.au3" "'&$file&'" "'&$Musiktitel&'" "'&$Spieldauer&'" "'&$Dateigroesse&'" "'&@AutoItPID&'" "'&$Fenstertitel&'" "'&$HauptGUI&'"') While 1 If $dlfertig = 2 Then diff --git a/GrooveLoad.au3 b/GrooveLoad.au3 index 63aed24..28a8b91 100644 --- a/GrooveLoad.au3 +++ b/GrooveLoad.au3 @@ -800,7 +800,7 @@ While 1 $StreamIP = $StreamIP[0] $StreamKey = $StreamKey[0] FileDelete("Data\Reinhören.txt") - FileWrite("Data\Reinhören.txt", $StreamIP & @CRLF & $StreamKey & @CRLF & $SongInfo[$o][1] & @CRLF & $spieldauer & @CRLF & sprache ("GR_GUI_PREVIEW")) + FileWrite("Data\Reinhören.txt", $StreamIP & @CRLF & $StreamKey & @CRLF & $SongInfo[$o][1] & @CRLF & $spieldauer & @CRLF & sprache ("GR_GUI_PREVIEW") & @CRLF & $HauptGUI) ShellExecute ("Data\AutoIt3.exe",'"'&@ScriptDir&'\Data\Reinhören.au3"') EndIf EndIf