<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=6315</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=6315&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Windows 7 - смена устройств воспроизведения звука».]]></description>
		<lastBuildDate>Mon, 23 Dec 2013 01:51:02 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=78441#p78441</link>
			<description><![CDATA[<p>Думаю не получится, оно должно быть активным, т.к. идёт нажатие на кнопки окна.</p>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Mon, 23 Dec 2013 01:51:02 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=78441#p78441</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=78439#p78439</link>
			<description><![CDATA[<div class="codebox"><pre><code>#Tab::
   Run, % &quot;rundll32.exe Shell32.dll,&quot;
      . &quot;Control_RunDLL mmsys.cpl,,playback&quot;,,, PID
   WinWait, % &quot;ahk_pid&quot; PID,, 1
   If !ErrorLevel
   {
      ControlSend, SysListView321, {Down}
      ControlGet, isEnabled, Enabled,, Button2
      ControlSend, SysListView321, % !isEnabled ? &quot;{Down}&quot;:&quot;&quot;
      ControlClick, Button2, ahk_class #32770,,, 2
      WinClose, % &quot;ahk_pid&quot; PID
      Return
   }
   MsgBox, 262192, % &quot; &quot;, % &quot;Epic fail&quot;, 1
   Return</code></pre></div><p>Может кто-нибудь подсказать, как вариант Грея дополнить так, чтобы при его использовании, окошко со звуковыми устройствами не становилось активным, не выходя поверх окон, не сворачивая игру и т.п ?</p>]]></description>
			<author><![CDATA[null@example.com (brizzz)]]></author>
			<pubDate>Mon, 23 Dec 2013 00:33:33 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=78439#p78439</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=76511#p76511</link>
			<description><![CDATA[<p><strong><a href="http://forum.script-coding.com/profile.php?id=31026">AlexanderUA</a></strong> Для начала обнови версию AHK_L, актуальная (<strong>1.1.13.01</strong>) - может быть в этом дело, кто знает.</p><p>Ссылка на скачивание - <span class="bbu"><a href="http://l.autohotkey.net/AutoHotkey_L_Install.exe">AHK_L Installer(ANSI x86,&nbsp; Unicode x86, Unicode x64 and Compiler&nbsp; and Documentation)</a></span> </p><p>Далее проверь кодировку текстового файла, должна быть <strong>UTF-8</strong>, так меньше глюков и не срабатываний. </p><p>Если всё это не поможет, то надо смотреть/копать глубже.</p><p>P.S. UTF-8 нужен для того, что бы верно работал вызов в команде RunDLL</p>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Sun, 27 Oct 2013 04:21:01 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=76511#p76511</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=76503#p76503</link>
			<description><![CDATA[<p>Использовал все коды с этого сайта для переключения звука, но вылазит только окно Звуковых устройств и всё. Дальше даже снова не получается запустить скрипт, приходится его перезагружать чтобы он опять сработал и вылезло одно окно звука. Установлена Windows 7, AutoHotkey 1.0.48.05<br />Вот например скрипт переключений режима мониторов(клон, расширенный) работает без глюков, хотя там конечно по проще, просто ссылки. <br /> Хотя были моменты я чтото понаклацивал, повыходил по заходил с программы, не сколько раз перезагрузил комп, заработало. <br />Оставил этот скрипт&nbsp; <br /></p><div class="quotebox"><blockquote><p>^!V::<br />&nbsp; &nbsp;Run, % &quot;rundll32.exe Shell32.dll,&quot;<br />&nbsp; &nbsp; &nbsp; . &quot;Control_RunDLL mmsys.cpl,,playback&quot;,,, PID<br />&nbsp; &nbsp;WinWait, % &quot;ahk_pid&quot; PID,, 1<br />&nbsp; &nbsp;If !ErrorLevel<br />&nbsp; &nbsp;{<br />&nbsp; &nbsp; &nbsp; ControlSend, SysListView321, {Down}<br />&nbsp; &nbsp; &nbsp; ControlGet, isEnabled, Enabled,, Button2<br />&nbsp; &nbsp; &nbsp; ControlSend, SysListView321, % !isEnabled ? &quot;{Down}&quot;:&quot;&quot;<br />&nbsp; &nbsp; &nbsp; ControlClick, Button2, ahk_class #32770,,, 2<br />&nbsp; &nbsp; &nbsp; WinClose, % &quot;ahk_pid&quot; PID<br />&nbsp; &nbsp; &nbsp; Return<br />&nbsp; &nbsp;}<br />&nbsp; &nbsp;MsgBox, 262192, % &quot; &quot;, % &quot;Epic fail&quot;, 1<br />&nbsp; &nbsp;Return</p></blockquote></div><p>Пока работает. Но если опять перестанет, где копать дальше?</p>]]></description>
			<author><![CDATA[null@example.com (AlexanderUA)]]></author>
			<pubDate>Sat, 26 Oct 2013 18:39:20 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=76503#p76503</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=69020#p69020</link>
			<description><![CDATA[<p>У меня <em>Microphone +20dB Boost</em> в виде <em>чекбокса</em>, и вот так получается им манипулировать:</p><div class="codebox"><pre><code>&gt;+NumpadMult::
   SoundSet, (isEnable:=!isEnable) ? False:True, Microphone, ONOFF
   KeyWait, % SubStr(A_ThisHotkey, 3)
   Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Thu, 31 Jan 2013 13:31:03 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=69020#p69020</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=68816#p68816</link>
			<description><![CDATA[<p>2Grey, может поможешь со скриптом. Я использовал предложенный тобой, немного изменен под себя, он выставлял усиление микрофона на 20 Дб.<br /></p><div class="codebox"><pre><code>Run, % &quot;rundll32.exe Shell32.dll,&quot;
      . &quot;Control_RunDLL mmsys.cpl,,recording&quot;,,, PID
   WinWait, % &quot;ahk_pid&quot; PID,, 1

   If !ErrorLevel
   {
      Send, {Down}
      ControlClick, Button3, ahk_class #32770,,, 2
      Send, {CtrlDown}{Tab 2}{CtrlUp}
      ControlClick, x145 y195, ahk_class #32770,,, Pos...</code></pre></div><p>Но проблема вот в чем, для рядовых пользователей запрещен доступ к control.exe и соотвественно нужно запустить от админа. Возможно ли как то узменить параметры это ползунка используя команду типа: <br /></p><div class="codebox"><pre><code>SoundSet, off, Microphone, mute, 3</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Bazyl)]]></author>
			<pubDate>Thu, 24 Jan 2013 12:17:49 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=68816#p68816</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=67057#p67057</link>
			<description><![CDATA[<p><strong><a href="http://forum.script-coding.com/profile.php?id=26930">Malcev</a></strong> я использую свой вариант - работает без осечек. <br />Правда он отличается немного от исходного на форуме. </p><div class="codebox"><pre><code>;=====Переключение звука===============
;LWin &amp; Tab::
ToggleSound:
   isDevSetTitle:=&quot;Переключение звука&quot;
   isDevSet:=&quot;Звук на &quot;
   d:=&quot;колонки&quot;, h:=&quot;наушники&quot;
reDevSet:
   Run, mmsys.cpl
   Process, Wait, rundll32.exe, 1
   If (!ErrorLevel)
   {
    Process, Close, rundll32.exe
    MsgBox, 16, % isDevSetTitle, Ошибка, 0   
   }
   else
   {
      WinWait, % &quot;ahk_pid&quot; ErrorLevel
      ControlSend, SysListView321, {Down}
      Sleep, 50
      ControlGet, isEnabled, Enabled,, Button2
      Sleep, 50
      If !isEnabled
         ControlSend, SysListView321, {Down}
      Sleep, 50
      ControlClick, Button2 ; По умол&amp;чанию
      Sleep, 50
      ControlClick, Button4 ; на клик по кнопке ОК
      Process, Close, rundll32.exe
      MsgBox, 1, % isDevSetTitle
             , % isEnabled ? isDevSet . d : isDevSet . h, 5
   }
;Sleep, 1000
IfMsgBox, Cancel 
  Goto, reDevSet
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Mon, 17 Dec 2012 12:59:00 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=67057#p67057</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=66180#p66180</link>
			<description><![CDATA[<div class="codebox"><pre><code>   SetKeyDelay, 100, 100   
   Run, % &quot;rundll32.exe Shell32.dll,&quot;
      . &quot;Control_RunDLL mmsys.cpl,,playback&quot;,,, PID
   WinWait, % &quot;ahk_pid&quot; PID,, 1
   If !ErrorLevel
   {
      ControlSend, SysListView321, {Down}
      ControlGet, isEnabled, Enabled,, Button2
      ControlSend, SysListView321, % !isEnabled ? &quot;{Down}&quot;:&quot;&quot;
      ControlClick, Button2, ahk_class #32770,,, 2
      WinClose, % &quot;ahk_pid&quot; PID
      Return
   }
   MsgBox, 262192, % &quot; &quot;, % &quot;Epic fail&quot;, 1
   Return</code></pre></div><p>Использую этот вариант от Grey.<br />Почему-то не всегда срабатывает.<br />100 раз сработает, а один раз осечка.<br />Что может быть за причина?<br />Может SetKeyDelay увеличить?</p>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Mon, 26 Nov 2012 15:39:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=66180#p66180</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=61208#p61208</link>
			<description><![CDATA[<p><strong>Indomito</strong> Спасибо за отзывчивость, Grey уже помог.</p>]]></description>
			<author><![CDATA[null@example.com (Fiiiish)]]></author>
			<pubDate>Mon, 25 Jun 2012 16:44:41 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=61208#p61208</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=61207#p61207</link>
			<description><![CDATA[<div class="quotebox"><cite>Fiiiish пишет:</cite><blockquote><p><strong>Grey</strong> Спасибо,спасибо и еще раз спасибо!!! Как здорово, что набрел на этот форум, теперь буду пытаться постигнуть эту чудесную программу!</p></blockquote></div><p>Вы просили ответить в этой теме послав письмо, как я понимаю <strong>Grey</strong> уже помог вам. <br />Моя помощь уже не требуется?</p>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Mon, 25 Jun 2012 15:21:26 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=61207#p61207</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=61205#p61205</link>
			<description><![CDATA[<p><strong>Grey</strong> Спасибо,спасибо и еще раз спасибо!!! Как здорово, что набрел на этот форум, теперь буду пытаться постигнуть эту чудесную программу!</p>]]></description>
			<author><![CDATA[null@example.com (Fiiiish)]]></author>
			<pubDate>Mon, 25 Jun 2012 14:16:19 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=61205#p61205</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=61189#p61189</link>
			<description><![CDATA[<div class="codebox"><pre><code>#Tab::
   Run, % &quot;rundll32.exe Shell32.dll,&quot;
      . &quot;Control_RunDLL mmsys.cpl,,playback&quot;,,, PID
   WinWait, % &quot;ahk_pid&quot; PID,, 1
   If !ErrorLevel
   {
      ControlSend, SysListView321, {Down}
      ControlGet, isEnabled, Enabled,, Button2
      ControlSend, SysListView321, % !isEnabled ? &quot;{Down}&quot;:&quot;&quot;
      ControlClick, Button2, ahk_class #32770,,, 2
      WinClose, % &quot;ahk_pid&quot; PID
      Return
   }
   MsgBox, 262192, % &quot; &quot;, % &quot;Epic fail&quot;, 1
   Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Mon, 25 Jun 2012 08:20:53 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=61189#p61189</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=61178#p61178</link>
			<description><![CDATA[<p><strong>Grey</strong>, Рано радовался, вылез конфликт с Google Chrome. Скрипт работает исправно до запуска выше упомянутого браузера, потом вылетает окно устройств воспроизведения и ничего не происходит, помогает перезапуск скрипта. Не подскажите, в чем может быть засада и как ее победить?</p>]]></description>
			<author><![CDATA[null@example.com (Fiiiish)]]></author>
			<pubDate>Sun, 24 Jun 2012 18:18:43 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=61178#p61178</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=61157#p61157</link>
			<description><![CDATA[<div class="quotebox"><cite>Grey пишет:</cite><blockquote><p>Да вроде всё работает:</p><div class="codebox"><pre><code>SetKeyDelay, 100, 100

#Tab::
   Run, mmsys.cpl
   Process, Wait, rundll32.exe, 1
   If ErrorLevel
   {
      WinWait, % &quot;ahk_pid&quot; ErrorLevel
      ControlSend, SysListView321, {Down}
      ControlGet, isEnabled, Enabled,, Button2
      ControlSend, SysListView321, % !isEnabled ? &quot;{Down}&quot;:&quot;&quot;
      ControlClick, Button2, ahk_class #32770,,, 2
      Process, Close, rundll32.exe
      Return
   }
   MsgBox, 262192, % &quot; &quot;, % &quot;Epic fail&quot;, 1
   Return</code></pre></div></blockquote></div><p>Ух ты, здорово этот пашет на ура. Спасибо огроменное!!!!!</p>]]></description>
			<author><![CDATA[null@example.com (Fiiiish)]]></author>
			<pubDate>Sun, 24 Jun 2012 07:25:39 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=61157#p61157</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Windows 7 - смена устройств воспроизведения звука]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=61151#p61151</link>
			<description><![CDATA[<p>Да вроде всё работает:</p><div class="codebox"><pre><code>SetKeyDelay, 100, 100

#Tab::
   Run, mmsys.cpl
   Process, Wait, rundll32.exe, 1
   If ErrorLevel
   {
      WinWait, % &quot;ahk_pid&quot; ErrorLevel
      ControlSend, SysListView321, {Down}
      ControlGet, isEnabled, Enabled,, Button2
      ControlSend, SysListView321, % !isEnabled ? &quot;{Down}&quot;:&quot;&quot;
      ControlClick, Button2, ahk_class #32770,,, 2
      Process, Close, rundll32.exe
      Return
   }
   MsgBox, 262192, % &quot; &quot;, % &quot;Epic fail&quot;, 1
   Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Sun, 24 Jun 2012 01:51:15 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=61151#p61151</guid>
		</item>
	</channel>
</rss>
