<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: DllCall]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=15899&amp;type=atom" />
	<updated>2020-12-08T17:55:46Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=15899</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144029#p144029" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Спасибо!!</p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T17:55:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144029#p144029</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144027#p144027" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
DllCall(&quot;MoveWindow&quot;, &quot;ptr&quot;, UniqueID, &quot;int&quot;, 5, &quot;int&quot;, 5, &quot;int&quot;, 300, &quot;int&quot;, 300, &quot;int&quot;, true)
</code></pre></div><p>Числа пишутся без кавычек. Типа &quot;bool&quot; в DllCall нет, если только недавно не добавили. Вместо него можно &quot;int&quot;. Для типа HANDLE, HWND и т.п. используется &quot;ptr&quot;.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2020-12-08T17:42:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144027#p144027</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144026#p144026" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Можно ещё маленький вопросик?<br /></p><div class="codebox"><pre><code>DllCall(&quot;MoveWindow&quot;, UniqueID, &quot;int&quot;, &quot;5&quot;, &quot;int&quot;, &quot;5&quot;, &quot;int&quot;, &quot;300&quot;, &quot;int&quot;, &quot;300&quot;, &quot;bool&quot;, true)</code></pre></div><p>Я не совсем понял в какой последовательности и как указывать тип параметров.</p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T17:13:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144026#p144026</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144025#p144025" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Спасибо за помощь!</p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T16:57:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144025#p144025</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144024#p144024" />
			<content type="html"><![CDATA[<p><strong>basstech</strong>, MoveWindow тоже работает с окном, а не с клиентской его частью. Можно вычислить размеры окна по размерам клиентской области через API-функцию AdjustWindowRect.</p><p>DllCall описана в справке АНК.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2020-12-08T16:45:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144024#p144024</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144023#p144023" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Дело в том, что мне важно получить размер окна без рамки и изменить исходя из этого размер другого, а WinMove выставляет размер с учётом рамки. В теории, окей, я теперь могу вычесть значение окна рамки и без рамки и использовать WinMove, но это не очень красиво как по мне.</p><p>DllCall, я понимаю, где можно почитать как заполнять DllCall? Это как регулярки, один раз выучи и всё)<br />Или чтобы использовать DllCall нужно знать как написать код на плюсах и от этого прыгать?</p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T16:10:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144023#p144023</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144022#p144022" />
			<content type="html"><![CDATA[<p><strong>basstech</strong>, она вызывается через DllCall, как и все они. Только зачем её использовать? В чём выгода против WinMove?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2020-12-08T16:07:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144022#p144022</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144021#p144021" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br /><a href="https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-movewindow">https://docs.microsoft.com/en-us/window … movewindow</a></p><p>Где можно посмотреть как использовать эту функцию в АХК? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T15:50:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144021#p144021</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144020#p144020" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />А что это за API функции? Где можно почитать как с ними работать?</p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T15:48:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144020#p144020</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144019#p144019" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Спасибо, оно! А подобное можно провернуть с WinMove?</p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T15:36:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144019#p144019</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144018#p144018" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
Hwnd := WinExist(&quot;Window Title&quot;)
VarSetCapacity(Rect, 16)
DllCall(&quot;GetClientRect&quot;, &quot;ptr&quot;, Hwnd, &quot;ptr&quot;, &amp;Rect)
width := NumGet(Rect, 8, &quot;uint&quot;)
height := NumGet(Rect, 12, &quot;uint&quot;)

MsgBox, %width% %height%
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2020-12-08T15:23:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144018#p144018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144017#p144017" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Можно, пожалуйста, пример как применять GetClientRect?</p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T15:11:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144017#p144017</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144016#p144016" />
			<content type="html"><![CDATA[<p><strong>YMP</strong><br />Не совсем понял. Вопрос был о том, узнать размер окна без рамки. CoordMode определяет применение второго парам-ра Client для функций из первого парам-ра.<br />В первом параметре нет ничего, что укажет wingetpos, что конкретно нужно определять.</p>]]></content>
			<author>
				<name><![CDATA[basstech]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=41121</uri>
			</author>
			<updated>2020-12-08T15:10:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144016#p144016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144015#p144015" />
			<content type="html"><![CDATA[<p>Хотя да, эта команда там в Related не упомянута. Тогда можно использовать API-функцию GetClientRect.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2020-12-08T15:09:19Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144015#p144015</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: DllCall]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=144014#p144014" />
			<content type="html"><![CDATA[<p><strong>basstech</strong>, там же ещё второй параметр есть, а у него значение Client.</p><div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>С помощью WinGetPos можно узнать только координаты всего окна.</p></blockquote></div><p>Вопрос-то был про размер.</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2020-12-08T15:05:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=144014#p144014</id>
		</entry>
</feed>
