<?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=13277&amp;type=atom" />
	<updated>2017-12-07T15:52:51Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=13277</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122048#p122048" />
			<content type="html"><![CDATA[<p><span style="color: green"><strong>solitarydemiurg</strong>, исправьте сообщения, в которых не хватает заглавных букв и точек!</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2017-12-07T15:52:51Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122048#p122048</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122045#p122045" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><p>Попробуй использовать iniRead, iniWrite.</p></blockquote></div><p><a href="http://www.script-coding.com/AutoHotkey/IniRead.html">http://www.script-coding.com/AutoHotkey/IniRead.html</a><br /><a href="http://www.script-coding.com/AutoHotkey/IniWrite.html">http://www.script-coding.com/AutoHotkey/IniWrite.html</a></p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-12-07T15:36:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122045#p122045</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122044#p122044" />
			<content type="html"><![CDATA[<p>Я нашёл проблему, файл нельзя оставлять пустым, обязательно нужно что-то записывать.</p>]]></content>
			<author>
				<name><![CDATA[solitarydemiurg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38911</uri>
			</author>
			<updated>2017-12-07T15:19:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122044#p122044</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122043#p122043" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong></p><p>я для проверки работы написал<br /></p><div class="codebox"><pre><code>
Loop
{
	FileReadLine, Pp, C:\ahkmacros\ini.ini, 1	
	if Pp = stp
	{
		sleep, 100
		continue
	}
	Gui, Destroy
	Gui, +AlwaysOnTop +ToolWindow -Caption +LastFound
	Gui,  -SysMenu
	WinSet, TransColor, 000000
	Gui, color, 000000
	Gui, Add, Picture, x0 y0 , C:\Ddd\on.png
	Gui, Show, NoActivate x3770 y0
}
</code></pre></div><p>просто мигает картинкой в уголке экрана если скрипт активен.<br />нажимаю Home и картинка перестаёт мигать, т.е. скрипт выполняется в последний раз и окошко не разрушается, нажимаю End, проверяю что ini.ini пустой, но скрипт не возобновляется.</p>]]></content>
			<author>
				<name><![CDATA[solitarydemiurg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38911</uri>
			</author>
			<updated>2017-12-07T15:06:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122043#p122043</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122042#p122042" />
			<content type="html"><![CDATA[<p>Я корректировал свой вариант, попробуй еще раз.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-12-07T14:55:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122042#p122042</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122041#p122041" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong><br />текст не просто изменяется, файл удаляется и создаётся снова пустым, это работает на 100%, я это вижу открывая файл.</p>]]></content>
			<author>
				<name><![CDATA[solitarydemiurg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38911</uri>
			</author>
			<updated>2017-12-07T14:47:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122041#p122041</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122040#p122040" />
			<content type="html"><![CDATA[<p>Я не вижу твой код чтобы сказать что это не вариант.</p><div class="quotebox"><cite>solitarydemiurg пишет:</cite><blockquote><p>но не возобновляет при нажатии End</p></blockquote></div><p>Значит текст в файле не изменяется по нажатию End. Попробуй использовать iniRead, iniWrite.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-12-07T14:43:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122040#p122040</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122038#p122038" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Alectric пишет:</cite><blockquote><div class="quotebox"><cite>solitarydemiurg пишет:</cite><blockquote><p>В каждом циклы, которые должны работать параллельно.</p></blockquote></div><p>Можно осуществить псевдо-параллельную работу скриптов в одном.</p></blockquote></div><p>SetTimer? в моём случае не вариант.</p>]]></content>
			<author>
				<name><![CDATA[solitarydemiurg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38911</uri>
			</author>
			<updated>2017-12-07T14:39:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122038#p122038</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122037#p122037" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong><br />Ваша конструкция то же только останавливает, но не возобновляет при нажатии End</p>]]></content>
			<author>
				<name><![CDATA[solitarydemiurg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38911</uri>
			</author>
			<updated>2017-12-07T14:38:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122037#p122037</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122036#p122036" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Loop
{
  FileReadLine, Pp, C:\ahkmacros\ini.ini, 1
  if Pp = stp
  {
    sleep,100
    continue
  }
  ;различные действия
}</code></pre></div><br /><div class="quotebox"><cite>solitarydemiurg пишет:</cite><blockquote><p>В каждом циклы, которые должны работать параллельно.</p></blockquote></div><p>Можно осуществить псевдо-параллельную работу скриптов в одном.</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-12-07T14:31:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122036#p122036</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122033#p122033" />
			<content type="html"><![CDATA[<p>Как поставить на паузу я разобрался</p><div class="codebox"><pre><code>
Loop
{
;различные действия
FileReadLine, Pp, C:\ahkmacros\ini.ini, 1
if Pp = stp
Pause, On
}
</code></pre></div><p>а вот как потом возобновить работу скриптов хз.</p>]]></content>
			<author>
				<name><![CDATA[solitarydemiurg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38911</uri>
			</author>
			<updated>2017-12-07T14:22:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122033#p122033</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122031#p122031" />
			<content type="html"><![CDATA[<p><strong>Alectric</strong><br />В каждом циклы, которые должны работать параллельно.</p>]]></content>
			<author>
				<name><![CDATA[solitarydemiurg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38911</uri>
			</author>
			<updated>2017-12-07T13:46:16Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122031#p122031</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122030#p122030" />
			<content type="html"><![CDATA[<p>Почему бы не сделать из пяти скриптов один?</p>]]></content>
			<author>
				<name><![CDATA[Alectric]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26027</uri>
			</author>
			<updated>2017-12-07T13:41:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122030#p122030</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Поставить скрипт на паузу из другого скрипта]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=122028#p122028" />
			<content type="html"><![CDATA[<p>Здравствуйте, у меня есть 5 скриптов, которые необходимо ставить на паузу одним хоткеем и возобновлять другим, в связи с этим есть несколько вопросов:<br />1. Есть ли в AHK команда по типу Pause[путь к скрипту] выполняемая из стороннего скрипта?<br />2. Можно ли в AHK объявлять переменные общие для нескольких скриптов?</p><p>я попробовал реализовать через запись/чтение из файла но ничего не работает <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p><p>создаём запись &quot;stp&quot; в ini.ini нажатием Home и удаляем нажатием End (тут всё работает) <br /></p><div class="codebox"><pre><code>
vk24::
FileDelete, C:\ahkmacros\ini.ini
FileAppend, stp, C:\ahkmacros\ini.ini
Return

vk23::
FileDelete, C:\ahkmacros\ini.ini
FileAppend, , C:\ahkmacros\ini.ini
Return
</code></pre></div><p>А вот тут где-то ошибка<br /></p><div class="codebox"><pre><code>
Loop
{
Pp := &quot;ini.ini&quot;
if Pp = stp
Pause, On
Else
{
Pause, Off
;различные действия
}
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[solitarydemiurg]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38911</uri>
			</author>
			<updated>2017-12-07T13:11:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=122028#p122028</id>
		</entry>
</feed>
