<?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=6984</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6984&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Ограничения в работе скрипта».]]></description>
		<lastBuildDate>Thu, 22 Mar 2012 17:07:55 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Ограничения в работе скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58264#p58264</link>
			<description><![CDATA[<div class="codebox"><pre><code>App:=&quot;notepad.exe&quot;, AppCount:=3
Query:=&quot;select ProcessId from Win32_Process where Name=&#039;&quot;App &quot;&#039;&quot;
MsgBox, 262144, % &quot; &quot;, Run 10 notepad applications, 1
Loop, 10
{
   Run, notepad.exe, % A_WinDir &quot;\System32&quot;,, WinPID
   WinWaitActive, % &quot;ahk_pid&quot;WinPID
   ControlSendRaw, Edit1, % &quot;Instance: &quot;A_Index
                 . &quot;`n`n&quot;A_Hour &quot;:&quot;A_Min &quot;.&quot;A_Sec
                 , % &quot;ahk_pid&quot;WinPID
}
MsgBox, 262144, % &quot; &quot;, Close all but the first tree., 1
For Key In ComObjGet(&quot;winmgmts:&quot;).ExecQuery(Query)
  If % A_Index&gt;AppCount
  {
     WinActivate, % &quot;ahk_pid&quot;Key.ProcessId
     ControlSendRaw, Edit1
                   , % &quot;`n`nClose instance: &quot;A_Index
                   , % &quot;ahk_pid&quot;Key.ProcessId
     WinClose, % &quot;ahk_pid&quot;Key.ProcessId
     ControlClick, Button2, ahk_class #32770,,, 2
  }
MsgBox, 262144, % &quot; &quot;, Done!, 1
Sleep, 1000
For Key In ComObjGet(&quot;winmgmts:&quot;).ExecQuery(Query)
   {
      WinClose, % &quot;ahk_pid&quot;Key.ProcessId
      ControlClick, Button2, ahk_class #32770,,, 2
   }
ExitApp</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Thu, 22 Mar 2012 17:07:55 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58264#p58264</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ограничения в работе скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58252#p58252</link>
			<description><![CDATA[<p>Ну скажем через другой скрипт, т.е. считать запуски правда надо использовать глобальные переменные, но я не знаю точно как, но знаю что можно.</p><p>Или же создать переменную окружения и туда писать число запусков и сравнивать уже в самом стартующем скрипте... вариантов много, а начальных условий мало.<br /> <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Thu, 22 Mar 2012 14:26:35 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58252#p58252</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ограничения в работе скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58251#p58251</link>
			<description><![CDATA[<p>Можно поподробнее о &quot;программно&quot;?</p>]]></description>
			<author><![CDATA[null@example.com (vezderegit@bk.ru)]]></author>
			<pubDate>Thu, 22 Mar 2012 14:20:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58251#p58251</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Ограничения в работе скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58250#p58250</link>
			<description><![CDATA[<p>Можно.<br />Директива <strong>#SingleInstance</strong> - проверяет/ограничивает запуск дубликатов<br />Ну, а про число запусков, думаю это можно сделать программно.</p>]]></description>
			<author><![CDATA[null@example.com (Indomito)]]></author>
			<pubDate>Thu, 22 Mar 2012 14:09:57 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58250#p58250</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Ограничения в работе скрипта]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=58248#p58248</link>
			<description><![CDATA[<p>Возможно ли сделать какие то ограничения на работу скрипта? Временные или на количество запусков вообще, или количество запусков одновременных?я</p>]]></description>
			<author><![CDATA[null@example.com (vezderegit@bk.ru)]]></author>
			<pubDate>Thu, 22 Mar 2012 13:42:37 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=58248#p58248</guid>
		</item>
	</channel>
</rss>
