<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=15420</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15420&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: скрипт на возврат координат при отжатии ЛКМ».]]></description>
		<lastBuildDate>Sun, 21 Jun 2020 14:16:08 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=140218#p140218</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Sensey777)]]></author>
			<pubDate>Sun, 21 Jun 2020 14:16:08 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=140218#p140218</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=140027#p140027</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Fri, 05 Jun 2020 22:33:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=140027#p140027</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=140003#p140003</link>
			<description><![CDATA[<p><span style="color: green"><strong>Romansokol</strong>, добавьте префикс скриптового языка в заголовок темы. Оформите код тегом &quot;code&quot;.</span></p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Thu, 04 Jun 2020 20:22:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=140003#p140003</guid>
		</item>
		<item>
			<title><![CDATA[AHK: скрипт на возврат координат при отжатии ЛКМ]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=139998#p139998</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (Romansokol)]]></author>
			<pubDate>Thu, 04 Jun 2020 18:55:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=139998#p139998</guid>
		</item>
	</channel>
</rss>
