<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Плавное всплытие (отрисовка) окна уведомления]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=12639</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=12639&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Плавное всплытие (отрисовка) окна уведомления».]]></description>
		<lastBuildDate>Thu, 27 Apr 2017 18:56:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Плавное всплытие (отрисовка) окна уведомления]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115365#p115365</link>
			<description><![CDATA[<p>Идея взята у <strong>teadrinker</strong>.<br /></p><div class="codebox"><pre><code>Gui +hwndhGui2 -Caption +ToolWindow +AlwaysOnTop
Gui Add, Text,, Здесь какая-то информация
Return

F1::
	if i := !i
		Gui Show, % &quot;x&quot; A_ScreenWidth - 250 &quot; y&quot; A_ScreenHeight - 200 &quot; h&quot; 100 &quot; hide&quot;
	DllCall(&quot;AnimateWindow&quot;, Ptr, hGui2, UInt, 400, UInt, 0x40000|(i ? 1 : 0x10002))
	Return
Esc::ExitApp</code></pre></div><p>Иногда оставляет мусор на экране и не совсем плавно.</p><p>P.S.<br />Notify() умеет красиво это. Используйте лучше ее.</p>]]></description>
			<author><![CDATA[null@example.com (stealzy)]]></author>
			<pubDate>Thu, 27 Apr 2017 18:56:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115365#p115365</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Плавное всплытие (отрисовка) окна уведомления]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115360#p115360</link>
			<description><![CDATA[<p><span style="color: green">Заголовок &quot;AHK: плавное перемещение окна&quot; исправлен на соответствующий запросу.</span></p>]]></description>
			<author><![CDATA[null@example.com (Flasher)]]></author>
			<pubDate>Thu, 27 Apr 2017 18:38:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115360#p115360</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Плавное всплытие (отрисовка) окна уведомления]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=115359#p115359</link>
			<description><![CDATA[<p>Интересует такая штука, как плавное перемещение окна. Думаю у всех были антивирусники, стим и пр. ПО. Так вот, в них, выскакивает в нижнем правом углу уведомление. Как можно реализовать это в AHK?<br />Ставить таймер и GUI, Show со сменой X и Y?</p><p>P.S. проще говоря, выскакивающее уведомление.</p><p>Что-то непонятное:<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>Window2Create:
Global ScreenWidth := A_ScreenWidth
Global ScreenHeight := A_ScreenHeight
Window2Width := 200
Window2Height := 50
Window2PosX := ScreenWidth - Window2Width
Window2PosY := ScreenHeight - Window2Height - 40

Window2StartPosX := ScreenWidth - Window2Width
Window2StartPosY := ScreenHeight

Window2CurrentPosX := Window2StartPosX
Window2CurrentPosY := Window2StartPosY

Window2Name := &quot;AHK Script&quot;

Gui Window2: +LastFound -Caption -ToolWindow +hwndhMainMenu
Gui, Window2: Margin, 10, 10
Gui, Window2: Color, 212121


Gui, Window2: Add, Progress, x0 y0 w%Window2Width% h6 c%g_Window2RainBow1c% Background%cpbg%
Gui, Window2: Add, Progress, x0 y394 w%Window2Width% h6 c%g_Window2RainBow2c% Background%cpbg%

Gui, Window2: Show, % &quot;x&quot;Window2StartPosX &quot;y&quot;Window2StartPosY &quot;w&quot;Window2Width &quot;h&quot;Window2Height, % Window2Name
OnMessage(0x201, &quot;WM_LBUTTONDOWN&quot;)
SetTimer, Move, 1
Return

Move:
If(Window2CurrentPosY &gt; Window2PosY)
{
	Window2CurrentPosY-=1
	WinMove, %Window2Name%,,, %Window2CurrentPosY%
}
Return

WM_LBUTTONDOWN(wParam, lParam, msg, hwnd) ; WM_LBUTTONDOWN() by an AHK-Member
{
    global hMainMenu
    if (hwnd = hMainMenu)
    {
        PostMessage, 0xA1, 2,,, % Window2Name
    }
}


</code></pre></div></div></div>]]></description>
			<author><![CDATA[null@example.com (MandarinKa02)]]></author>
			<pubDate>Thu, 27 Apr 2017 18:29:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=115359#p115359</guid>
		</item>
	</channel>
</rss>
