<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Гаджеты]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5079&amp;type=atom" />
	<updated>2010-10-23T12:25:22Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5079</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Гаджеты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40760#p40760" />
			<content type="html"><![CDATA[<p>Директивой #Include код как-бы вставляется в файл вместо этой директивы. Соответственно если основной файл встречает return, то он прекращает свое выполнение.</p>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2010-10-23T12:25:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40760#p40760</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Гаджеты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40759#p40759" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-10-23T12:24:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40759#p40759</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Гаджеты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40758#p40758" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[funtaps]]></name>
			</author>
			<updated>2010-10-23T11:36:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40758#p40758</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Гаджеты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40757#p40757" />
			<content type="html"><![CDATA[<p>С удовольствием, если объяснишь, что такое лейбл и как туда можно запихнуть код? <img src="//forum.script-coding.com/img/smilies/hmm.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2010-10-23T11:31:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40757#p40757</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Гаджеты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40756#p40756" />
			<content type="html"><![CDATA[<p>Проблему решил.<br />Убрал returnы после выполнения основного кода в дополнительных файлах, сам основной код запихнул в лейбл и запустил лейбл из основного файла.<br />Если есть способы лучше - скажите, пжлста</p>]]></content>
			<author>
				<name><![CDATA[funtaps]]></name>
			</author>
			<updated>2010-10-23T11:24:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40756#p40756</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Гаджеты]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=40754#p40754" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[funtaps]]></name>
			</author>
			<updated>2010-10-23T11:14:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=40754#p40754</id>
		</entry>
</feed>
