<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Добавить условия. Убрать баг]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8392&amp;type=atom" />
	<updated>2013-06-18T04:40:21Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8392</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73027#p73027" />
			<content type="html"><![CDATA[<p>Каких <em>таких</em> функций?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-06-18T04:40:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73027#p73027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=73005#p73005" />
			<content type="html"><![CDATA[<p>Никто ничего не изобретает, таких функций несколько просто было.</p>]]></content>
			<author>
				<name><![CDATA[am-wrag]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30054</uri>
			</author>
			<updated>2013-06-17T14:53:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=73005#p73005</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72993#p72993" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>am-wrag пишет:</cite><blockquote><p>Нужна проверка на активное окно, только нём работают все макросы...</p></blockquote></div><p>Если суть таймера только в этом, то не нужно изобретать велосипед, в посте #8 есть все, что нужно.<br />Почитай про <a href="http://www.script-coding.com/AutoHotkey/IfWinActive.html">#IfWinActive</a></p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2013-06-17T10:25:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72993#p72993</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72987#p72987" />
			<content type="html"><![CDATA[<p>Всё что я хочу - чтобы не залипал Альт, всё остальное незначимо по сравнению с этим.<br />Сегодня вечером протестирую без Suspend. Заранее&nbsp; спрошу: ведь этой процедуре есть альтернатива в данном случае?<br />Нужна проверка на активное окно, только нём работают все макросы...</p>]]></content>
			<author>
				<name><![CDATA[am-wrag]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30054</uri>
			</author>
			<updated>2013-06-17T07:14:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72987#p72987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72984#p72984" />
			<content type="html"><![CDATA[<p>Ничего непонял из того что ещё надо. Попробуйте для начала использовать код из 3 сообщения, так:<br /></p><div class="codebox"><pre><code>
#IfWinActive, 1111  

!0::
clipboard  = текст
Send, ^м
return


Capslock::Numpad4 

!3::
    Send 8
    Sleep, 200    
    Send 0
    Sleep, 200    
    Send 8
    Sleep, 200    
    Send 0        
    Sleep, 400    
    Send 9
    return 

!2::
    Send 98
    KeyWait LButton, D
    Send 0
    return

#IfWinActive

</code></pre></div><p>думаю команда Suspend может залипать альт.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-06-17T04:32:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72984#p72984</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72979#p72979" />
			<content type="html"><![CDATA[<p>Скрипты работают. Все что есть.<br /><strong>Иногда </strong>, точней время от времени(всегда после использования указанного макроса) клавиатура начинает работать в режиме зажатого альт, так что любую кнопку сами того не желая вы нажимаете в комбинации с &lt;alt&gt;<br /></p><div class="codebox"><pre><code>!2::
    Send 98
    KeyWait LButton, D ;Ожидает нажатия левой кнопки мыши
    Send 0
    return</code></pre></div><p>То что я хотел добавить к скрипту ни что иное как танцы с бубном для избегания указанного выше бага.<br />После того как вы вызываете скрипт(альт+2) совершается нажатие клавиш 9 и 8, затем в случае клика мышью жмется 0 и скрипт завершается. Хотел добавить, чтобы скрипт сворачивался не только при клике левой кнопкой мыши, а так же по правой кнопке и клавише esc.</p>]]></content>
			<author>
				<name><![CDATA[am-wrag]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30054</uri>
			</author>
			<updated>2013-06-16T15:11:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72979#p72979</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72974#p72974" />
			<content type="html"><![CDATA[<p>А отдельно этот скрипт работает?<br /></p><div class="codebox"><pre><code>!2::
    Send 98
    KeyWait LButton, D ;Ожидает нажатия левой кнопки мыши
    Send 0
    return</code></pre></div><p>У меня он работает в соответствии с кодом. Насколько я понял первое сообщение, Вам требуется:</p><div class="codebox"><pre><code>!2::
    Send 98
    KeyWait LButton, D
    Send 0
    return
Esc:: Send 0
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-06-15T05:02:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72974#p72974</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72967#p72967" />
			<content type="html"><![CDATA[<p>По факту таймер каждые&nbsp; 0,4с просто запускает процу, которая проверяет активно ли нужное окно, если нет - вырубает весь скрипт.<br />!0:: почти не использую, хотя return похоже там действительно пропущен.<br />Как правило используется только часть с !2:: и с ним же и проблема</p>]]></content>
			<author>
				<name><![CDATA[am-wrag]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30054</uri>
			</author>
			<updated>2013-06-14T19:22:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72967#p72967</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72965#p72965" />
			<content type="html"><![CDATA[<p>В подпрограмме горячей клавиши <strong>!0</strong> отсутствует команда возврата <em>Return</em>. Так и задумано?</p><p>Таймер - аналог директивы #IfWinActive?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-06-14T18:27:26Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72965#p72965</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72964#p72964" />
			<content type="html"><![CDATA[<p>Весь скрипт<br /></p><div class="codebox"><pre><code>SetTimer, WinActive, 400
return

WinActive:
IfWinActive, 1111
    Suspend Off
else
    Suspend On
return

!0::
clipboard  = текст
Send, ^м



Capslock::Numpad4 

!3::
    Send 8
    Sleep, 200    
    Send 0
    Sleep, 200    
    Send 8
    Sleep, 200    
    Send 0        
    Sleep, 400    
    Send 9
    return
    

!2::
    Send 98
    KeyWait LButton, D
    Send 0
    return
</code></pre></div><p>При использовании запрограммированных здесь хоткеев иногда клавиатура начинает работать так как будто бы залипла клавиша альт(alt).</p>]]></content>
			<author>
				<name><![CDATA[am-wrag]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30054</uri>
			</author>
			<updated>2013-06-14T18:13:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72964#p72964</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72962#p72962" />
			<content type="html"><![CDATA[<p>Предлагаю сформулировать задачу более конкретно и оформить сообщение более грамотно.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-06-14T14:02:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72962#p72962</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Добавить условия. Убрать баг]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72957#p72957" />
			<content type="html"><![CDATA[<p>Есть просто скриптик на последовательное выполнение с условием. В коде так же есть несколько его аналогов начинающихся похожим образом !&lt;цифра&gt;::<br /></p><div class="codebox"><pre><code>!2::
    Send 98
    KeyWait LButton, D
    Send 0
    return</code></pre></div><p>Хотелось бы чтоб ноль нажимался в том случае, даже если ЛкнМыши не нажата,&nbsp; по клавиши esc или правой кнопки мыши, после чего этот скрипт всегда завершался.<br />Так же ужасно достал баг когда клавиатура входит в режим постоянно зажатого &lt;alt&gt; биндов достаточно много, и случается достаточно большое число ошибок, а следовательно и проблем с этим.</p>]]></content>
			<author>
				<name><![CDATA[am-wrag]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30054</uri>
			</author>
			<updated>2013-06-14T08:05:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72957#p72957</id>
		</entry>
</feed>
