<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как определить параметры для PostMessage]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13076&amp;type=atom" />
	<updated>2017-10-19T02:30:33Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13076</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120186#p120186" />
			<content type="html"><![CDATA[<p>Так проверьте это сами кодом из 29 поста.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-10-19T02:30:33Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120186#p120186</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120184#p120184" />
			<content type="html"><![CDATA[<p>Попробовал ловить с помощью Вашего скрипта, в результате - при выделении любого пункта верхнего меню Paint&nbsp; A_Index определяется как 601 (F10), при нажатии F11 - 602<br />Подставляю значение в SendMessage:</p><p>SendMessage,0x111,601,,,ahk_class MSPaintApp</p><p>Никакого результата, может я не так что-то делаю. Помогите пожалуйста.</p>]]></content>
			<author>
				<name><![CDATA[AndAsh]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38807</uri>
			</author>
			<updated>2017-10-19T02:12:00Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120184#p120184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120144#p120144" />
			<content type="html"><![CDATA[<p>Так же, как и teadrinker.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2017-10-17T23:37:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120144#p120144</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120143#p120143" />
			<content type="html"><![CDATA[<p>Так в принципе так и должно быть, что если приложение wm_command обрабатывает, то возвращает 0.<br />А тут видно в этом и заключается хак - приложение это сообщение не обрабатывает, но действие выполняет.<br />Непонятно только почему.<br /><strong>svoboden</strong>, как вы обнаружили значения wm_command?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-10-17T23:28:04Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120143#p120143</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120139#p120139" />
			<content type="html"><![CDATA[<p>Неправильно выразился. SendMessage может вызывать команду, даже если ее возврат (ErrorLevel) равен 0.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-10-17T21:55:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120139#p120139</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120138#p120138" />
			<content type="html"><![CDATA[<p>Если использовать PostMessage, тогда пауза обязательна, т. к. PostMessage не предусматривает ожидания ответа.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-17T21:46:09Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120138#p120138</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120137#p120137" />
			<content type="html"><![CDATA[<p>Вру, в пейнте ловит как у вас, в Word 2007 половина команд выполняются с ErrorLevel = 0.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-10-17T21:29:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120137#p120137</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120136#p120136" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>Проще сделать паузу безусловной.</p></blockquote></div><p>Ну это если есть желание убить пару вечеров, то можно. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-17T21:22:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120136#p120136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120134#p120134" />
			<content type="html"><![CDATA[<p>У меня ловит подряд начиная с 601 — Выделить, 602, 603, 604 и т. д., пробовал на семёрке и на десятке. Может имеет смысл Sleep, 10 добавить.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-17T21:20:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120134#p120134</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120133#p120133" />
			<content type="html"><![CDATA[<p><a href="http://www.oldversion.com.ru/windows/microsoft-paint-xp">Paint из XP</a>.<br /><strong>teadrinker</strong>, при бруте вашим кодом в MS Word 2007 ErrorLevel ловит одну команду из пяти, остальные оставляют ErrorLevel равным 0. Проще сделать паузу безусловной.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-10-17T21:14:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120133#p120133</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120130#p120130" />
			<content type="html"><![CDATA[<p>Ещё возможно, что такой механизм использовался в ранних версиях, а нынешним достался по наследству.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-17T18:51:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120130#p120130</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120129#p120129" />
			<content type="html"><![CDATA[<p>Наверное так оно и есть.<br />На всякий случай проверил с API Monitor - результат такой же.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-10-17T18:24:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120129#p120129</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120125#p120125" />
			<content type="html"><![CDATA[<p>Ну это скорее всего один из предусмотренных механизмов управления, в самом приложении наверно он не используется.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-17T17:33:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120125#p120125</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120124#p120124" />
			<content type="html"><![CDATA[<p>А почему тогда spy++ не отлавливает?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2017-10-17T17:06:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120124#p120124</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить параметры для PostMessage]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=120115#p120115" />
			<content type="html"><![CDATA[<p>Вспомнил этот хак.<br /></p><div class="codebox"><pre><code>$F10::
Loop % 0xFFFFFFFF {
   SendMessage, 0x111, A_Index,,, ahk_class MSPaintApp
   if ErrorLevel {
      ToolTip % A_Index
      Pause
   }
}

$F11::Pause</code></pre></div><p>При появлении ToolTip&#039;а смотрим на реакцию, что выделено, что появилось. Иногда нужно сначала поводить по пайнту мышью, чтобы выделение сменилось. Определили — жмём F11.<br />Так можно и другие приложения исследовать.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-17T04:34:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=120115#p120115</id>
		</entry>
</feed>
