<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Как определить ID кнопок]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=7317&amp;type=atom" />
	<updated>2012-07-01T20:54:16Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=7317</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить ID кнопок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61325#p61325" />
			<content type="html"><![CDATA[<p><strong>Александр_</strong>, Спасибо!)</p>]]></content>
			<author>
				<name><![CDATA[Lawlietb32]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27821</uri>
			</author>
			<updated>2012-07-01T20:54:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61325#p61325</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить ID кнопок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61324#p61324" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Lawlietb32 пишет:</cite><blockquote><p>В том то и дело, что я сначало создаю файл, открываю его и потом жму Ctrl+S и почему-то с каким бы я расширением не делал файл, он его создает в bmp формате, а мне надо png.</p></blockquote></div><p>Тогда F12.</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-07-01T19:26:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61324#p61324</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить ID кнопок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61323#p61323" />
			<content type="html"><![CDATA[<p>В том то и дело, что я сначало создаю файл, открываю его и потом жму Ctrl+S и почему-то с каким бы я расширением не делал файл, он его создает в bmp формате, а мне надо png. </p><p>Я сделал как-то так:<br /></p><div class="codebox"><pre><code>#NoEnv
SetWorkingDir %A_ScriptDir%
SetKeyDelay -1
DetectHiddenWindows, On
n=1
$^b::
    SetTitleMatchMode, 2
    Send, {PrintScreen}
    Sleep, 100
    Run, mspaint, , Hide
    WinWait, Paint
    WinGet, pnt, ID, Paint
    PostMessage, 0x111, 57637, 0, , ahk_id %pnt%
    PostMessage, 0x111, 57603, 0, , ahk_id %pnt%
    Sleep, 2000
    ControlSetText, Edit1, %n%, ahk_class #32770
    ControlSend, Button1, {Enter}, ahk_class #32770
    PostMessage, 0x111, 57665, 0, , ahk_id %pnt%
    WinWaitClose, %n%.bmp - Paint
    n++
    SetTitleMatchMode, 3
Return</code></pre></div><p>И кстати почему-то не хочет находить окно с названием &quot;Сохранить как&quot; ... но это уже отдельная история...</p>]]></content>
			<author>
				<name><![CDATA[Lawlietb32]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27821</uri>
			</author>
			<updated>2012-07-01T18:43:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61323#p61323</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как определить ID кнопок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61322#p61322" />
			<content type="html"><![CDATA[<p>эмм... Ctrl+S?</p>]]></content>
			<author>
				<name><![CDATA[Александр_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24888</uri>
			</author>
			<updated>2012-07-01T18:24:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61322#p61322</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как определить ID кнопок]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=61320#p61320" />
			<content type="html"><![CDATA[<p>Доброго времени суток!</p><p>Необходимо определить в mspaint какой код используется при нажатии на кнопку &quot;Сохранить как&quot;. Видел в этой теме: <a href="http://forum.script-coding.com/viewtopic.php?id=23">Сохранение скриншота в файл</a> код:<br /></p><div class="codebox"><pre><code>PostMessage, 0x111, 57603, 0, , PrScr.bmp - Paint</code></pre></div><p>Вот как определить этот идентификатор для кнопки &quot;Сохранить как&quot;? Пользовался программами Winspector Spy и Window Detective. Но они не могут отследить сообщение WM_COMMAND при нажатии на эти кнопки... У меня Windows 7 и подозреваю, что это связано с новым &quot;навароченным&quot; интерфейсом программы Paint.</p>]]></content>
			<author>
				<name><![CDATA[Lawlietb32]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27821</uri>
			</author>
			<updated>2012-07-01T16:58:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=61320#p61320</id>
		</entry>
</feed>
