<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AXK: Проигрывание видео в GUI]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15576&amp;type=atom" />
	<updated>2020-08-06T15:11:23Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15576</id>
		<entry>
			<title type="html"><![CDATA[Re: AXK: Проигрывание видео в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=141500#p141500" />
			<content type="html"><![CDATA[<p>Спасибо всем за ответы в моей теме.</p>]]></content>
			<author>
				<name><![CDATA[radioamator]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39871</uri>
			</author>
			<updated>2020-08-06T15:11:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=141500#p141500</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AXK: Проигрывание видео в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=141486#p141486" />
			<content type="html"><![CDATA[<p><strong>ypppu</strong>, одна-две строчки здесь явно лишние.<br /></p><div class="codebox"><pre><code>files := [ &quot;D:\Видео\MyFile1.mp4&quot;
         , &quot;D:\Видео\MyFile2.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()
Return

GuiClose:
   ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2020-08-06T10:23:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=141486#p141486</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AXK: Проигрывание видео в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=141485#p141485" />
			<content type="html"><![CDATA[<p>Завалялся у меня один пример. Брал, кажется, отсюда: <a href="http://forum.script-coding.com/viewtopic.php?id=8206">AHK: Использование - GUI Control Types ActiveX</a>.<br />В медиаплеер вместо пути к <em>видеофайлу</em> прописываем путь к <em>файлу списка воспроизведения</em>. Последний нужно как-то подготовить заранее.</p><div class="codebox"><pre><code>&lt;?wpl version=&quot;1.0&quot;?&gt;
&lt;smil&gt;
    &lt;head&gt;
        &lt;meta name=&quot;Generator&quot; content=&quot;Microsoft Windows Media Player -- 12.0.7601.23930&quot;/&gt;
        &lt;meta name=&quot;ItemCount&quot; content=&quot;2&quot;/&gt;
        &lt;title&gt;Безымянный список воспроизведения&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;seq&gt;
            &lt;media src=&quot;1.wmv&quot;/&gt;
            &lt;media src=&quot;2.wmv&quot;/&gt;
        &lt;/seq&gt;
    &lt;/body&gt;
&lt;/smil&gt;</code></pre></div><br /><div class="codebox"><pre><code>#Persistent
#SingleInstance, Force
SetBatchLines, -1
;file := &quot;C:\Windows\Media\tada.wav&quot;
file := &quot;111.wpl&quot;
Link = http://forum.script-coding.com


GUI, 1: Add, Edit, w200 h30 , GUI1 Some text
GUI, 1: Add, Button, w100 h30 , GUI1 Some button
Gui, 1: Color, EEAA99, 00FF00
Gui, 1:Add, ActiveX, w200 h200 vMP, WMPlayer.OCX
MP.url := file
Gui, 1:Add, ActiveX, w640 h480 vWB, Shell.Explorer
WB.Navigate(Link)
GUI, 1: -resize
Gui, 1: Color, EEAA99, 00FF00
Gui, 1: +Lastfound ; Делаем окно GUI &quot;последним найденным&quot; окном.
WinSet, TransColor, EEAA99
WinSet, TransColor, 00FF00
GUI, 1: Show, w800 h600, GUI1
;Sleep, 1000
WinSet, TransColor, EEAA99
WinSet, TransColor, 00FF00
WinSet, TransColor, FFFFFF

Return

GuiClose:
   WB := &quot;&quot;
   ExitApp</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-08-06T08:11:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=141485#p141485</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AXK: Проигрывание видео в GUI]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=141483#p141483" />
			<content type="html"><![CDATA[<p>Приветствую всех.</p><p>Скажите - как скриптом проиграть несколько видеофайлов подряд (по конкретным адресам) в GUI ?</p>]]></content>
			<author>
				<name><![CDATA[radioamator]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39871</uri>
			</author>
			<updated>2020-08-06T04:55:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=141483#p141483</id>
		</entry>
</feed>
