<?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=5370</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=5370&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Нажатие кнопки при непоявлении файла?».]]></description>
		<lastBuildDate>Thu, 13 Jan 2011 20:51:00 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43691#p43691</link>
			<description><![CDATA[<p>Спасибо большое.Все работает.<br />Собственно к этому решению я тоже сегодня пришел.</p>]]></description>
			<author><![CDATA[null@example.com (metlick)]]></author>
			<pubDate>Thu, 13 Jan 2011 20:51:00 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43691#p43691</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43672#p43672</link>
			<description><![CDATA[<div class="codebox"><pre><code>   #Persistent
   SetTimer, Cl, 1000

Cl:
   IfExist, D:\m\t.txt
   {
      Send, {F9}
      sleep 2000
      FileDelete, D:\m\t.txt
      t = 0
   }
   Else if ++t = 60
   {
      t = 0
      Send, {F9}
   }
   Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Thu, 13 Jan 2011 11:56:28 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43672#p43672</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43670#p43670</link>
			<description><![CDATA[<p>Появление файла должно отслеживаться всегда. Если же он не появляеться в течении минуты, то нажатие f9 должно сработать все равно.</p>]]></description>
			<author><![CDATA[null@example.com (metlick)]]></author>
			<pubDate>Thu, 13 Jan 2011 10:51:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43670#p43670</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43649#p43649</link>
			<description><![CDATA[<p>А F9 должно посылаться каждую минуту, или один раз и ждать следующего появления файла?</p>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 12 Jan 2011 23:11:02 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43649#p43649</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43647#p43647</link>
			<description><![CDATA[<p>Спасибо, но здесь такая приблема,я извеняюсь, не совсем корректно поставил вопрос. Отсчет должен начинатся с последнего нажатия f9 или с последнего появления файла.<br />Файл, если он не появился, конечно, удалять не нужно ) только f9.</p>]]></description>
			<author><![CDATA[null@example.com (metlick)]]></author>
			<pubDate>Wed, 12 Jan 2011 23:00:38 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43647#p43647</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43637#p43637</link>
			<description><![CDATA[<p>Я бы так написал:<br /></p><div class="codebox"><pre><code>   #Persistent
   t = 0
   SetTimer, Cl, 1000

Cl:
   IfExist, D:\m\t.txt
   {
      Send, {F9}
      sleep 2000
      FileDelete, D:\m\t.txt
      t = 0
   }
   Else if mod(++t, 60) = 0   ; или Else if (t &lt;= 60 &amp;&amp; ++t/60 = 1) если нужно послать F9 только 1 раз
      Send, {F9}
   Return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (teadrinker)]]></author>
			<pubDate>Wed, 12 Jan 2011 21:11:49 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43637#p43637</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43636#p43636</link>
			<description><![CDATA[<p>Наверно так.<br /></p><div class="codebox"><pre><code>#Persistent
t:=0
SetTimer, Cl, 1000

Cl:
IfExist, D:\m\t.txt
{
    Send,{f9}
    sleep 2000
    FileDelete, D:\m\t.txt
}
Else
{
t := t + 1
If t = 60
   {
   Send,{f9}
   sleep 2000
   FileDelete, D:\m\t.txt
   t:=0
   }
}

return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Wed, 12 Jan 2011 20:16:14 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43636#p43636</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43635#p43635</link>
			<description><![CDATA[<p>Если он не появится, тогда зачем его удалять? Точнее, что надо удалять-то?</p>]]></description>
			<author><![CDATA[null@example.com (pant-79)]]></author>
			<pubDate>Wed, 12 Jan 2011 20:04:11 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43635#p43635</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=43632#p43632</link>
			<description><![CDATA[<p>Скрипт нажимает f9 при появлении файла. Как сделать так, чтобы если файл не появляется в течении минуты, условие тоже выполнялось?<br /></p><div class="codebox"><pre><code>#Persistent
SetTimer, Cl, 1000


Cl:

IfExist, D:\m\t.txt
 {
    Send,{f9}
    sleep 2000
    FileDelete, D:\m\t.txt
 }
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (metlick)]]></author>
			<pubDate>Wed, 12 Jan 2011 19:57:07 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=43632#p43632</guid>
		</item>
	</channel>
</rss>
