<?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=11014&amp;type=atom" />
	<updated>2015-10-13T11:02:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11014</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Эмулирование колесика мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97988#p97988" />
			<content type="html"><![CDATA[<p>Если так то будет только 1 раз нажата ср. кнопка.<br /></p><div class="codebox"><pre><code>~RButton::
~LButton::
if GetKeyState(&quot;RButton&quot;,&quot;p&quot;) and GetKeyState(&quot;LButton&quot;,&quot;p&quot;)
Send {MButton}
KeyWait RButton
KeyWait LButton
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-10-13T11:02:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97988#p97988</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Эмулирование колесика мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97987#p97987" />
			<content type="html"><![CDATA[<p>Спасибо, работает! Но.. почему оно работает? Ведь Send зажимает клавишу и тут же ее опускает. &quot;Send 2&quot; нажимает 2 и тут же отпускает.<br />Send {MButton} тоже должен нажать и отпустить, почему тогда когда я удерживаю ЛКМ-ПКМ удерживается колесико?<br />Я нигде не вижу команды MButton down.</p>]]></content>
			<author>
				<name><![CDATA[netwizard]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33411</uri>
			</author>
			<updated>2015-10-13T10:01:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97987#p97987</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Эмулирование колесика мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97986#p97986" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>~RButton::
~LButton::
if GetKeyState(&quot;RButton&quot;,&quot;p&quot;) and GetKeyState(&quot;LButton&quot;,&quot;p&quot;)
Send {MButton}
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2015-10-13T08:45:25Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97986#p97986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Эмулирование колесика мыши]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97984#p97984" />
			<content type="html"><![CDATA[<p>Здравствуйте! Мышь реагирует на прокручивание колеса мыши, но не реагирует на его нажатие.<br />Написал такой скрипт, эмулирует нажатие колесика при одновременном нажатии ЛКМ и ПКМ.<br /></p><div class="codebox"><pre><code>
RButton::
If GetKeyState(&quot;LButton&quot;,&quot;P&quot;)
Send {MButton}
else Send {RButton down}
Return

RButton Up::Send {RButton up}

LButton::
If GetKeyState(&quot;RButton&quot;,&quot;P&quot;)
Send {MButton}
else Send {LButton down}
Return

LButton Up::Send {LButton up}</code></pre></div><p>Главную свою задачу скрипт выполняет - теперь можно быстро открывать гиперссылки в новых закладках.<br />Однако я не могу прокручивать страницы, как я делал это удерживанием колеса мыши.<br />В принципе это можно осуществить вышеописанными средствами, но что-то мне подсказывает, что есть способ легче.<br />1) Есть ли такой способ?<br />2) Работа горячих клавиш нарушает работу клавиш, к которым они привязаны. Есть ли какой-то простой способ, чтобы, например, при нажатии на клавишу 1 выполнялось некое действие и плюс печаталась цифра 1? Не так, чтобы в коде эмулировать нажатие 1, а чтобы нажатие клавиши 1 не глушилось скриптом?</p>]]></content>
			<author>
				<name><![CDATA[netwizard]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33411</uri>
			</author>
			<updated>2015-10-13T07:15:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97984#p97984</id>
		</entry>
</feed>
