<?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=12815&amp;type=atom" />
	<updated>2017-07-17T09:00:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12815</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокирование нажатия кнопок мыши по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=117308#p117308" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />Спасибо как раз, то что нужно. Буду разбираться.</p>]]></content>
			<author>
				<name><![CDATA[serge]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34543</uri>
			</author>
			<updated>2017-07-17T09:00:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=117308#p117308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокирование нажатия кнопок мыши по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=117307#p117307" />
			<content type="html"><![CDATA[<p>Так можно заблокировать мышь: LButton::return</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-07-17T08:08:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=117307#p117307</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Блокирование нажатия кнопок мыши по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=117305#p117305" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serge пишет:</cite><blockquote><p>Или есть ли возможность в AHK различать хоткеи разных мышей?</p></blockquote></div><p><a href="https://autohotkey.com/boards/viewtopic.php?p=159689&amp;sid=eafe3604134739e41dfaddbeb86bdf7b#p159689">https://autohotkey.com/boards/viewtopic … 7b#p159689</a></p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2017-07-17T08:02:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=117305#p117305</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Блокирование нажатия кнопок мыши по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=117304#p117304" />
			<content type="html"><![CDATA[<p>Можно ли как-либо, заблокировать посылку нажатий мыши если разница между временем нажатия MButton и LButton меньше определенного времени?<br />Или есть ли возможность в AHK различать хоткеи разных мышей?</p><div class="codebox"><pre><code>SetBatchLines, -1
#MaxThreadsPerHotkey 2
#MaxThreads 1
~RButton::
~MButton::
StringReplace, NameVar, A_ThisHotkey, ~
a%NameVar% := A_TickCount
sub_Down := aLButton - aRButton
If (sub_Down&lt;100 And sub_Down&gt;-100)
{
SendInput {RButton Up}{LButton Up}
MsgBox Down
}
Return

~RButton Up::
~MButton Up::
StringReplace, NameVar, A_ThisHotkey,~
StringReplace, NameVar,NameVar,% &quot; &quot;,, All
a%NameVar% := A_TickCount
sub_Up := aLButtonUp - aRButtonUp
If (sub_Up&lt;100 And sub_Up&gt;-100)
MsgBox Up
Return</code></pre></div><p>Этот скрипт для второй мышки, в которой при помощи паяльника соединил MButton и LButton.</p>]]></content>
			<author>
				<name><![CDATA[serge]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34543</uri>
			</author>
			<updated>2017-07-17T07:04:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=117304#p117304</id>
		</entry>
</feed>
