<?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=9990</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=9990&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:Поиск скрина и воспроизведение звука».]]></description>
		<lastBuildDate>Wed, 24 Sep 2014 16:31:17 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86732#p86732</link>
			<description><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p><strong>Jack</strong>, похоже, вы всё-таки невнимательно ознакомились с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой. Прочтите, вдумываясь в смысл каждой строки, и проблема отпадёт сама собой. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p></blockquote></div><p>Вы хотели сказать, что у меня не актуальная версия AutoHotkey?<br />Может быть... Сейчас попробую скачать.</p><br /><p>Да!!! Действительно все заработало <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /> Большое спасибо!!!</p>]]></description>
			<author><![CDATA[null@example.com (Jack)]]></author>
			<pubDate>Wed, 24 Sep 2014 16:31:17 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86732#p86732</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86709#p86709</link>
			<description><![CDATA[<p><strong>Jack</strong>, похоже, вы всё-таки невнимательно ознакомились с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой. Прочтите, вдумываясь в смысл каждой строки, и проблема отпадёт сама собой. <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 23 Sep 2014 19:17:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86709#p86709</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86697#p86697</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А у меня ошибки нет:</p></blockquote></div><p>У меня 64 битная система - может поэтому ошибку выдает?</p>]]></description>
			<author><![CDATA[null@example.com (Jack)]]></author>
			<pubDate>Tue, 23 Sep 2014 16:32:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86697#p86697</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86695#p86695</link>
			<description><![CDATA[<p>А у меня ошибки нет:<br /></p><div class="codebox"><pre><code>
CoordMode, Pixel, Screen 
  
Loop   {
    If (!start)   {
        ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\start_1366x768.PNG 
        (!ErrorLevel) ? (SoundPlay(&quot;C:\ProgramData\SA\Media\start.wav&quot;, 1), start := 1) : 0
    }
    ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\pause_1366x768.png  
    ErrorLevel ? (pause := 0) : (pause ? 0 : (SoundPlay(&quot;C:\ProgramData\SA\Media\pause.wav&quot;, 1), pause := 1))
    ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\night_1366x768.PNG 
    ErrorLevel ? (night := 0) : (night ? 0 : (SoundPlay(&quot;C:\ProgramData\SA\Media\night.wav&quot;, 1), night := 1))
    sleep, 1000
}

SoundPlay(path, opt=0)   { 
    SoundPlay, %path%, %opt%
}

</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Tue, 23 Sep 2014 14:15:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86695#p86695</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86667#p86667</link>
			<description><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>А так:<br /></p><div class="codebox"><pre><code>
    If (!start)   {
        ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\start_1366x768.PNG 
        (!ErrorLevel) ? (SoundPlay(&quot;C:\ProgramData\SA\Media\start.wav&quot;, 1), start := 1) : 0
</code></pre></div></blockquote></div><p>Выдает ошибку в <strong>5</strong>ой строке:<br /><span class="postimg"><img src="http://img-fotki.yandex.ru/get/6803/52168957.37/0_e7f36_d7b1331e_orig" alt="http://img-fotki.yandex.ru/get/6803/52168957.37/0_e7f36_d7b1331e_orig" /></span></p>]]></description>
			<author><![CDATA[null@example.com (Jack)]]></author>
			<pubDate>Mon, 22 Sep 2014 20:16:40 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86667#p86667</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86661#p86661</link>
			<description><![CDATA[<p>А так:<br /></p><div class="codebox"><pre><code>
    If (!start)   {
        ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\start_1366x768.PNG 
        (!ErrorLevel) ? (SoundPlay(&quot;C:\ProgramData\SA\Media\start.wav&quot;, 1), start := 1) : 0
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 22 Sep 2014 17:50:10 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86661#p86661</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86658#p86658</link>
			<description><![CDATA[<p>Спасибо !!!<br />Скрипт работает но не весь <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /><br />Первая задача почему то не воспроизводится ни разу<br />а вторая и третья работают правильно.<br /></p><div class="codebox"><pre><code>
    If (!start)   {
        ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\start_1366x768.PNG 
        !ErrorLevel ? (SoundPlay(&quot;C:\ProgramData\SA\Media\start.wav&quot;, 1), start := 1) : 0
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Jack)]]></author>
			<pubDate>Mon, 22 Sep 2014 17:32:30 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86658#p86658</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86656#p86656</link>
			<description><![CDATA[<p>Возможно так:<br /></p><div class="codebox"><pre><code>
CoordMode, Pixel, Screen 
  
Loop   {
    If (!start)   {
        ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\start_1366x768.PNG 
        !ErrorLevel ? (SoundPlay(&quot;C:\ProgramData\SA\Media\start.wav&quot;, 1), start := 1) : 0
    }
    ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\pause_1366x768.png  
    ErrorLevel ? (pause := 0) : (pause ? 0 : (SoundPlay(&quot;C:\ProgramData\SA\Media\pause.wav&quot;, 1), pause := 1))
    ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\night_1366x768.PNG 
    ErrorLevel ? (night := 0) : (night ? 0 : (SoundPlay(&quot;C:\ProgramData\SA\Media\night.wav&quot;, 1), night := 1))
    sleep, 1000
}

SoundPlay(path, opt=0)   { 
    SoundPlay, %path%, %opt%
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Mon, 22 Sep 2014 16:03:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86656#p86656</guid>
		</item>
		<item>
			<title><![CDATA[AHK:Поиск скрина и воспроизведение звука]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=86647#p86647</link>
			<description><![CDATA[<p>Я решил начать новую тему потому как в прошлой<strong> <a href="http://forum.script-coding.com/viewtopic.php?id=9953">http://forum.script-coding.com/viewtopic.php?id=9953</a></strong> ушел от заголовка темы. <br />С вашей помощью я собрал скрипт воспроизведения звука при нахождении скрина на экране монитора который работает как в активном окне так и в неактивном.<br />Но этот скрипт воспроизводит звук <strong><span class="bbu">непрерывно</span></strong> пока находит скрин изображения на мониторе, а мне нужно, что бы первый скрин (<strong>start_1366x768.PNG</strong>) запускал звук 1 раз за сеанс а второй и третий(<strong>pause_1366x768.png</strong>) и (<strong>night_1366x768.PNG</strong>) воспроизводился тоже один раз но когда искомая картинка исчезнет и появиться снова - звук должен опять воспроизвестись 1 раз.<br />Если это возможно - то напишите пожалуйста как это выглядит?<br />За ранее <strong>СПАСИБО</strong> за ответы!!! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br /></p><div class="codebox"><pre><code>
CoordMode, Pixel, Screen 
  
Loop
{
   ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\start_1366x768.PNG 
    SoundPlay, % ErrorLevel ? 0 : &quot;C:\ProgramData\SA\Media\start.wav&quot;, 1         
   ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\pause_1366x768.png 
    SoundPlay, % ErrorLevel ? 0 : &quot;C:\ProgramData\SA\Media\pause.wav&quot;, 1
   ImageSearch, , , 0, 0, %A_ScreenWidth%, %A_ScreenHeight%, C:\ProgramData\SA\picture\night_1366x768.PNG 
    SoundPlay, % ErrorLevel ? 0 : &quot;C:\ProgramData\SA\Media\night.wav&quot;, 1      
   sleep, 1000
}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Jack)]]></author>
			<pubDate>Mon, 22 Sep 2014 12:41:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=86647#p86647</guid>
		</item>
	</channel>
</rss>
