<?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=13934&amp;type=atom" />
	<updated>2018-07-12T17:33:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13934</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127020#p127020" />
			<content type="html"><![CDATA[<p>Век живи - век учись. <img src="//forum.script-coding.com/img/smilies/neutral.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-07-12T17:33:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127020#p127020</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127018#p127018" />
			<content type="html"><![CDATA[<p>О, даже не знал про неё!</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-07-12T17:11:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127018#p127018</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=127016#p127016" />
			<content type="html"><![CDATA[<p>Есть такая функция: <a href="https://autohotkey.com/docs/commands/OnError.htm">https://autohotkey.com/docs/commands/OnError.htm</a>.</p>]]></content>
			<author>
				<name><![CDATA[svoboden]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34280</uri>
			</author>
			<updated>2018-07-12T16:32:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=127016#p127016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126975#p126975" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>if (var = &quot;&quot;)  ; здесь условие, которое сигнализирует об ошибке
   throw &quot;Моё сообщение об ошибке&quot;</code></pre></div><p>Или так:<br /></p><div class="codebox"><pre><code>try
   SomeFunction()
catch e
   MsgBox % &quot;Error: &quot; . e.Message . &quot;`nin &quot; e.What &quot;, which was called at line: &quot; e.Line 

SomeFunction() {
;  var := &quot;test&quot;  ; если раскомментировать эту строку, сообщения об ошибке не будет
   if (var = &quot;&quot;)  ; здесь условие, которое сигнализирует об ошибке
      throw Exception(&quot;Моё сообщение об ошибке&quot;, -1)
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-07-11T17:31:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126975#p126975</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126974#p126974" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>morgan пишет:</cite><blockquote><p><strong>teadrinker</strong><br />Я немного не понял, как это все работает, можете показать образец?</p></blockquote></div><p>С объяснением.</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2018-07-11T17:20:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126974#p126974</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126972#p126972" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Я немного не понял, как это все работает, можете показать образец?</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2018-07-11T17:18:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126972#p126972</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126971#p126971" />
			<content type="html"><![CDATA[<p>А вообще, это смотря какую ошибку вы имеете в виду. Если вместо MsgBox напишете MsgBix, такая ошибка будет обработана до загрузки скрипта, изнутри скрипта её отловить никак не получится.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-07-11T17:14:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126971#p126971</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126970#p126970" />
			<content type="html"><![CDATA[<p>Когда AHK устанавливаете, у вас в папке установки должен появиться файл AutoHotkey.chm. Вот это оно и есть. Или <a href="https://autohotkey.com/docs/AutoHotkey.htm">вот</a> онлайн.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-07-11T17:01:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126970#p126970</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126969#p126969" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Я на этом сайте еще новичок, не знаю, что где, подскажите?</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2018-07-11T16:58:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126969#p126969</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126967#p126967" />
			<content type="html"><![CDATA[<p>В справке.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-07-11T16:55:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126967#p126967</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126966#p126966" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Можно ссылку пожалуйста, найти не могу.</p>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2018-07-11T16:54:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126966#p126966</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126957#p126957" />
			<content type="html"><![CDATA[<p>Почитайте Throw.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2018-07-11T16:45:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126957#p126957</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: При краше мое сообщение.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=126952#p126952" />
			<content type="html"><![CDATA[<p>Здравствуйте, скриптеры.</p><p>Хотелось бы, чтобы вместо обычного окна с ошибкой, появлялось мое окно с моим текстом.<br />То есть, чтобы во время краша была вот такая команда.<br /></p><div class="codebox"><pre><code>msgbox, 48, ProjectMorgan, Произошла ошибка при запуске.</code></pre></div><p>Или.. если получится<br /></p><div class="codebox"><pre><code>msgbox, 48, ProjectMorgan, Произошла ошибка при запуске. Вот причина: &lt;строка с ошибкой&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[morgan]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=39372</uri>
			</author>
			<updated>2018-07-11T16:38:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=126952#p126952</id>
		</entry>
</feed>
