<?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=10921&amp;type=atom" />
	<updated>2015-09-04T17:25:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10921</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97096#p97096" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong>, спасиб огромное !</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2015-09-04T17:25:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97096#p97096</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97095#p97095" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
FuncClick(this_id)  { 
    x := 104, y := 142  
    GetClientPos(WinExist(&quot;ahk_pid&quot; this_id), left, top) 
    ControlClick, % &quot;X&quot; x+left &quot; Y&quot; y+top
}

GetClientPos(hwnd, ByRef left, ByRef top)  {
    VarSetCapacity(pwi, 60, 0), NumPut(60, pwi, 0, &quot;UInt&quot;)
    DllCall(&quot;GetWindowInfo&quot;, &quot;Ptr&quot;, hwnd, &quot;UInt&quot;, &amp;pwi)
    top:=NumGet(pwi,24,&quot;int&quot;)-NumGet(pwi,8,&quot;int&quot;)
    left:=NumGet(pwi,52,&quot;int&quot;) 
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2015-09-04T17:20:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97095#p97095</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97094#p97094" />
			<content type="html"><![CDATA[<p><strong>Задача:</strong><br /></p><div class="quotebox"><blockquote><p>Есть неактивное окно с определённым ID (this_id).<br />Требуется совершить в нём клик по клиентским координатам (при этом не активируя окно).</p></blockquote></div><p>И не имеет значение с <em>CoordMode</em> или без.<br /><em>CoordMode</em> для визуального примера был упомянут. Я ещё в 1-ом посте описал, что меня терзают смутные сомнения его использовать !</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2015-09-04T17:18:31Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97094#p97094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97092#p97092" />
			<content type="html"><![CDATA[<p>А кто сказал, что команда <em>ControlClick</em> подчиняется <em>CoordMode</em>?</p><div class="quotebox"><blockquote><p><strong>CoordMode</strong><br />Sets coordinate mode for various commands to be relative to either the active window or the screen.<br /></p><ul><li><p>Param1 <strong>Mouse:</strong> Affects MouseGetPos, Click, and MouseMove/Click/Drag.</p></li></ul></blockquote></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-09-04T17:01:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97092#p97092</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97090#p97090" />
			<content type="html"><![CDATA[<p>Есть неактивное окно с определённым ID (this_id).</p><p>Требуется совершить в нём клик по клиентским координатам, типа:<br /></p><div class="codebox"><pre><code>
WinGet, active_id, ID, A
CoordMode, Mouse, Client
Click %x%, %y%
</code></pre></div><p>(при этом не активируя окно)</p><div class="codebox"><pre><code>ControlClick, X%x% Y%y%, ahk_pid %this_id%,,LEFT,1</code></pre></div><p>Тут <em>ControlClick</em> норм работает и кликает в неактивном окне, но я не могу привязать его к клиентской части</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2015-09-04T16:07:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97090#p97090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97088#p97088" />
			<content type="html"><![CDATA[<p>Так я не пойму, задача в том, чтобы определить координаты клиентской области окна?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-09-04T15:34:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97088#p97088</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97087#p97087" />
			<content type="html"><![CDATA[<p>Поправил.</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2015-09-04T14:07:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97087#p97087</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97086#p97086" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>Hydrogenium</strong>, <a href="http://forum.script-coding.com/viewtopic.php?id=6148">не нужно</a> цитировать предыдущий пост. Отредактируйте свои сообщения.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-09-04T14:02:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97086#p97086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97085#p97085" />
			<content type="html"><![CDATA[<p>В заголовке темы и сказано про определение &quot;клиентских&quot; координат, а не про что-то другое.</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2015-09-04T13:59:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97085#p97085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97084#p97084" />
			<content type="html"><![CDATA[<p>Значит Вы научились пользоваться&nbsp; <em>ControlClick</em>. Осталось попасть.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-09-04T13:58:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97084#p97084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97083#p97083" />
			<content type="html"><![CDATA[<p>Это для теста на калькуляторе:<br /></p><div class="codebox"><pre><code>1::ControlClick, x102 y200, Калькулятор</code></pre></div><p>А код:<br /></p><div class="codebox"><pre><code>
F10::     
    1::ControlClick, x300 y300, Безымянный - Paint
Return
</code></pre></div><p>Рисует линии<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><p><span class="postimg"><img src="http://f6.s.qip.ru/OgbqiopU.png" alt="http://f6.s.qip.ru/OgbqiopU.png" /></span></p></div></div>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2015-09-04T13:44:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97083#p97083</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97082#p97082" />
			<content type="html"><![CDATA[<p>На клиентские <em>ЧТО</em> не реагирует?</p><p>Где в программе Paint цифры 9 и 3?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-09-04T13:31:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97082#p97082</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97079#p97079" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>1::ControlClick, x102 y200, Калькулятор</code></pre></div><p>Если окно не свёрнуто, то на клиентские не реагирует и кликает цифру &quot;9&quot;<br />Если окно свёрнуто, то кликает по клиентским координатам (цифра &quot;3&quot;)</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2015-09-04T13:06:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97079#p97079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97071#p97071" />
			<content type="html"><![CDATA[<p>Попробуйте в Paint. У меня работает хоть в неактивном, хоть в свёрнутом окне:<br /></p><div class="codebox"><pre><code>1::ControlClick, x300 y300, Безымянный - Paint</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-09-04T07:49:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97071#p97071</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не могу определить клиентские координаты для клика]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=97069#p97069" />
			<content type="html"><![CDATA[<p>Как быть ?</p>]]></content>
			<author>
				<name><![CDATA[Hydrogenium]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30160</uri>
			</author>
			<updated>2015-09-04T06:32:23Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=97069#p97069</id>
		</entry>
</feed>
