<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Некорректное смещение курсора при DllCall]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=16369</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16369&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Некорректное смещение курсора при DllCall».]]></description>
		<lastBuildDate>Wed, 19 May 2021 18:34:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Некорректное смещение курсора при DllCall]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=148005#p148005</link>
			<description><![CDATA[<p>Не обновил страницу когда решил написать.</p>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Wed, 19 May 2021 18:34:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=148005#p148005</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Некорректное смещение курсора при DllCall]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=147998#p147998</link>
			<description><![CDATA[<p><strong>__Михаил__</strong>, а <a href="https://forum.script-coding.com/viewtopic.php?pid=147992#p147992">тут</a> не нашли? <img src="//forum.script-coding.com/img/smilies/wink.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 19 May 2021 17:52:48 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=147998#p147998</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Некорректное смещение курсора при DllCall]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=147997#p147997</link>
			<description><![CDATA[<p><a href="https://autohotkey.com/board/topic/14356-different-co-ords-for-dllcall-getpixel-and-mouse-event/">Тут</a> нашёл инфу об этом.</p><p>Возвращает обратно в место, где был курсор при нажатии на F2:</p><div class="codebox"><pre><code>F2:: 
CoordMode, Mouse, Screen
MouseGetPos, X, Y
Sleep, 500
X := X*65535/A_ScreenWidth
Y := Y*65535/A_ScreenHeight
DllCall(&quot;mouse_event&quot;, uint,0x8001, int, X, int, Y, uint,0, int,0 )
Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (__Михаил__)]]></author>
			<pubDate>Wed, 19 May 2021 17:24:54 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=147997#p147997</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Некорректное смещение курсора при DllCall]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=147992#p147992</link>
			<description><![CDATA[<p>Почему такое происходит, должна объяснять следующая цитата из статьи о <a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-mouse_event">mouse_event function</a>:<br /></p><div class="quotebox"><blockquote><p>If the MOUSEEVENTF_ABSOLUTE value is not specified, dx and dy specify relative motions from when <em>the last mouse event was generated</em> (the last reported position).</p></blockquote></div><p>Можно использовать абсолютные координаты, а не относительные.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 19 May 2021 16:36:29 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=147992#p147992</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Некорректное смещение курсора при DllCall]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=147988#p147988</link>
			<description><![CDATA[<p>Причем смещение появляется именно при первом вызове функции.<br />Если сделать цикл через Loop, то все последующие &quot;движения&quot; работают как и должны.</p>]]></description>
			<author><![CDATA[null@example.com (Simachev.one)]]></author>
			<pubDate>Wed, 19 May 2021 11:48:22 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=147988#p147988</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Некорректное смещение курсора при DllCall]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=147986#p147986</link>
			<description><![CDATA[<p>Доброго времени суток.<br />При использовании последовательности команд<br />DllCall(&quot;mouse_event&quot;, uint, 1, int, x, int, y, uint, 0, int, 0) и<br />DllCall(&quot;mouse_event&quot;, uint, 1, int, -x, int, -y, uint, 0, int, 0)<br />Курсор возвращается не в исходное положение, а со смещением.<br />Кто может подсказать, где искать решение проблемы?<br />Заранее признателен за ответ.</p>]]></description>
			<author><![CDATA[null@example.com (Simachev.one)]]></author>
			<pubDate>Wed, 19 May 2021 09:03:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=147986#p147986</guid>
		</item>
	</channel>
</rss>
