<?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=8339&amp;type=atom" />
	<updated>2013-05-28T20:55:20Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8339</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отключение/включение биндов по нажатию клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72531#p72531" />
			<content type="html"><![CDATA[<p>Спасибо, все работает <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><div class="quotebox"><cite>Mikki пишет:</cite><blockquote><p>По всей видимости после того как напечатали что-то надо будет отправить, да?</p></blockquote></div><p>Да, по нажатию ентер открывается чат, опять же на ентер отправляем сообщение.</p>]]></content>
			<author>
				<name><![CDATA[karambaloki]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30192</uri>
			</author>
			<updated>2013-05-28T20:55:20Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72531#p72531</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отключение/включение биндов по нажатию клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72502#p72502" />
			<content type="html"><![CDATA[<p>Наверное надо </p><div class="codebox"><pre><code>~Enter::disabled := !disabled</code></pre></div><p>По всей видимости после того как напечатали что-то надо будет отправить, да?</p>]]></content>
			<author>
				<name><![CDATA[Mikki]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5905</uri>
			</author>
			<updated>2013-05-28T11:24:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72502#p72502</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: отключение/включение биндов по нажатию клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72498#p72498" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>#if !disabled
    w::
        sendinput {F9}
        sleep, 100
        sendinput {F6}
        sleep, 100
        sendinput {F10}
        sleep, 100
        sendinput {F1}
        return
#if

Enter::disabled := !disabled</code></pre></div><p>В случае, если «код не работает» — обновите Autohotkey до актуальной версии.</p>]]></content>
			<author>
				<name><![CDATA[creature.ws]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26105</uri>
			</author>
			<updated>2013-05-28T10:31:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72498#p72498</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: отключение/включение биндов по нажатию клавиши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=72491#p72491" />
			<content type="html"><![CDATA[<p>Нужно, чтобы назначенные бинды отключались при нажатии Enter и включались обратно при повторном нажатии.</p><p>Например, имеет такой бинд:</p><div class="codebox"><pre><code>
w::
sendinput {F9}
sleep, 100
sendinput {F6}
sleep, 100
sendinput {F10}
sleep, 100
sendinput {F1}
return
</code></pre></div><p>При запуске скрипта, бинд должен работать. Потом мы нажимаем Enter, бинд отключается, теперь при нажатии клавиши W должна печататся W. Опять нажимает Enter и бинд снова работает.</p><p>Пробовал просто назначать на Enter паузу:</p><div class="codebox"><pre><code>
enter::
pause
return
</code></pre></div><p>Скрипт ставится на паузу (в трее значек становится красным), но бинды по прежнему продолжают работать.</p>]]></content>
			<author>
				<name><![CDATA[karambaloki]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30192</uri>
			</author>
			<updated>2013-05-28T06:08:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=72491#p72491</id>
		</entry>
</feed>
