<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Не стабильный resize]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10479&amp;type=atom" />
	<updated>2015-03-08T00:22:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10479</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92384#p92384" />
			<content type="html"><![CDATA[<p>Нет, отказался от этого пути.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2015-03-08T00:22:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92384#p92384</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92366#p92366" />
			<content type="html"><![CDATA[<p>Найдено решение?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-03-07T18:14:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92366#p92366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92349#p92349" />
			<content type="html"><![CDATA[<p>Вопрос снимается.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2015-03-07T10:20:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92349#p92349</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92345#p92345" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>
^1::
WinMove,A,,,,500,200
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2015-03-07T08:10:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92345#p92345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92339#p92339" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Next пишет:</cite><blockquote><p>Иногда.</p></blockquote></div><p>При каких условиях, это самое &quot;иногда&quot; случается?<br />Было бы проще, если бы можно было увидеть ваш код.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-03-07T03:44:59Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92339#p92339</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92336#p92336" />
			<content type="html"><![CDATA[<p>Можно через PostMessage выполнить те же действия, что выполняются мышкой при изменении размера окна?&nbsp; Я пытался поймать через Winspector по wm_size, размерам окна до и после,&nbsp; но утонул в куче сообщений, не смотря на фильтры и ловлю миллисекунд. Знать бы точно что искать.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2015-03-07T01:13:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92336#p92336</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92334#p92334" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>ypppu пишет:</cite><blockquote><p>Что-то там получилось, когда прикрутили оконные сообщения.</p></blockquote></div><p>&nbsp; Работает также как и winmove.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2015-03-06T18:23:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92334#p92334</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92332#p92332" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>Окно активно во время выполнения WinMove?<br />Если да, то можно так:<br /></p><div class="codebox"><pre><code>winmove,% &quot;ahk_id &quot; WinExist(&quot;A&quot;),,,,800,600
</code></pre></div></blockquote></div><p>&nbsp; Именно winmove и не работает. Иногда.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2015-03-06T18:15:43Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92332#p92332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92331#p92331" />
			<content type="html"><![CDATA[<p>На аглицком форуме <a href="http://www.autohotkey.com/board/topic/7274-winmove-problem-with-putty/">похожая проблема</a> обсуждалась.<br />Что-то там получилось, когда прикрутили оконные сообщения. Ещё команда <em>DllCall</em> закомментирована, можно попытаться вместо <em>WinMove</em> использовать.<br /></p><div class="codebox"><pre><code>F8::
SetTitleMatchMode, 2
IfWinExist, PuTTY ahk_class PuTTY
{
    WinGet, hwndputty, id
    ;hwndputty:=&quot;ahk_id &quot; hwndputty
    WinGetTitle, t, ahk_id %hwndputty%
    WinGetPos, x, y, w, h
    msgbox=,
    (LTrim
        hwndputty(%hwndputty%)
        t(%t%)
        x(%x%) y(%y%) w(%w%) h(%h%)
    )
    ;WinMove, , , , , , % h+15
    MoveWindow(hwndputty, x, y, w, h+15)
    WinGetPos, x, y, w, h
    msgbox=,
    (LTrim
        hwndputty(%hwndputty%)
        t(%t%)
        x(%x%) y(%y%) w(%w%) h(%h%)
    )
}
Else msgbox, 16, , PuTTY not found!
return

MoveWindow(hwnd, x, y, w=&quot;&quot;, h=&quot;&quot;, repaint=1)
{
    WM_ENTERSIZEMOVE=0x0231
     WM_EXITSIZEMOVE=0x0232
    SendMessage, WM_ENTERSIZEMOVE
    WinMove, , , x, y, w, h
    ;DllCall(&quot;MoveWindow&quot;, &quot;UInt&quot;, hwnd, &quot;Int&quot;, x, &quot;Int&quot;, y, &quot;Int&quot;, w, &quot;Int&quot;, h, &quot;Int&quot;, repaint)
    SendMessage, WM_EXITSIZEMOVE
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-03-06T18:12:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92331#p92331</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92329#p92329" />
			<content type="html"><![CDATA[<p>Окно активно во время выполнения WinMove?<br />Если да, то можно так:<br /></p><div class="codebox"><pre><code>winmove,% &quot;ahk_id &quot; WinExist(&quot;A&quot;),,,,800,600
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2015-03-06T17:29:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92329#p92329</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92328#p92328" />
			<content type="html"><![CDATA[<p>Оконный. Можно сворачивать, есть рамка, за которую можно тянуть меняя размер окна.&nbsp; Приложение смешанное, графика, текст.</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2015-03-06T17:16:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92328#p92328</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92327#p92327" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p><a href="http://www.openclass.ru/node/270003">Открытый класс</a><br /><strong> PS!</strong> Нужно уметь отличать случаи скрытого противопоставления:<br />1) к такому предложению можно задать вопрос<br /><em>Пример: </em>Мы посадили не серебристую ель. (А какую?)<br />2) такое предложение можно продлить при помощи одного из противительных союзов<br /><em>Пример: </em>Мы посадили не серебристую ель, а зелёную.</p></blockquote></div><p>Не стабильный resize, а изменчивый. Так что тут всё нормально (хотя, resize можно было на русский перевести).</p><p>Поэтому можно перейти к вопросу - в каком приложении так бывает? Режим окна оконный? Приложение графическое?</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2015-03-06T16:53:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92327#p92327</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92325#p92325" />
			<content type="html"><![CDATA[<p><strong>Next</strong>, скоро придет строгий модератор и скажет:<br /></p><div class="quotebox"><blockquote><p><span style="color: green"><strong>Next</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте свой пост.</span></p></blockquote></div><p>Так что лучше это сделать самостоятельно. А потом придет второй модератор, и они вдвоем расскажут тебе свой взгляд на выражение &quot;Не стабильный&quot;. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2015-03-06T15:02:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92325#p92325</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Не стабильный resize]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=92323#p92323" />
			<content type="html"><![CDATA[<p>Hi!<br />В некоторых приложениях WinMove почему-то не меняет размер окна, даже там, где руками он легко меняется. Можно как-то помочь этой команде выполнить resize?</p>]]></content>
			<author>
				<name><![CDATA[Next]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28517</uri>
			</author>
			<updated>2015-03-06T13:19:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=92323#p92323</id>
		</entry>
</feed>
