<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: dropfiles в активное "подокно" программы]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=8349</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8349&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: dropfiles в активное "подокно" программы».]]></description>
		<lastBuildDate>Fri, 31 May 2013 13:13:38 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: dropfiles в активное "подокно" программы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72596#p72596</link>
			<description><![CDATA[<p>Думаю проблема в &quot;Untitled-1 @ 25% (RGB/8)&quot;<br />Возможно стоит экранировать некоторые символы.<br />Были как то проблемы с определением окна с кучей символов в заголовке. Проверьте сначала есть ли определение:<br /></p><div class="codebox"><pre><code>MsgBox % WinExist(&quot;Untitled-1 @ 25% (RGB/8)&quot;)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Fri, 31 May 2013 13:13:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72596#p72596</guid>
		</item>
		<item>
			<title><![CDATA[AHK: dropfiles в активное "подокно" программы]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=72583#p72583</link>
			<description><![CDATA[<p>Добрый день необходимо дропнуть файл в &quot;подокно&quot; программы.<br />К примеру, открыт photoshop, в нем открыт документ. Дроп в Photoshop выполняет код ниже.<br />Как реализовать дроп именно в выбранный документ?<br />открытый документ = Untitled-1 @ 25% (RGB/8)</p><div class="codebox"><pre><code>
Winactivate , Adobe Photoshop
existPath = D:\блабла\img_0001
DropFiles( existPath &quot;.png&quot;, &quot;Untitled-1 @ 25% (RGB/8)&quot; )

DropFiles(ByRef fileList, windowTitle := &quot;&quot;, ctrl := &quot;&quot;, x := 0, y := 0, NCA := 0)
{
    offset := 20
    VarSetCapacity(dropFiles, StrLen(fileList) + offset, 0)
    pDP := &amp;dropFiles

    loop, parse, fileList, `n, `r
        StrPut(A_LoopField, pDP + offset, StrLen(A_LoopField), &quot;CP0&quot;)
        , offset += StrLen(A_LoopField) + 4
        , NumPut(0, pDP + offset - 4, &quot;UInt&quot;)

    NumPut(0, pDP + offset, &quot;UInt&quot;)
    NumPut(20, pDP + 0, &quot;UInt&quot;)
    NumPut(x, pDP + 4, &quot;UInt&quot;)
    NumPut(y, pDP + 8, &quot;UInt&quot;)
    NumPut(NCA, pDP + 12, &quot;UInt&quot;)
    NumPut(0, pDP + 16, &quot;UInt&quot;)

    nSize := offset + 4
    hDrop := DllCall(&quot;GlobalAlloc&quot;, &quot;UInt&quot;, 0x42, &quot;UInt&quot;, nSize, &quot;Ptr&quot;)
    pData := DllCall(&quot;GlobalLock&quot;, &quot;Ptr&quot;, hDrop, &quot;Ptr&quot;)
    DllCall(&quot;RtlMoveMemory&quot;, &quot;Ptr&quot;, pData, &quot;Ptr&quot;, pDP, &quot;UInt&quot;, nSize)
    DllCall(&quot;GlobalUnlock&quot;, &quot;Ptr&quot;, hDrop)

    PostMessage, 0x233, hDrop, 0, %ctrl%, %windowTitle%

}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Maxfashko)]]></author>
			<pubDate>Fri, 31 May 2013 02:55:12 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=72583#p72583</guid>
		</item>
	</channel>
</rss>
