<?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=5079</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5079&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Гаджеты».]]></description>
		<lastBuildDate>Sat, 23 Oct 2010 12:25:22 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Гаджеты]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40760#p40760</link>
			<description><![CDATA[<p>Директивой #Include код как-бы вставляется в файл вместо этой директивы. Соответственно если основной файл встречает return, то он прекращает свое выполнение.</p>]]></description>
			<author><![CDATA[null@example.com (InFlames)]]></author>
			<pubDate>Sat, 23 Oct 2010 12:25:22 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40760#p40760</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Гаджеты]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40759#p40759</link>
			<description><![CDATA[<p>Ну, по-русски это будет &quot;метка&quot;. А под лейблом обычно понимается что-то <a href="http://www.google.ru/#hl=ru&amp;expIds=17259,24815,26637,26992,27095,27102,27177&amp;xhr=t&amp;q=%D0%BB%D0%B5%D0%B9%D0%B1%D0%BB&amp;cp=4&amp;pf=p&amp;sclient=psy&amp;safe=off&amp;aq=f&amp;aqi=g5&amp;aql=&amp;oq=%D0%BB%D0%B5%D0%B9%D0%B1&amp;gs_rfai=&amp;pbx=1&amp;fp=8f188113e6ec4e77">такое</a>.<br /></p><div class="quotebox"><cite>funtaps пишет:</cite><blockquote><p>Если есть способы лучше - скажите, пжлста</p></blockquote></div><p>Что значит лучше? Что-то плохо работает? Лишь бы было удобно пользоваться, и ты сам бы смог понять, что к чему, если откроешь свой код через год.<br />Вообще, в include-файлах чаще используют функции, а не метки. Но это как кому удобно.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 23 Oct 2010 12:24:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40759#p40759</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Гаджеты]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40758#p40758</link>
			<description><![CDATA[<p>ну, по сути я имел ввиду штуки, вызываемые Gosub или g-label у Контролов <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p><br /><p>Из хелпа в AHK:</p><br /><p>Gosub</p><p>--------------------------------------------------------------------------------</p><p>Jumps to the specified label and continues execution until Return is encountered.</p><p>Gosub, Label</p>]]></description>
			<author><![CDATA[null@example.com (funtaps)]]></author>
			<pubDate>Sat, 23 Oct 2010 11:36:27 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40758#p40758</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Гаджеты]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40757#p40757</link>
			<description><![CDATA[<p>С удовольствием, если объяснишь, что такое лейбл и как туда можно запихнуть код? <img src="//forum.script-coding.com/img/smilies/hmm.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Sat, 23 Oct 2010 11:31:03 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40757#p40757</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Гаджеты]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40756#p40756</link>
			<description><![CDATA[<p>Проблему решил.<br />Убрал returnы после выполнения основного кода в дополнительных файлах, сам основной код запихнул в лейбл и запустил лейбл из основного файла.<br />Если есть способы лучше - скажите, пжлста</p>]]></description>
			<author><![CDATA[null@example.com (funtaps)]]></author>
			<pubDate>Sat, 23 Oct 2010 11:24:01 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40756#p40756</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Гаджеты]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=40754#p40754</link>
			<description><![CDATA[<p>Мой основной файл:</p><div class="codebox"><pre><code>#Include shutdownmenu.ahk
#Include raspisan.ahk</code></pre></div><p>Shutdownmenu.ahk :<br /></p><div class="codebox"><pre><code>Gui, 2:-Caption -Resize -SysMenu +ToolWindow
Gui, 2:Color, 0000FF
Gui, 2:Add, Picture, x0 y0 gShut, R:\Gadget\AHK\ShutdownMenu\shutdown.gif
Gui, 2:Add, Picture, x67 y0 gRest, R:\Gadget\AHK\ShutdownMenu\restart.gif
Gui, 2:Add, Picture, x134 y0 gSleep, R:\Gadget\AHK\ShutdownMenu\sleep.gif
Gui, 2:Show, x10 y900 h64 w198, ShutDown Menu
WinSet, TransColor, 0000FF, ShutDown Menu
Return

;дальше соответствующие лейблы (Shut, Rest, Sleep)  думаю приводить их код не имеет смысла</code></pre></div><p>Raspisan.ahk :<br /></p><div class="codebox"><pre><code>Gosub, Init3Gui
Gosub, TodayRasp
return



Init3Gui:
Gui, 3:Destroy
Gui, 3:-Caption -Resize -SysMenu +ToolWindow
Gui, 3:Color, 00376E
Gui, 3:Font, s18 cFFFFFF w700, Arial
Gui, 3:Add, Text, vTheDayText w269,
Loop 5{
Gui, 3:Add, Text, c666699 w269 vDayText%A_Index%, 
}
Gui, 3:Font, s16 cFFFFFF w6000 underline, Arial
Gui, 3:Add, Text, x21 y259 gTodayRasp vTodBut, Сегодня
Gui, 3:Add, Text, x122 y259 gTomorRasp vTomBut, Завтра
Gui, 3:Add, Text, x210 y259 gWeekRasp vWeekBut, Неделя
Gui, 3:Font, norm
Gui, 3:Show, x765 y5 w300 h300, Raspisan
return

; Опять же часть файла, но приводить его целиком не имеет смысла, по-моему</code></pre></div><p>Проблема в том, что создаётся только первое окно.<br />Не могли бы вы мне помочь, и объяснить в чём дело, и как это исправить?</p><p>P.S. Если запускать отдельно один и второй скрипт, всё работает на ура.</p>]]></description>
			<author><![CDATA[null@example.com (funtaps)]]></author>
			<pubDate>Sat, 23 Oct 2010 11:14:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=40754#p40754</guid>
		</item>
	</channel>
</rss>
