<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Замена картинки в GUI.]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=13345</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=13345&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Замена картинки в GUI.».]]></description>
		<lastBuildDate>Tue, 02 Jan 2018 10:00:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Замена картинки в GUI.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122705#p122705</link>
			<description><![CDATA[<p><strong>ypppu</strong>, спасибо за ответ.</p>]]></description>
			<author><![CDATA[null@example.com (Limon4ek)]]></author>
			<pubDate>Tue, 02 Jan 2018 10:00:42 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122705#p122705</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Замена картинки в GUI.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122704#p122704</link>
			<description><![CDATA[<p>В качестве ControlID не нужно использовать static1. Сегодня он static1, завтра уже static25. Если окно GUI своё, лучше использовать команду <em>GuiControl</em> и внутреннюю переменную, ассоциированную с данным ЭУ. Static1 используется, как правило, с командой <em>Control</em> в крайнем случае, если окно не своё.</p><br /><div class="codebox"><pre><code>;Gui, Add, Picture, Icon13 vMyPicture, %SystemRoot%\system32\SHELL32.dll
 Gui, Add, Picture, Icon13 vMyPicture, %A_WinDir%\system32\SHELL32.dll
GUI, Show
Sleep, 1000
GuiControl, hide, MyPicture
Sleep, 1000
GuiControl, , MyPicture, *Icon12 %SystemRoot%\system32\SHELL32.dll
GuiControl, show, MyPicture</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Tue, 02 Jan 2018 09:23:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122704#p122704</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Замена картинки в GUI.]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=122703#p122703</link>
			<description><![CDATA[<p>Доброго времени суток. У меня есть код, который должен делать картинку hide, а потом добавлять другую, на место скрытой.<br /></p><div class="codebox"><pre><code>Gui,new, +AlwaysOnTop 
Gui, -Border
Gui,add, picture, x1 y0 w80 h80 , .\overlay\skills_icons\1.png 
Gui,Add, Picture, x1 y90 w80 h80 , .\overlay\skills_icons\2.png
Gui,Add, Picture, x1 y180 w80 h80 , .\overlay\skills_icons\3.png
Gui,Add, Picture, x1 y270 w80 h80 , .\overlay\skills_icons\4.png
Gui,Add, Picture, x1 y360 w80 h80 , .\overlay\skills_icons\5.png
Gui,Add, Picture, x1 y450 w80 h80 , .\overlay\skills_icons\6.png
Gui,Add, Picture, x1 y540 w80 h80 , .\overlay\skills_icons\7.png
Gui,Add, Picture, x1 y630 w80 h80 , .\overlay\skills_icons\8.png
Gui,Add, Picture, x1 y720 w80 h80 , .\overlay\skills_icons\9.png
Gui,Add, Picture, x91 y1 w80 h80 , .\overlay\skills_icons\10.png
Gui,Add, Picture, x91 y90 w100 h100 , .\overlay\skills_icons\11.png
Gui,Add, Text,x1 y0 w10 h15, A
Gui,Add, Text,x1 y92 w10 h15, T
Gui,Add, Text,x1 y182 w10 h15, S
Gui,Add, Text,x1 y272 w10 h15, B
Gui,Add, Text,x1 y362 w40 h15, Shift N
Gui,Add, Text,x1 y452 w40 h15, Shift G
Gui,Add, Text,x1 y542 w40 h15, Shift S
Gui,Add, Text,x1 y632 w10 h15, G
Gui,Add, Text,x1 y722 w40 h15, Shift A
Gui,Add, Text,x91 y2 w40 h15, Shift N
Gui,add,button, x91 y180 w80 h50 gReOpacity,Change Opacity
return


.....

sc39::
	loop 2
	{
		if ad=1 
		{
			GuiControl, hide, static1
			Gui,add, picture, x1 y0 w80 h80 , .\overlay\skills_icons\1_CD.png 
		
			MsgBox, Скрипт должен сработать
		
		}
		Else
		{
			ad++
		}
	}
</code></pre></div><p>После запуска, MsgBox выходит, а <strong>картинка не меняется</strong>. Подскажите, в чём моя ошибка.</p>]]></description>
			<author><![CDATA[null@example.com (Limon4ek)]]></author>
			<pubDate>Tue, 02 Jan 2018 08:28:52 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=122703#p122703</guid>
		</item>
	</channel>
</rss>
