<?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=12729&amp;type=atom" />
	<updated>2017-06-10T08:43:56Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=12729</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Повторение скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116517#p116517" />
			<content type="html"><![CDATA[<p>Также есть конструкции goto и gosub.<br />goto переходит к любой метке .<br />gosub тоже самое , только при окончании работы переходит обратно .<br />А еще можно писать функции , тоже очень любопытное занятие .</p>]]></content>
			<author>
				<name><![CDATA[shahlik002]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37352</uri>
			</author>
			<updated>2017-06-10T08:43:56Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116517#p116517</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Повторение скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116501#p116501" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong><br />Спасибо за пример,&nbsp; разобрался. Со второй проблемой тоже.</p>]]></content>
			<author>
				<name><![CDATA[powercat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37884</uri>
			</author>
			<updated>2017-06-09T11:09:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116501#p116501</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Повторение скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116420#p116420" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>a := 0
Loop {
	If stop
		Break
	MsgBox 4,, %a%`nВернутся в начало цикла?
	IfMsgBox Yes
		Continue

	a++
}
MsgBox Выход из цикла
ExitApp

Esc:: stop := true</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-06-06T12:47:07Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116420#p116420</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Повторение скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116419#p116419" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>Ни одного цикла в вашем коде не вижу.</p></blockquote></div><p>Не видите потому что:<br /></p><div class="quotebox"><cite>powercat пишет:</cite><blockquote><p>Не понимаю как это работает</p></blockquote></div><p>Я не знаю как это все дело зациклить. Подробной документации не нашел.</p>]]></content>
			<author>
				<name><![CDATA[powercat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37884</uri>
			</author>
			<updated>2017-06-06T12:20:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116419#p116419</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Повторение скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116417#p116417" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Всю ночь просидел</p></blockquote></div><p>Ни одного цикла в вашем коде не вижу. Скопировать код из справки - 3 мин.</p>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2017-06-06T11:03:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116417#p116417</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Повторение скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116415#p116415" />
			<content type="html"><![CDATA[<p><strong>stealzy</strong><br />Не понимаю как это работает, поэтому и спрашиваю здесь. Всю ночь просидел ничего не вышло.</p>]]></content>
			<author>
				<name><![CDATA[powercat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37884</uri>
			</author>
			<updated>2017-06-06T10:43:06Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116415#p116415</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Повторение скрипта.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=116407#p116407" />
			<content type="html"><![CDATA[<p>Здравствуйте, есть такой скрипт, работает он отлично, но мне нужно пихнуть его в другой скрипт и поэтому Reload будет сбивать работу основного скрипта в который&nbsp; я помещу данный. Как можно заменить reload? Нужно чтобы после sleep в Dep или Dev скрипт начинал работать сначала. И еще,&nbsp; данный скрипт использует&nbsp; PixelSearch и при использовании&nbsp; PixelSearch в основной части скрипта&nbsp; таймер в этом скрипте сбивается. Что можно с этим сделать? Спасибо.<br /></p><div class="fancy_spoiler_switcher"><div class="fancy_spoiler_switcher_header" data-lang-open="открыть спойлер" data-lang-close="скрыть спойлер"><strong>+</strong>&nbsp;открыть спойлер</div><div class="fancy_spoiler"><div class="codebox"><pre><code>#Persistent
#SingleInstance Force
#Warn All,Off
    CoordMode ToolTip,Screen
    SysGet screenW,0
    SysGet screenH,1
 
    second = 40
    tipx := (screenW/2) - 10
    tipy := screenH - (screenH/3)
 
    ToolTip [hello],0,0
    SetTimer Nope,200
     
    Nope:
    {
      PixelSearch outx,outx,800,720,830,770,0x0F0000,255,Fast          
      if !ErrorLevel
        {   PixelSearch outx,outy,845,760,860,780,0xEFFFFF,16,Fast     
          if !ErrorLevel
            {   PixelSearch outx,outy,940,5,980,30,0xFFFFFF,32,Fast     
              if ErrorLevel
                {   SetTimer Nope,Off
                  gosub Yeap
                  SetTimer Yeap,1000
                }
            }
        }
      return
    }
 
  Yeap:
    {
        ToolTip %second%,%tipx%,%tipy%
        second -= 1
   
        if second &lt;= 5
            tipy -= 15
   
        PixelSearch outx,outy,945,7,955,14,0x20FF0F,150,Fast        
        if (!ErrorLevel)
           gosub Dep
	  	
	    PixelSearch outx,outy,940,5,980,30,0xF93FFF,32,Fast       
  	    if (ErrorLevel and second &lt; 0)
	        gosub Dev
		
        return
    }
 
    Dep:
    {  
        ToolTip [test],0,0
        SetTimer Yeap,Off
        Sleep 5000
        Reload
    }

    Dev:
    {  
        ToolTip [bam],0,0
        SetTimer Yeap,Off
        Sleep 5000
        Reload
    }

</code></pre></div></div></div>]]></content>
			<author>
				<name><![CDATA[powercat]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=37884</uri>
			</author>
			<updated>2017-06-05T23:37:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=116407#p116407</id>
		</entry>
</feed>
