<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=15608</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15608&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Добавка звука из другого файла в скрипт плейлиста».]]></description>
		<lastBuildDate>Tue, 18 Aug 2020 01:05:04 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=141750#p141750</link>
			<description><![CDATA[<p>Спасибо за ответы.</p>]]></description>
			<author><![CDATA[null@example.com (radioamator)]]></author>
			<pubDate>Tue, 18 Aug 2020 01:05:04 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=141750#p141750</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=141747#p141747</link>
			<description><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>MP2.settings.setMode(&quot;loop&quot;, 1)</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 17 Aug 2020 22:32:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=141747#p141747</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=141741#p141741</link>
			<description><![CDATA[<div class="quotebox"><cite>radioamator пишет:</cite><blockquote><p> как зациклить эти плейлисты,</p></blockquote></div><p>Не знаю. Надо <a href="https://docs.microsoft.com/en-us/windows/win32/wmp/player-object">документацию</a> читать. Сейчас у меня нет времени.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 17 Aug 2020 06:20:24 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=141741#p141741</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=141740#p141740</link>
			<description><![CDATA[<p>Строчку с tada.wav - как я понял надо закомментировать.<br />Добавил списки из двух плейлистов.</p><p>Получилась такая конструкция.<br /></p><div class="codebox"><pre><code>
files := [ &quot;F:\---1\7.mp4&quot;
         , &quot;F:\---1\94.mp4&quot; ]

files2 := [ &quot;F:\---1\3.mp3&quot;
         , &quot;F:\---1\15.mp4&quot; ]

Gui, Add, ActiveX, w0 h0 vMP2, WMPlayer.OCX.7
Gui, Add, ActiveX, w600 h400 vMP, WMPlayer.OCX.7

;MP2.currentPlaylist.appendItem(MP.newMedia(&quot;C:\Windows\Media\tada.wav&quot;))

MP2.settings.setMode(&quot;loop&quot;, 1)
MP.settings.volume:=0
for k, v in files
  MP.currentPlaylist.appendItem(MP.newMedia(v))
for k, v in files2
  MP2.currentPlaylist.appendItem(MP2.newMedia(v)) 
Gui, Show
MP.controls.Play()
MP2.controls.Play()
WinSet, AlwaysOnTop, on, ahk_class AutoHotkeyGUI
Return

GuiClose:
  ExitApp
</code></pre></div><p><strong>Alectric</strong>, а как зациклить эти плейлисты, чтобы они потом заново проигрывались по кругу (сейчас останавливаются после проигрывании последнего в списке) ?</p>]]></description>
			<author><![CDATA[null@example.com (radioamator)]]></author>
			<pubDate>Mon, 17 Aug 2020 05:46:25 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=141740#p141740</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=141737#p141737</link>
			<description><![CDATA[<p>Добавить их в плейлист наверно.<br /></p><div class="codebox"><pre><code>for k, v in files2
  MP2.currentPlaylist.appendItem(MP2.newMedia(v)) </code></pre></div><p>Но тогда не добиться синхронизации, т.е. 1 видео 1 звук, если они разные по времени. Значит придется определять какое видео воспроизводит первый плеер и выбирать соответствующее аудио на второй. Нужно дальше изучать объект плеера для этого.</p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Mon, 17 Aug 2020 02:29:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=141737#p141737</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=141734#p141734</link>
			<description><![CDATA[<p><strong>Alectric</strong>, спасибо.<br />Это как я понял - два плеера на одном окне.</p><p>Но не совсем понятно - а как подключить сюда два разных списка файлов?</p><p>видео<br /></p><div class="codebox"><pre><code>files := [ &quot;F:\---1\7.mp4&quot;
         , &quot;F:\---1\94.mp4&quot; ]</code></pre></div><p>и звук<br /></p><div class="codebox"><pre><code>files2 := [ &quot;F:\---1\3.mp3&quot;
         , &quot;F:\---1\15.mp4&quot; ]</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (radioamator)]]></author>
			<pubDate>Sun, 16 Aug 2020 20:34:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=141734#p141734</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=141714#p141714</link>
			<description><![CDATA[<div class="codebox"><pre><code>Gui, Add, ActiveX, w0 h0 vMP2, WMPlayer.OCX.7
Gui, Add, ActiveX, w600 h400 vMP, WMPlayer.OCX.7
MP2.currentPlaylist.appendItem(MP.newMedia(&quot;C:\Windows\Media\tada.wav&quot;))
MP2.settings.setMode(&quot;loop&quot;, 1)
MP.settings.volume:=0
for k, v in files
  MP.currentPlaylist.appendItem(MP.newMedia(v))
Gui, Show
MP.controls.Play()
MP2.controls.Play()
WinSet, AlwaysOnTop, on, ahk_class AutoHotkeyGUI
Return

GuiClose:
  ExitApp

</code></pre></div><p><a href="https://docs.microsoft.com/en-us/windows/win32/wmp/player-object">https://docs.microsoft.com/en-us/window … yer-object</a></p>]]></description>
			<author><![CDATA[null@example.com (Alectric)]]></author>
			<pubDate>Sun, 16 Aug 2020 03:44:26 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=141714#p141714</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Добавка звука из другого файла в скрипт плейлиста]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=141708#p141708</link>
			<description><![CDATA[<p>Доброго времени.</p><p>Скрипт проигрывает видео - по плейлисту.<br /></p><div class="codebox"><pre><code>files := [ &quot;F:\---1\7.mp4&quot;
         , &quot;F:\---1\94.mp4&quot; ]

Gui, Add, ActiveX, w600 h400 vMP, WMPlayer.OCX.7
for k, v in files
   MP.currentPlaylist.appendItem(MP.newMedia(v))
Gui, Show
MP.controls.Play()
WinSet, AlwaysOnTop, on, ahk_class AutoHotkeyGUI
Return

GuiClose:
   ExitApp</code></pre></div><p>Скажите - как добавить звук из другого файла (с зацикливанием) - в этот скрипт проигрывания видео по плейлисту ?<br />Иными словами - как добавить в код - строчки с адресами файлов из которых нужно воспроизвести звук, не отображая их.<br /></p><div class="codebox"><pre><code>
files2 := [ &quot;F:\---1\3.mp3&quot;
         , &quot;F:\---1\15.mp4&quot; ]</code></pre></div><p>Чтобы каждому видеофайлу - при проигрывании соответствовал звук из соответствующего списка files2.</p>]]></description>
			<author><![CDATA[null@example.com (radioamator)]]></author>
			<pubDate>Sun, 16 Aug 2020 00:27:58 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=141708#p141708</guid>
		</item>
	</channel>
</rss>
