<?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=15420&amp;type=atom" />
	<updated>2020-06-21T14:16:08Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15420</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140218#p140218" />
			<content type="html"><![CDATA[<p>Попробуй так:<br /></p><div class="codebox"><pre><code>CapsLock::
BlockInput, SendAndMouse 
BlockInput, On 
SetKeyDelay, 0 
CoordMode, Mouse, Screen ; Команда CoordMode Устанавливает режим координат для различных команд относительно активного окна или экрана
MouseGetPos, xpos, ypos
DllCall(&quot;SetCursorPos&quot;, int, 1674, int, 187)
sleep, 10
Click, Down
KeyWait, LButton ; Ждем нажатия и отжатия левой кнопки мыши
Click, Up
DllCall(&quot;SetCursorPos&quot;, int, xpos, int, ypos)
BlockInput, off 
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Sensey777]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40871</uri>
			</author>
			<updated>2020-06-21T14:16:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140218#p140218</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140027#p140027" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Romansokol пишет:</cite><blockquote><p>чтобы отжать зажатие необходимо заново нажать <span class="bbu">ЛКМ</span></p></blockquote></div><p>А по коду — <span class="bbu">CapsLock</span>.<br /></p><div class="quotebox"><cite>Romansokol пишет:</cite><blockquote><p>при нажатии ЛКМ происходил возврат на начальные координаты</p></blockquote></div><p>Создать подпрограмму горячей клавиши по нажатию LButton, где использовать MouseMove.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2020-06-05T22:33:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140027#p140027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=140003#p140003" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>Romansokol</strong>, добавьте префикс скриптового языка в заголовок темы. Оформите код тегом &quot;code&quot;.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2020-06-04T20:22:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=140003#p140003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=139998#p139998" />
			<content type="html"><![CDATA[<p>Помогите пожалуйста, я сделал скрипт который отправляет мышь для зажатия ЛКМ в одну точку капс локом, но чтобы отжать зажатие необходимо заново нажать ЛКМ.</p><p>Как сделать так, что бы при нажатии ЛКМ происходил возврат на начальные координаты, а не оставалось в новой позиции<br /></p><div class="codebox"><pre><code>
CapsLock::
BlockInput, SendAndMouse 
BlockInput, On 
SetKeyDelay, 0 
MouseGetPos, xpos, ypos
DllCall(&quot;SetCursorPos&quot;, int, 1674, int, 187)
sleep, 10
Toggle = !Toggle
If Toggle
   Click, Down
else
   Click, Up
DllCall(&quot;SetCursorPos&quot;, int, xpos, int, ypos)
BlockInput, off 
return
</code></pre></div><p>Что я неправильно сделал?</p>]]></content>
			<author>
				<name><![CDATA[Romansokol]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40881</uri>
			</author>
			<updated>2020-06-04T18:55:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=139998#p139998</id>
		</entry>
</feed>
