<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Модификаторы клавиш]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=11600&amp;type=atom" />
	<updated>2016-05-19T06:59:27Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=11600</id>
		<entry>
			<title type="html"><![CDATA[Re: Модификаторы клавиш]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103948#p103948" />
			<content type="html"><![CDATA[<p><a href="http://www.script-coding.com/AutoHotkey/Hotkeys.html">&#039;&#039;~&#039;&#039; -&nbsp; Означает, что скрипт не блокирует нажатие клавиши.</a><br /></p><div class="codebox"><pre><code>~LButton::
~^LButton::
While GetKeyState(&quot;LButton&quot;, &quot;P&quot;) {
   moveAmount := (moveAmount = 2) ? 3 : 0
   If GetKeyState(&quot;LCtrl&quot;, &quot;P&quot;)
   mouseXY(moveAmount,6)
   Else 
   mouseXY(moveAmount,4)
   Sleep 5
}
Return

mouseXY(x,y) {
DllCall(&quot;mouse_event&quot;,int,1,int,x,int,y,uint,0,uint,0)
}</code></pre></div><p>Не понимаю для чего в скрипте строка:<br /></p><div class="codebox"><pre><code>moveAmount := (moveAmount = 2) ? 3 : 0</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Nikva]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27416</uri>
			</author>
			<updated>2016-05-19T06:59:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103948#p103948</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Модификаторы клавиш]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103926#p103926" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>MrResolute</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=9590">этой</a> темой, отредактируйте свой пост.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2016-05-18T13:56:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103926#p103926</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Модификаторы клавиш]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=103925#p103925" />
			<content type="html"><![CDATA[<p>Есть скрипт:<br /></p><div class="codebox"><pre><code>~LButton::
Loop
	If GetKeyState(&quot;LButton&quot;, &quot;LCtrl&quot;) {
		Sleep, 5
		moveAmount := (moveAmount = 2) ? 3 : 0
 		mouseXY(moveAmount,4)
		
	}
	else
	break
	
Return



mouseXY(x,y)
{
DllCall(&quot;mouse_event&quot;,int,1,int,x,int,y,uint,0,uint,0)
}</code></pre></div><p>Что означают знаки &#039;&#039;~&#039;&#039; перед клавишами действий? Мне надо узнать, как переписать скрипт, чтобы курсор опускался вниз при нажатии lbutton со скоростью 4, а при нажатии ctrl+lbutton - со скоростью 6?</p><p>По скрипту я вижу, что он должен работать только при зажатой ctrl и lbutton, но он работает и без ctrl.</p>]]></content>
			<author>
				<name><![CDATA[MrResolute]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33139</uri>
			</author>
			<updated>2016-05-18T13:54:41Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=103925#p103925</id>
		</entry>
</feed>
