<?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=12958&amp;type=atom" />
	<updated>2017-09-13T21:46:30Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12958</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как переместить мышку на заданные координаты]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119329#p119329" />
			<content type="html"><![CDATA[<p><strong>Kakuo</strong><br /></p><div class="codebox"><pre><code>
;Выбираете любую, редко используемую клавишу, например,
;  правый Ctrl:
RControl::
    MouseGetPos x0,   y0  ; - получение текущих координат указателя мыши
    koordinatoj_0 := &quot;x = &quot; . x0 . &quot;   y = &quot; . y0
    InputBox koordinatoj_1,   Получение||установка новых координат указателя
        ,   Текущие координаты: %koordinatoj_0% `n Введите новые координаты:
    if ErrorLevel || (StrLen(koordinatoj_1) == 0)
        return
    ; Извлечение координат из строки:
    x1 := RegExReplace(koordinatoj_1, &quot;[^0-9]*(\d+).*&quot;, &quot;$1&quot;)
    y1 := RegExReplace(koordinatoj_1, &quot;[^0-9]*\d+[^0-9]+(\d+).*&quot;, &quot;$1&quot;)
    ; Проверка полученных значений:
    x1 := StrLen(x1) &gt; 0 ? x1 : x0
    y1 := StrLen(y1) &gt; 0 ? y1 : y0
    ; Перемещение указателя мыши:
    MouseMove % x1,   y1
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[vvvzn78]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38756</uri>
			</author>
			<updated>2017-09-13T21:46:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119329#p119329</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как переместить мышку на заданные координаты]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118936#p118936" />
			<content type="html"><![CDATA[<p>Здесь это есть.</p>]]></content>
			<author>
				<name><![CDATA[sabir.yanin2014]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=33790</uri>
			</author>
			<updated>2017-08-30T15:10:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118936#p118936</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как переместить мышку на заданные координаты]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118930#p118930" />
			<content type="html"><![CDATA[<p>Справка + базовый английский - залог успеха новичка.</p>]]></content>
			<author>
				<name><![CDATA[belyankin12]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34408</uri>
			</author>
			<updated>2017-08-30T13:23:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118930#p118930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:Как переместить мышку на заданные координаты]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=118928#p118928" />
			<content type="html"><![CDATA[<p>Как переместить мышку на заданные координаты по нажатию клавиши.<br />И как узнать координаты.<br /></p><div class="codebox"><pre><code>Numpad9::
DllCall(&quot;SetCursorPos&quot;, int, 100, int, 400)</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Kakuo]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38615</uri>
			</author>
			<updated>2017-08-30T12:53:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=118928#p118928</id>
		</entry>
</feed>
