<?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=5370&amp;type=atom" />
	<updated>2011-01-13T20:51:00Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5370</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43691#p43691" />
			<content type="html"><![CDATA[<p>Спасибо большое.Все работает.<br />Собственно к этому решению я тоже сегодня пришел.</p>]]></content>
			<author>
				<name><![CDATA[metlick]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26594</uri>
			</author>
			<updated>2011-01-13T20:51:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43691#p43691</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43672#p43672" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-01-13T11:56:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43672#p43672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43670#p43670" />
			<content type="html"><![CDATA[<p>Появление файла должно отслеживаться всегда. Если же он не появляеться в течении минуты, то нажатие f9 должно сработать все равно.</p>]]></content>
			<author>
				<name><![CDATA[metlick]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26594</uri>
			</author>
			<updated>2011-01-13T10:51:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43670#p43670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43649#p43649" />
			<content type="html"><![CDATA[<p>А F9 должно посылаться каждую минуту, или один раз и ждать следующего появления файла?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-01-12T23:11:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43649#p43649</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43647#p43647" />
			<content type="html"><![CDATA[<p>Спасибо, но здесь такая приблема,я извеняюсь, не совсем корректно поставил вопрос. Отсчет должен начинатся с последнего нажатия f9 или с последнего появления файла.<br />Файл, если он не появился, конечно, удалять не нужно ) только f9.</p>]]></content>
			<author>
				<name><![CDATA[metlick]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26594</uri>
			</author>
			<updated>2011-01-12T23:00:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43647#p43647</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43637#p43637" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-01-12T21:11:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43637#p43637</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43636#p43636" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2011-01-12T20:16:14Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43636#p43636</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43635#p43635" />
			<content type="html"><![CDATA[<p>Если он не появится, тогда зачем его удалять? Точнее, что надо удалять-то?</p>]]></content>
			<author>
				<name><![CDATA[pant-79]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=960</uri>
			</author>
			<updated>2011-01-12T20:04:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43635#p43635</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Нажатие кнопки при непоявлении файла?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=43632#p43632" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[metlick]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26594</uri>
			</author>
			<updated>2011-01-12T19:57:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=43632#p43632</id>
		</entry>
</feed>
