<?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=11826</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11826&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Задать действие при ошибке скрипта».]]></description>
		<lastBuildDate>Fri, 22 Jul 2016 09:03:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Задать действие при ошибке скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106267#p106267</link>
			<description><![CDATA[<p>Вот так получилось.</p><br /><div class="codebox"><pre><code>#IfWinActive  ahk_exe uTorrent.exe
~LButton::
{
;if winactive, ahk_exe uTorrent.exe

CoordMode, Mouse, Screen
MouseGetPos, m_x, m_y, m_hw_target
SendMessage, 0x84,, ( m_y &lt;&lt; 16 )|m_x,, ahk_id %m_hw_target%
;ToolTip, % errorlevel
if errorlevel = 1
{
	
   ; MsgBox
    exitapp
}

}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Fri, 22 Jul 2016 09:03:34 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106267#p106267</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Задать действие при ошибке скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106265#p106265</link>
			<description><![CDATA[<p>Дело в том, что проверка или продолжать скрипт проводится кодом.</p><div class="codebox"><pre><code>Process, Exist, uTorrent.exe</code></pre></div><p>Тогда как, если выключить uTorrent правильно нажав кнопку выход, то его процесс закроется где-то через секунды 2 после нажатия кнопки выход, и видимо в это время скрипт дальше крутится но от uTorrenta получить то что хочет не может, что можно придумать? Можно задать доп действие по нажатию кнопки выход в uTorrent?</p>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Fri, 22 Jul 2016 07:59:16 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106265#p106265</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Задать действие при ошибке скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106264#p106264</link>
			<description><![CDATA[<p>Возможно ли обойти ошибку такого рода?</p><div class="codebox"><pre><code>Error:  
Error code:	0x800A03EA
Source:		Ошибка компиляции Microsoft JScript
Description:	Синтаксическая ошибка
Line:		1
Column:		1
Line text:		()

	Line#
	327: pArr := ComObjValue(Body)
	328: cBytes := NumGet(pArr+0, A_PtrSize = 8? 24:16, &quot;uint&quot;)
	329: pText := NumGet(pArr+0, A_PtrSize = 8? 16:12, &quot;ptr&quot;)
	332: JsonString := StrGet(pText, cBytes, &quot;utf-8&quot;)
	333: JS := new ActiveScript(&quot;JScript&quot;)
	334: JS.eval(&quot;delete ActiveXObject; delete GetObject;&quot;)  
	335: ComObjError(false)  
---&gt;	336: obj := JS.eval(&quot;(&quot; . JsonString . &quot;)&quot;).torrents
	337: SetFormat,Float,0.1
	338: {
	343: Loop,obj.length
	344: {
	346: video := 0
	349: if reload = 1
	350: {

The thread has exited.</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Fri, 22 Jul 2016 07:41:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106264#p106264</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Задать действие при ошибке скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106195#p106195</link>
			<description><![CDATA[<p><strong>Malcev</strong>, как всегда выручаете, огромное Спасибо!</p>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Tue, 19 Jul 2016 20:03:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106195#p106195</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Задать действие при ошибке скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106194#p106194</link>
			<description><![CDATA[<div class="codebox"><pre><code>ComObjError(false)
url := &quot;http://&quot; ip &quot;:&quot; port &quot;/gui/&quot;
global urlVlc := &quot;http://&quot; ip &quot;:&quot; port &quot;/proxy&quot;
tokenUrl := url &quot;token.html&quot;
action := &quot;?list=1&quot;
HTTP := ComObjCreate(&quot;WinHTTP.WinHTTPRequest.5.1&quot;)
HTTP.Open(&quot;GET&quot;, tokenUrl, false)
if A_lastError
   msgbox error
HTTP.SetCredentials(user, pass, 0)
HTTP.Send()
Body := HTTP.ResponseBody</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Malcev)]]></author>
			<pubDate>Tue, 19 Jul 2016 19:35:13 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106194#p106194</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Задать действие при ошибке скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=106193#p106193</link>
			<description><![CDATA[<p>Здравствуйте, есть скрипт работающий с авторизацией, когда закрываю программу в которой скрипт авторизованно получал данные, он теряет возможность их получать и показывает сообщение с ошибкой. Как задать действие при появлении такой ошибки?</p><p>Кусок кода с помощью которого можно увидеть окно с ошибкой на которое нужно задать действие.</p><div class="codebox"><pre><code>url := &quot;http://&quot; ip &quot;:&quot; port &quot;/gui/&quot;
global urlVlc := &quot;http://&quot; ip &quot;:&quot; port &quot;/proxy&quot;
tokenUrl := url &quot;token.html&quot;
action := &quot;?list=1&quot;
HTTP := ComObjCreate(&quot;WinHTTP.WinHTTPRequest.5.1&quot;)
HTTP.Open(&quot;GET&quot;, tokenUrl, false)
HTTP.SetCredentials(user, pass, 0)
HTTP.Send()
Body := HTTP.ResponseBody</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (OmTatSat)]]></author>
			<pubDate>Tue, 19 Jul 2016 18:41:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=106193#p106193</guid>
		</item>
	</channel>
</rss>
