<?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=10277&amp;type=atom" />
	<updated>2014-12-27T12:06:22Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10277</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89806#p89806" />
			<content type="html"><![CDATA[<p>Написал кошерный скрипт на тему, инструкция:<br />1. Печатаеш горячую строку &quot;go&quot;.<br />2. В скобках через запятую пишеш сперва min, потом max.<br />3. Нажимаеш enter.<br />4. PROFIT.</p><div class="codebox"><pre><code>

string := &quot;./12-14&quot;
:*b0:go::
SendInput, % &quot;(){left}&quot;

Input, V, V, {enter}
endCH:= Substr(ErrorLevel, 8, 2)
SendInput, % &quot;{BS &quot; . 4 + StrLen(V) . &quot;}{Del}&quot; ; delete what user input and hotstring

if (endCH = &quot;En&quot;) ; Enter pressed
{
    Loop, parse, V, `,, % A_Space ; divide max and min from string
        if (A_index = 1)
            min:= A_LoopField
        else if (A_index = 2)
            max:= A_LoopField
        else break
    
    rstr:= &quot;&quot;
    if ((max-min) &gt;= 0)
    {
        Loop, % max - min + 1
        {
            i:= min + A_Index - 1 ; index
            rstr.= (i&gt;9 ? i : &quot;0&quot; . i) . string . &quot;`n&quot;
        }
        SendInput, % rstr
    }
}
return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Eduard]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=28482</uri>
			</author>
			<updated>2014-12-27T12:06:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89806#p89806</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89765#p89765" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Malcev пишет:</cite><blockquote><div class="codebox"><pre><code>string := &quot;**./12-14&quot;
min := 8
max := 22

loop
{
   min := SubStr(&quot;0&quot; min,-1)
   StringReplace, newstring, string, **, %min%
   result .= newstring &quot;`n&quot;
   if (min = max)
      break
   min++
}
msgbox % result</code></pre></div></blockquote></div><p>Спасибо</p>]]></content>
			<author>
				<name><![CDATA[sigmondt]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32767</uri>
			</author>
			<updated>2014-12-25T07:29:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89765#p89765</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89755#p89755" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>string := &quot;**./12-14&quot;
min := 8
max := 22

loop
{
   min := SubStr(&quot;0&quot; min,-1)
   StringReplace, newstring, string, **, %min%
   result .= newstring &quot;`n&quot;
   if (min = max)
      break
   min++
}
msgbox % result</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2014-12-24T20:53:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89755#p89755</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89754#p89754" />
			<content type="html"><![CDATA[<p>Вызываю телепатов!<br /><span class="postimg"><img src="http://media2.tintuconline.com.vn/ThumbImages/2013/07/31/21/01/a2_160.jpg" alt="http://media2.tintuconline.com.vn/ThumbImages/2013/07/31/21/01/a2_160.jpg" /></span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2014-12-24T20:27:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89754#p89754</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89753#p89753" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>Так отчего зависит изменение звездочки?</p></blockquote></div><p>Да я и руками могу в скрипте править диапазон...т.е. это известное число<br />допустим надо 20 изменений(может быть и больше и меньше)</p><p>155./11-14<br />...<br />174./11-14<br />Просто я незнаю как сам скрипт составить.</p>]]></content>
			<author>
				<name><![CDATA[sigmondt]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32767</uri>
			</author>
			<updated>2014-12-24T19:49:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89753#p89753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89752#p89752" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>teadrinker пишет:</cite><blockquote><p>Для начала нужно ознакомиться с темой сверху.</p></blockquote></div><p>Обязательно почитаю...честно.Просто время не терпит, поэтому задал вопрос, а читать буду чуть позже, завтра с утра.</p>]]></content>
			<author>
				<name><![CDATA[sigmondt]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32767</uri>
			</author>
			<updated>2014-12-24T19:47:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89752#p89752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89751#p89751" />
			<content type="html"><![CDATA[<p>Так отчего зависит изменение звездочки?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-12-24T19:43:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89751#p89751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89750#p89750" />
			<content type="html"><![CDATA[<p>Для начала нужно ознакомиться с темой сверху.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-12-24T19:42:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89750#p89750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK:Как вывести заданную последовательность чисел?]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=89749#p89749" />
			<content type="html"><![CDATA[<p>Например есть **./12-14&nbsp; .<br />Необходимо при вводе мин и макс получить изменение части где звездочки.<br />01./12-14<br />02./12-14<br />...<br />20./12-14<br />Если кто подскажет, благодарен.</p>]]></content>
			<author>
				<name><![CDATA[sigmondt]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32767</uri>
			</author>
			<updated>2014-12-24T19:39:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=89749#p89749</id>
		</entry>
</feed>
