<?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=5691&amp;type=atom" />
	<updated>2011-04-03T20:12:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=5691</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47351#p47351" />
			<content type="html"><![CDATA[<p>Все ОК! Спасибо большое!</p><p>А я че токо не мудрил с этими перемещениями.</p>]]></content>
			<author>
				<name><![CDATA[avens]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24487</uri>
			</author>
			<updated>2011-04-03T20:12:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47351#p47351</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47345#p47345" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>   Var = a|b|c|d|e|f|g|h|i|

   Var := SubStr(Var, 1, -1)  ; отрезаем последний символ
   StringSplit, Var, Var, |   ; Var1 = a, Var2 = b ..., Var0 = 9 — количество ячеек
   Cell := Var0+1
   Return

Left::
Right::
   Cell += A_ThisHotkey = &quot;Left&quot; ? -1 : 1
   MsgBox, % (Cell &gt;= Var0+1 || Cell &lt; 1) ? &quot;Конец&quot; : Var%Cell%
   Cell := Cell &lt; 1 ? 0 : Cell &gt; Var0+1 ? Var0+1 : Cell
   Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2011-04-03T17:16:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47345#p47345</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47338#p47338" />
			<content type="html"><![CDATA[<p>Это, только нужно что бы по началу при нажатии назад, тоесть Left начиналось с последней ячейки где в данном случае находится &quot;i&quot;,<br />и доходя до последней ячейке на другую сторону уже не переходило.<br />Типа вот так:</p><p>Var = a|b|c|d|e|f|g|h|i|</p><p>По нажатию Left&nbsp; &quot;i&quot; потом &quot;h&quot; потом ... потом &quot;a&quot; потом MsgBox Конец<br />а если нажимать в другую сторону Right, то по порядку в другую сторону и после &quot;i&quot; MsgBox Конец</p>]]></content>
			<author>
				<name><![CDATA[avens]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24487</uri>
			</author>
			<updated>2011-04-03T12:20:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47338#p47338</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47336#p47336" />
			<content type="html"><![CDATA[<p>Может так?</p><div class="codebox"><pre><code>Var = a|b|c|d|e|f|g|h|i|
Count = 9
 
Left::
count -= 1
If count &lt; 1
  count := 9
loop, parse, var, |
  if (a_index = count)
    MsgBox %a_loopfield%
return
 
 
Right::
count += 1
If count &gt; 9
  count := 1
loop, parse, var, |
  if (a_index = count)
    MsgBox %a_loopfield%
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[InFlames]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24849</uri>
			</author>
			<updated>2011-04-03T11:57:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47336#p47336</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47335#p47335" />
			<content type="html"><![CDATA[<p>Var = a|b|c|d|e|f|g|h|i| &lt;-- Вот <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[avens]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24487</uri>
			</author>
			<updated>2011-04-03T11:57:12Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47335#p47335</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Перемещение по разделам в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47334#p47334" />
			<content type="html"><![CDATA[<p>А где находится зад?</p>]]></content>
			<author>
				<name><![CDATA[YMP]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=81</uri>
			</author>
			<updated>2011-04-03T11:47:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47334#p47334</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Перемещение по разделам в переменной]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=47333#p47333" />
			<content type="html"><![CDATA[<p>Здравствуйте!<br />Как можно сделать, что бы нажимая кнопки Left и Right, перемещаться по очереди влево или вправо начиная с зади по ячейкам (&quot;|ячейка|&quot;) в переменной &quot;Var&quot;, и выводить результат в MsgBox?</p><br /><div class="codebox"><pre><code>Var = a|b|c|d|e|f|g|h|i|

Left::

MsgBox %%
return


Right::

MsgBox %%
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[avens]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24487</uri>
			</author>
			<updated>2011-04-03T11:33:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=47333#p47333</id>
		</entry>
</feed>
