<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=14295&amp;type=atom" />
	<updated>2018-11-03T11:02:02Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=14295</id>
		<entry>
			<title type="html"><![CDATA[AHK: Получение координаты мыши]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=129609#p129609" />
			<content type="html"><![CDATA[<p>Добрый день. Решил сделать простенький скрипт для игры ,но не могу получить координаты мыши в игре. Пробовал и Pulover&#039;s Macro Creator и следующий скрипт<br /></p><div class="codebox"><pre><code>#Persistent
CoordMode, ToolTip, screen
SetTimer, WatchCursor, 100
return

WatchCursor:
CoordMode, mouse, Screen ; Coordinates are relative to the desktop (entire screen).
MouseGetPos, x_1, y_1, id_1, control_1

CoordMode, mouse, Window ; Synonymous with Relative and recommended for clarity.
MouseGetPos, x_2, y_2, id_2, control_2

CoordMode, mouse, Client ; Coordinates are relative to the active window&#039;s client area
MouseGetPos, x_3, y_3, id_3, control_3

ToolTip, Screen :`t`tx %x_1% y %y_1%`nWindow :`tx %x_2% y %y_2%`nClient :`t`tx %x_3% y %y_3%, % A_ScreenWidth-200, % A_ScreenHeight-200
return</code></pre></div><p>Все равно получаю координаты в игре x960y540&nbsp; куда бы я не наводил курсор или нажимал.</p>]]></content>
			<author>
				<name><![CDATA[composter]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=29447</uri>
			</author>
			<updated>2018-11-03T11:02:02Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=129609#p129609</id>
		</entry>
</feed>
