<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK v1: Повторение взаимовложенных Циклов для скрипта.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18489&amp;type=atom" />
	<updated>2025-09-07T04:31:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18489</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK v1: Повторение взаимовложенных Циклов для скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162689#p162689" />
			<content type="html"><![CDATA[<p>Проблема решена. Спасибо за помощь haridev. <br /></p><div class="codebox"><pre><code>F2::

   
   Loop, 10 { ; цикл 0
      Count := A_Index
      
      Loop  10 { ; цикл 1
      Send, {f Down}
      Sleep, 6450
      Send, {f Up}
      Sleep, 500
      Send, {f Down}
      Sleep, 200
      Send, {f Up}
      Sleep, 300
      Send, {f Down}
      Sleep, 200
      Send, {f Up}
      Sleep, 300
      Send, {f Down}
      Sleep, 200
      Send, {f Up}
      Sleep, 300
      Send, {f Down}
      Sleep, 1600
      Send, {f Up}
      Sleep, 500
      Send, {f Down}
      Sleep, 200
      Send, {f Up}
      Sleep, 300 
      if A_Index &lt;= 9
         continue
         Loop  1 {  ; цикл 2
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 1600
         Send, {f Up}
         Sleep, 500
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         if Count &lt;= 9
              continue
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 1600
         Send, {f Up}
         Sleep, 500
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         }  
      } 
   }
F3::ExitApp
F4::Pause</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Igor S]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=45141</uri>
			</author>
			<updated>2025-09-07T04:31:49Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162689#p162689</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK v1: Повторение взаимовложенных Циклов для скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162672#p162672" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Igor S пишет:</cite><blockquote><p>AHK v2</p></blockquote></div><p>Ваш код не для v2, он для v1, исправьте заголовок.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2025-09-04T00:45:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162672#p162672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK v1: Повторение взаимовложенных Циклов для скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162671#p162671" />
			<content type="html"><![CDATA[<p>Останавливается после выполнения 2 цикла.<br /></p><div class="codebox"><pre><code>F2::
   
   Loop, 10 { ; цикл 0
      Count := A_Index
      Loop  10 { ; цикл 1
        команды 1
      Send, {f Down}
      Sleep, 6450
      Send, {f Up}
      Sleep, 500
      Send, {f Down}
      Sleep, 200
      Send, {f Up}
      Sleep, 300
      Send, {f Down}
      Sleep, 200
      Send, {f Up}
      Sleep, 300
      Send, {f Down}
      Sleep, 200
      Send, {f Up}
      Sleep, 300
      Send, {f Down}
      Sleep, 1600
      Send, {f Up}
      Sleep, 500
      Send, {f Down}
      Sleep, 200
      Send, {f Up}
      Sleep, 300 
      if Count &lt;= 9
         continue
         Loop  1 {  ; цикл 2
           команды 2  
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 1600
         Send, {f Up}
         Sleep, 500
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         Send, {f Down}
         Sleep, 200
         Send, {f Up}
         Sleep, 300
         if A_Index &lt;= 9
              continue
            Loop  1 {  ; цикл 3
               команды 3
            Send, {f Down}
            Sleep, 200
            Send, {f Up}
            Sleep, 300
            Send, {f Down}
            Sleep, 1600
            Send, {f Up}
            Sleep, 500
            Send, {f Down}
            Sleep, 200
            Send, {f Up}
            Sleep, 300
            Send, {f Down}
            Sleep, 200
            Send, {f Up}
            Sleep, 300
            Send, {f Down}
            Sleep, 200
            Send, {f Up}
            Sleep, 300
            }
         }  
      } 
   }
F3::ExitApp
F4::Pause</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Igor S]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=45141</uri>
			</author>
			<updated>2025-09-03T23:40:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162671#p162671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK v1: Повторение взаимовложенных Циклов для скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162668#p162668" />
			<content type="html"><![CDATA[<p>Примерно так<br /></p><div class="codebox"><pre><code>loop 11 { ; 1-й цикл выполняется 11 раз
   Count := A_Index
   loop 100 { ; 2-й цикл
      if Count &lt;= 10
         continue
      loop 1000 { ; 3-й цикл внутри 2-го выполнится только на 11-ю итерацию 1-го
      }
   }
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[haridev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=45040</uri>
			</author>
			<updated>2025-09-03T07:46:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162668#p162668</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK v1: Повторение взаимовложенных Циклов для скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=162667#p162667" />
			<content type="html"><![CDATA[<p>Здравствуйте. Как сделать так чтобы после выполнения 2 цикла, вновь начался с 1 и так 10 раз, и только потом перешёл к третьему.<br /></p><div class="codebox"><pre><code>F2::

Loop,  {
Loop, 1{
Loop, 10{
Send, {f Down}
Sleep, 6450
Send, {f Up}
Sleep, 500
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 1600
Send, {f Up}
Sleep, 500
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
}
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 1600
Send, {f Up}
Sleep, 500
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
}
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 1600
Send, {f Up}
Sleep, 500
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
Send, {f Down}
Sleep, 200
Send, {f Up}
Sleep, 300
}
Return
F3::ExitApp
F4::Pause</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Igor S]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=45141</uri>
			</author>
			<updated>2025-09-03T06:53:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=162667#p162667</id>
		</entry>
</feed>
