<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=11642&amp;type=atom" />
	<updated>2016-05-29T15:16:41Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11642</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104410#p104410" />
			<content type="html"><![CDATA[<p>Теперь всё чётко. Еще раз спасибо!</p>]]></content>
			<author>
				<name><![CDATA[sn_ud]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33923</uri>
			</author>
			<updated>2016-05-29T15:16:41Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104410#p104410</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104409#p104409" />
			<content type="html"><![CDATA[<p>Ага, поправил 20 пост.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-05-29T15:07:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104409#p104409</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104407#p104407" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong></p><p>таки нашелся баг: если я вбиваю другой диапазон, получаю на выходе совсем не то что надо:<br />например, вбиваю<br />ip1 = 192.168.1.1<br />ip2 = 192.168.1.10<br /> а скрипт выдает:</p><p>http://zabanmenyzpolnostyu/user_ban?=0.192.168.17<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.18<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.19<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.20<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.21<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.22<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.23<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.24<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.25<br />http://zabanmenyzpolnostyu/user_ban?=0.192.168.26</p>]]></content>
			<author>
				<name><![CDATA[sn_ud]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33923</uri>
			</author>
			<updated>2016-05-29T14:58:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104407#p104407</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104405#p104405" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />упс ))) Прошу прощения ) Я не посмотрел, что это не тот диапазон, который я давал в начале. Всё работает, это я туплю.<br />Спасибо за помощь )</p><br /><p>Осталось теперь чисто для себя разобраться, как довести до совершенства пример скрипта в посте 6. Сейчас займусь.</p>]]></content>
			<author>
				<name><![CDATA[sn_ud]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33923</uri>
			</author>
			<updated>2016-05-29T14:37:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104405#p104405</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104404#p104404" />
			<content type="html"><![CDATA[<p>То есть вы самостоятельно не можете поменять адреса, и просите помощи?<br /></p><div class="codebox"><pre><code>ip1 = 82.145.223.221
ip2 = 82.145.223.225</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-05-29T14:36:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104404#p104404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104403#p104403" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />а сейчас скрипт выдает вот такой результат:</p><p>http://zabanmenyzpolnostyu/user_ban?=82.145.223.221<br />http://zabanmenyzpolnostyu/user_ban?=82.145.223.222<br />http://zabanmenyzpolnostyu/user_ban?=82.145.223.223<br />http://zabanmenyzpolnostyu/user_ban?=82.145.223.224<br />http://zabanmenyzpolnostyu/user_ban?=82.145.223.225</p><p>и всё.</p><p>Я только добавил запуск по F1, т.к. иначе нет возможности запустить скрипт в текстовом документе: <br /></p><div class="codebox"><pre><code>
#SingleInstance Force
#NoEnv 
SetKeyDelay, 20
F1::
ip1 = 82.145.223.221
ip2 = 82.145.223.225
longtext := &quot;http://zabanmenyzpolnostyu/user_ban?=&quot;

Func(ip1, ip2, longtext)

Func(ip1, ip2, text) {  
	oip1 := StrSplit(ip1, &quot;.&quot;), nip1 := &quot;0x&quot;, oip2 := StrSplit(ip2, &quot;.&quot;), nip2 :=&quot;0x&quot; 
	Loop 4
		nip1 .= Format(&quot;{:x}&quot;, oip1[A_Index]), nip2 .= Format(&quot;{:x}&quot;, oip2[A_Index])
	Loop % nip2 - nip1 + 1 
	{
		ip := ((0xff000000 &amp; (n := nip1 + A_Index - 1)) &gt;&gt; 24) &quot;.&quot; 
		. ((0x00ff0000 &amp; n) &gt;&gt; 16) &quot;.&quot; ((0x0000ff00 &amp; n) &gt;&gt; 8) &quot;.&quot; (0x000000ff &amp; n)
		SendInput {Raw}%text%%ip%
		Sleep 10
		SendInput {Enter} 
		Sleep 10
	}
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[sn_ud]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33923</uri>
			</author>
			<updated>2016-05-29T14:31:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104403#p104403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104401#p104401" />
			<content type="html"><![CDATA[<p>Так из 6-го и не был моим.</p><div class="codebox"><pre><code>#SingleInstance Force
#NoEnv 
SetKeyDelay, 20

ip1 = 82.145.223.221
ip2 = 82.145.223.225
longtext := &quot;http://zabanmenyzpolnostyu/user_ban?=&quot;

Func(ip1, ip2, longtext)

Func(ip1, ip2, text) {  
	oip1 := StrSplit(ip1, &quot;.&quot;), nip1 := &quot;0x&quot;, oip2 := StrSplit(ip2, &quot;.&quot;), nip2 :=&quot;0x&quot; 
	Loop 4
		nip1 .= Format(&quot;{:02x}&quot;, oip1[A_Index]), nip2 .= Format(&quot;{:02x}&quot;, oip2[A_Index])
	Loop % nip2 - nip1 + 1 
	{
		ip := ((0xff000000 &amp; (n := nip1 + A_Index - 1)) &gt;&gt; 24) &quot;.&quot; 
		. ((0x00ff0000 &amp; n) &gt;&gt; 16) &quot;.&quot; ((0x0000ff00 &amp; n) &gt;&gt; 8) &quot;.&quot; (0x000000ff &amp; n)
		SendInput {Raw}%text%%ip%
		Sleep 10
		SendInput {Enter} 
		Sleep 10
	}
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-05-29T14:21:08Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104401#p104401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104400#p104400" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong> нет, из 6-го, а ваш скрипт всё правильно вбивает, там вопрос только в форме вывода результата )</p>]]></content>
			<author>
				<name><![CDATA[sn_ud]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33923</uri>
			</author>
			<updated>2016-05-29T14:12:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104400#p104400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104399#p104399" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>А надо:<br />82.145.220.225<br />82.145.220.226</p></blockquote></div><p>Сейчас так и есть:<br /></p><div class="codebox"><pre><code>ip1 = 82.145.220.224
ip2 = 82.145.223.225

Func(ip1, ip2)

Func(ip1, ip2) {  
	oip1 := StrSplit(ip1, &quot;.&quot;), nip1 := &quot;0x&quot;, oip2 := StrSplit(ip2, &quot;.&quot;), nip2 :=&quot;0x&quot; 
	Loop 4
		nip1 .= Format(&quot;{:02x}&quot;, oip1[A_Index]), nip2 .= Format(&quot;{:02x}&quot;, oip2[A_Index])
	Loop % nip2 - nip1 + 1 
		MsgBox % ((0xff000000 &amp; (n := nip1 + A_Index - 1)) &gt;&gt; 24) &quot;.&quot; 
			. ((0x00ff0000 &amp; n) &gt;&gt; 16) &quot;.&quot; ((0x0000ff00 &amp; n) &gt;&gt; 8) &quot;.&quot; (0x000000ff &amp; n)
}</code></pre></div><p>вы про код из 14 поста?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-05-29T14:11:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104399#p104399</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104398#p104398" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />когда я запускаю ваш скрипт, он всё правильно сначала вбивает:</p><p>82.145.220.0<br />82.145.220.1<br />..........<br />82.145.220.225 - здесь начинает вбивать неправильно (4-я секция обрывается на 225)<br />82.220.221.0</p><p>А надо:<br />82.145.220.0<br />82.145.220.1<br />..........<br />82.145.220.225<br />82.145.220.226<br />.........<br />82.145.220.255<br />82.145.221.0<br />..........<br />82.145.223.225 (окончание диапазона) - вот только здесь 4-я секция должна останавливаться</p>]]></content>
			<author>
				<name><![CDATA[sn_ud]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33923</uri>
			</author>
			<updated>2016-05-29T14:06:37Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104398#p104398</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104397#p104397" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sn_ud пишет:</cite><blockquote><p>окончание 3-й секции</p></blockquote></div><p>Что это значит?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-05-29T13:52:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104397#p104397</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104396#p104396" />
			<content type="html"><![CDATA[<p>Но всё-таки, как в варианте не функции добавить условие проверки на окончание 3-й секции? А в скрипте с функциями вместо месседжбокса сделать просто вывод строкой с последующим нажатием ENTER?</p>]]></content>
			<author>
				<name><![CDATA[sn_ud]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33923</uri>
			</author>
			<updated>2016-05-29T13:51:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104396#p104396</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104395#p104395" />
			<content type="html"><![CDATA[<p>А лучше так:<br /></p><div class="codebox"><pre><code>
ip1 = 82.145.254.254
ip2 = 82.145.255.255

Func(ip1, ip2)

Func(ip1, ip2) {  
	oip1 := StrSplit(ip1, &quot;.&quot;), nip1 := &quot;0x&quot;, oip2 := StrSplit(ip2, &quot;.&quot;), nip2 :=&quot;0x&quot; 
	Loop 4
		nip1 .= Format(&quot;{:02x}&quot;, oip1[A_Index]), nip2 .= Format(&quot;{:02x}&quot;, oip2[A_Index])
	Loop % nip2 - nip1 + 1 
		MsgBox % ((0xff000000 &amp; (n := nip1 + A_Index - 1)) &gt;&gt; 24) &quot;.&quot; 
			. ((0x00ff0000 &amp; n) &gt;&gt; 16) &quot;.&quot; ((0x0000ff00 &amp; n) &gt;&gt; 8) &quot;.&quot; (0x000000ff &amp; n)  
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-05-29T13:47:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104395#p104395</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104393#p104393" />
			<content type="html"><![CDATA[<p>А понял. Спасибо. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[yalanne]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32850</uri>
			</author>
			<updated>2016-05-29T13:40:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104393#p104393</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ввод диапазона ip адресов с нажатием ENTER после каждого ip]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=104392#p104392" />
			<content type="html"><![CDATA[<p>На случай если в ip2 где то есть лидирующие нули, сравнение идёт как строк.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-05-29T13:38:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=104392#p104392</id>
		</entry>
</feed>
