<?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=11652</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11652&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: почему скрипт закрывается не закончив работу».]]></description>
		<lastBuildDate>Sun, 12 Jun 2016 04:38:50 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: почему скрипт закрывается не закончив работу]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=105150#p105150</link>
			<description><![CDATA[<p><strong>serzh82saratov</strong><br />Действительно так работает. Спустя нескольких дней тестирования не вылетает!<br />Похоже у autohotkey и mouserobot и еще какой то программы есть несовместимость в определенных кусках кода. Это все я на дистанционной машине делал, но спустя какое то время и у меня на рабочей машине где я код тестирую и отлаживаю тоже вылеты начались, но в моем случае помогла перезагрузка.</p><p>Вопрос закрыт тему можно закрыть</p>]]></description>
			<author><![CDATA[null@example.com (ufimez)]]></author>
			<pubDate>Sun, 12 Jun 2016 04:38:50 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=105150#p105150</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: почему скрипт закрывается не закончив работу]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=104529#p104529</link>
			<description><![CDATA[<p>Так попробуйте отправить строку.<br /></p><div class="codebox"><pre><code>SendStr(&quot;C:\Documents and Settings\Admin\Desktop\Mouse robot\1.Ytro\1-9  (Ytro).xtsk&quot;, &quot;Edit1&quot;, &quot;ahk_class Notepad&quot;)

SendStr(Str, Ctrl, Win) {
	Loop, Parse, Str
		PostMessage, 0x102, Ord(A_LoopField), 1, %Ctrl%, %Win%   ;  WM_CHAR
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (serzh82saratov)]]></author>
			<pubDate>Wed, 01 Jun 2016 11:27:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=104529#p104529</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: почему скрипт закрывается не закончив работу]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=104518#p104518</link>
			<description><![CDATA[<p>Дополнительно не работает<br /></p><div class="codebox"><pre><code>
SetKeyDelay, 20000
Send, C:\Documents and Settings\Admin\Desktop\Mouse robot\1.Ytro\1-9  (Ytro).xtsk{Enter}
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ufimez)]]></author>
			<pubDate>Wed, 01 Jun 2016 05:37:39 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=104518#p104518</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: почему скрипт закрывается не закончив работу]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=104517#p104517</link>
			<description><![CDATA[<p><strong>teadrinker</strong><br />Вставил точки.</p><p>Вроде получилось обойти этот глюк с помощью:<br /></p><div class="codebox"><pre><code>
ControlSendRaw, Edit1, C:\Documents and Settings\Admin\Desktop\Mouse robot\1.Ytro\1-9  (Ytro).xtsk{Enter}, Open</code></pre></div><p>Но мне непонятно почему он искажает &quot;\&quot; на &quot;|&quot;.<br />Потом в управляющей команде тоже искажена буква &quot;n&quot; на &quot;N&quot;.<br />Вот, что он выводит при получении команды:<br />c:|Documents and Settings\Admin\Desktop\Mouse robot\1.Ytro\1-9&nbsp; (YTro).xtsk{ENter}<br />Если конечно слеш подправить с прямой на косую, то программа запустится. Но почему он изменяет и как этого избежать есть советы?</p>]]></description>
			<author><![CDATA[null@example.com (ufimez)]]></author>
			<pubDate>Wed, 01 Jun 2016 05:00:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=104517#p104517</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: почему скрипт закрывается не закончив работу]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=104493#p104493</link>
			<description><![CDATA[<p>Теперь расставьте точки в конце предложений, должно помочь.</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Tue, 31 May 2016 14:41:23 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=104493#p104493</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: почему скрипт закрывается не закончив работу]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=104492#p104492</link>
			<description><![CDATA[<p>Попробовал перезагрузить компьютер не помогло.<br />Скрипт завершает свою работу в<br />SendInput C:\Documents and Settings\Admin\ там плюс минус пара букв временами бывает.<br />Попробовал с буфером, тут все нормально, однако не пойму откуда такая разница, может слишком быстро текст набирается и какая то защитная программа считает что троян активировался..<br /></p><div class="codebox"><pre><code>
Clipboard = %MyText%
Sleep, 500
Send, ^v
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ufimez)]]></author>
			<pubDate>Tue, 31 May 2016 14:16:06 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=104492#p104492</guid>
		</item>
		<item>
			<title><![CDATA[AHK: почему скрипт закрывается не закончив работу]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=104456#p104456</link>
			<description><![CDATA[<p>Неожиданно на WinXP скрипт начал закрываться не закончив работу.<br />Программа вызывает MouseRobot и передает ему данные. Есть еще окно которое стремится занять передний план, именно поэтому столько активаций переднего окна.<br />Скрипт закрывается на <br />SendInput C:\Documents and Settings\Admin\Desktop\Mouse robot\1.Ytro\1-9&nbsp; (Ytro).xtsk{Enter}<br />Причем не дописав строку, просто прерывается и из трея значок исчезает. Ни разу с таким не сталкивался.<br />Может есть блокировка закрытия программы?</p><div class="codebox"><pre><code>
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

DetectHiddenText, on 
IfWinNotExist, MouseRobot	 
	{
	Run &quot;C:\Documents and Settings\All Users\Application Data\AutomationBox\MouseRobot2\Application\MouseRobot.exe&quot;
	Sleep, 3000
	WinSet, AlwaysOnTop, on, MouseRobot
	Sleep, 3000
	WinActivate, MouseRobot
	Sleep, 3000
	WinWaitActive, MouseRobot, , 9 
	if ErrorLevel 
		{ 
	            MsgBox, Истёк срок ожидания (Запуск MouseRobot). 
	            return 
	        } 
	WinSet, AlwaysOnTop, off, MouseRobot
	SendInput ^o
	}  

;WinSet, AlwaysOnTop, on, Open
;Sleep, 3000
WinActivate, Open
Sleep, 3000
FormatTime, TimeCurrent,, yyyyMMddHHmmss
FormatTime, TimeObed,, yyyyMMdd130000
FormatTime, TimeSegodnia,, yyyyMMdd060000
FormatTime, TimeString, R
If ( TimeCurrent &lt; TimeObed ) 
	{
	WinWaitActive, Open, , 9 
	    if ErrorLevel 
	        { 
	            MsgBox, Истёк срок ожидания (Запуск Open ytro). 
	            return 
	        } 
	SendInput C:\Documents and Settings\Admin\Desktop\Mouse robot\1.Ytro\1-9  (Ytro).xtsk{Enter}
	}	
else  
	{
	WinWaitActive, Open, , 9 
	    if ErrorLevel 
	        { 
	            MsgBox, Истёк срок ожидания (Запуск Open vecher). 
	            return 
	        }
	SendInput C:\Documents and Settings\Admin\Desktop\Mouse robot\2.Vecher\1-9  (Vecher).xtsk{Enter}
	}
;SendInput {Raw} C:\Documents and Settings\Admin\Desktop\Mouse robot\2.Vecher\1-9  (Vecher).xtsk{Enter}


WinSet, AlwaysOnTop, off, Open
;Sleep, 1000
;SetTitleMatchMode 2 ; заголовок окна должен начинаться со значения, заданным в WinTitle
SetTitleMatchMode 2 ; заголовок окна должен частично содержать со значением, заданным в WinTitle
WinSet, AlwaysOnTop, on, MouseRobot
;Sleep, 2000
WinActivate, MouseRobot
;Sleep, 2000
WinWaitActive, MouseRobot, , 9 
	    if ErrorLevel 
	        { 
	            MsgBox, Истёк срок ожидания (Запуск MouseRobot F5). 
	            return 
	        } 
;Sleep, 1000
SendInput {F5}
WinSet, AlwaysOnTop, off, MouseRobot
</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ufimez)]]></author>
			<pubDate>Tue, 31 May 2016 04:40:44 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=104456#p104456</guid>
		</item>
	</channel>
</rss>
