<?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=13440&amp;type=atom" />
	<updated>2018-02-05T08:14:52Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13440</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация определенной части скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123604#p123604" />
			<content type="html"><![CDATA[<p><strong>Br0ken1334</strong>, вам уже показывали #If, а вы опять задаете те же вопросы.<br /></p><div class="codebox"><pre><code>#If GetKeyState(&quot;Alt&quot;, &quot;P&quot;)
	MButton::LButton
#If

x::MBtnHotkey := !MBtnHotkey</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2018-02-05T08:14:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123604#p123604</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация определенной части скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123548#p123548" />
			<content type="html"><![CDATA[<p>Я имел ввиду, что первая часть при нажатии Alt &amp; MButton постоянно дает Alt &amp; LButton. <br />Тут всё нормально, но вот вторая должна при нажатии Х включать поведение MButton::SendInput, {alt down}{mbutton down}, при повторном нажатии выключать.<br />То есть, если я нажал &quot;X&quot;, то при нажатии MButton посылается Alt &amp; Mbutton. Нажал Х ещё раз - Mbutton ведет себя как Mbutton.</p>]]></content>
			<author>
				<name><![CDATA[Br0ken1334]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38973</uri>
			</author>
			<updated>2018-02-02T20:48:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123548#p123548</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация определенной части скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123547#p123547" />
			<content type="html"><![CDATA[<p>Удалено.</p>]]></content>
			<author>
				<name><![CDATA[Kurskador]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33207</uri>
			</author>
			<updated>2018-02-02T20:20:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123547#p123547</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Активация определенной части скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=123545#p123545" />
			<content type="html"><![CDATA[<p>Доброго времени суток.<br />Есть скрипт, нужно чтобы определенная его часть работала/выключалась только при нажатии клавиши &quot;X&quot;.</p><p>К примеру:</p><div class="codebox"><pre><code>~Alt &amp; MButton:: 
SendInput, {alt down}{lbutton down}    
KeyWait, MButton
SendInput, {alt up}{lbutton up}
Return

MButton::
SendInput, {alt down}{mbutton down}
KeyWait, MButton
SendInput, {alt up}{mbutton up}
Return</code></pre></div><p>Надо чтоб часть с MButton:: работала/выключалась при нажатии &quot;X&quot;, часть с ~Alt &amp; MButton:: работала постоянно.</p>]]></content>
			<author>
				<name><![CDATA[Br0ken1334]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38973</uri>
			</author>
			<updated>2018-02-02T17:45:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=123545#p123545</id>
		</entry>
</feed>
