<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Gui, radio ( переключатель )]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=8656&amp;type=atom" />
	<updated>2013-09-10T14:13:29Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=8656</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75324#p75324" />
			<content type="html"><![CDATA[<p><span style="color: green">Полагаю, хэппиэнд.</span></p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2013-09-10T14:13:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75324#p75324</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75319#p75319" />
			<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>2013-09-10T13:19:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75319#p75319</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75315#p75315" />
			<content type="html"><![CDATA[<p>А по существу - полагаю, что предложил самый лаконичный и универсальный вариант, к которому несложно прикрутить любые дополнения и исключения.<br />Что особенно приятно - именно после моего поста ТС во всем разобрался. Негодуйте, завистники. <img src="//forum.script-coding.com/img/smilies/tongue.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Korobkoff]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30703</uri>
			</author>
			<updated>2013-09-10T09:28:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75315#p75315</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75314#p75314" />
			<content type="html"><![CDATA[<p>Ну, если и т.н. разработчики вступают в подобные дискуссии в подобном тоне, то и я не прочь продолжить. Я не creature.ws, меня воинствующая демагогия не пугает, а совсем даже напротив <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Тебе, бедолага, я должен напомнить, что пару лет назад наблюдал твое появление здесь, сопровождавшееся перманентным приставанием ко всем подряд с бестолковыми вопросами. С тех пор я смотрю ты сильно вырос в собственных глазах и от тотального безлюдья стал т.н. разработчиком. С интересом ознакомился с твоей, если можно так назвать, карьерой. Все как и в жизни - успех достигнут издевательством над чужими идеями и показушной активностью.</p><p>Мусье хватит - мусье потрет-побанит? Или мусье жаждет продолжить обзор персоналий? <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Korobkoff]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30703</uri>
			</author>
			<updated>2013-09-10T09:20:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75314#p75314</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75312#p75312" />
			<content type="html"><![CDATA[<p><strong>Korobkoff</strong><br />Так ты тут и есть первый демагог, выводы которого произрастают из неведомых остальным условий. А аргументы совсем туманны и абстрактны.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-09-10T05:30:39Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75312#p75312</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75311#p75311" />
			<content type="html"><![CDATA[<p>Заказчик не просил и универсальность, о которой ты начал разговор. А большое страшное число - лишь ответ на псевдоуниверсальность.<br />Если уж совсем-совсем внимательно читать, то можно заметить, что заказчик вообще не просил алгоритм генерирования,- его затруднения, по крайней мере как ему казалось, были связаны исключительно с GUI, а именно с тем, что по нажатии разных кнопок происходило одно и то же.</p><p>Но зачем вникать так глубоко, когда можно ухватиться хоть за что-то и отстаивать что-нибудь свое, не важно какое, но свое, родное.</p><p>P.S. Вариант не предложен, а демагогия - суть признание отсутствия обоснованных возражений.<br />P.Р.S. Отдельное спасибо за (&quot;ввиду каких-то своих соображений&quot; != &quot;по неведомым причинам&quot;) - очень комично вышло. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Korobkoff]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30703</uri>
			</author>
			<updated>2013-09-09T18:47:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75311#p75311</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75310#p75310" />
			<content type="html"><![CDATA[<p>Проблема в том, что заказчику не нужно 2147483647 чисел - если все-таки внимательно посмотреть на код в посте #1, то можно заметить, что для нечетных чисел задано 7 вариантов, в то время как для четных - ровно 8, то есть можно предположить, что &quot;15&quot; ТС пропустил ввиду каких-то своих соображений, а не &quot;по неведомым причинам&quot; (с)</p><p>Хотя конечно можно сказать заказчику - ты хочешь не это, и вообще ничего не понимаешь, сбацаю-ка я тебе вариант на 2147483647 чисел, ибо так гораздо круче ХКТТБ.</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2013-09-09T18:11:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75310#p75310</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75308#p75308" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><p>Так &quot;прилепи&quot;, в чем проблема-то.&nbsp; Массивы - в посте #1</p></blockquote></div><p>Не вопрос. Держи.</p><div class="codebox"><pre><code>
SuperUniversalArray := {1: &quot;Один&quot;, 12: &quot;Дюжина&quot;, 15: &quot;Сгенерировано число, отвечающее условиям задачи, но по неведомым причинам отсутствующее в массиве заказчика (15)&quot;, 100500: &quot;Стопиццот&quot;}
Gui, add, button, gGen, Сгенерировать
Gui, add, radio, vUnEven Checked, нечетные
Gui, add, radio, vEven, четные
Gui, add, edit, r2 vedit
Gui, Show
return

Gen:
    GuiControlGet, UnEven 
    Random, Rand, 1, 2147483647
    GuiControl,, edit, % SuperUniversalArray[Rand*2 - UnEven] ? SuperUniversalArray[Rand*2 - UnEven] : Rand*2 - UnEven
    return
</code></pre></div><p>Теперь твоя очередь. 2147483647 чисел в виде пары массивов - в студию! <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /><br />Так яснее в чем на самом деле &quot;проблема-то&quot;?</p>]]></content>
			<author>
				<name><![CDATA[Korobkoff]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30703</uri>
			</author>
			<updated>2013-09-09T14:28:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75308#p75308</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75299#p75299" />
			<content type="html"><![CDATA[<p>Так &quot;прилепи&quot;, в чем проблема-то.&nbsp; Массивы - в посте #1</p>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2013-09-08T19:13:33Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75299#p75299</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75298#p75298" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><p>Зато скрипт более универсальный</p><div class="codebox"><pre><code>Нечетные := Array(&quot;Один&quot;, &quot;3&quot; , &quot;5&quot;, &quot;7&quot;, &quot;9&quot;, &quot;11&quot;, &quot;13&quot;)
Четные := Array(&quot;2&quot;, &quot;4&quot;, &quot;6&quot; , &quot;8&quot;, &quot;10&quot;, &quot;Дюжина&quot;, &quot;14&quot;, &quot;16&quot;)
Gui, add, button, gGen, Сгенерировать
Gui, add, radio, vUnEven Checked, Четные
Gui, add, radio, , Нечетные
Gui, add, edit, r20 vedit
Gui, Show
return

Gen:
    GuiControlGet, UnEven
    GuiControlGet, edit
    Arr := UnEven ? &quot;Четные&quot; : &quot;Нечетные&quot;
    Random, Rand, 1, % %Arr%.MaxIndex()
    GuiControl,, edit, % edit . %Arr%[Rand] . &quot;`n&quot;
    return</code></pre></div></blockquote></div><p>Ой ли...<br /></p><div class="codebox"><pre><code>Gui, add, button, gGen, Сгенерировать
Gui, add, radio, vUnEven Checked, нечетные
Gui, add, radio, vEven, четные
Gui, add, edit, vedit
Gui, Show
return

Gen:
    GuiControlGet, UnEven 
    Random, Rand, 1, 2147483647
    GuiControl,, edit, % Rand*2 - UnEven
    return
</code></pre></div><p>А массив-то с наименованиями прилепить нетрудно, причем только для тех чисел, которые должны их иметь по замыслу. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[Korobkoff]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30703</uri>
			</author>
			<updated>2013-09-08T16:46:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75298#p75298</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75297#p75297" />
			<content type="html"><![CDATA[<p>Исправь в таком случае строку</p><div class="codebox"><pre><code>GuiControl,, edit, % %Arr%[Rand] . &quot;`n&quot; . edit</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2013-09-08T16:28:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75297#p75297</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75296#p75296" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Irbis пишет:</cite><blockquote><p>Зато скрипт более универсальный</p><div class="codebox"><pre><code>Нечетные := Array(&quot;Один&quot;, &quot;3&quot; , &quot;5&quot;, &quot;7&quot;, &quot;9&quot;, &quot;11&quot;, &quot;13&quot;)
Четные := Array(&quot;2&quot;, &quot;4&quot;, &quot;6&quot; , &quot;8&quot;, &quot;10&quot;, &quot;Дюжина&quot;, &quot;14&quot;, &quot;16&quot;)
Gui, add, button, gGen, Сгенерировать
Gui, add, radio, vUnEven Checked, Четные
Gui, add, radio, , Нечетные
Gui, add, edit, r20 vedit
Gui, Show
return

Gen:
    GuiControlGet, UnEven
    GuiControlGet, edit
    Arr := UnEven ? &quot;Четные&quot; : &quot;Нечетные&quot;
    Random, Rand, 1, % %Arr%.MaxIndex()
    GuiControl,, edit, % edit . %Arr%[Rand] . &quot;`n&quot;
    return</code></pre></div></blockquote></div><p>Так новое число уходит все ниже и ниже и приходится листать, как-нибудь по другому можно? Ну или другой вариант, новое число остается наверху, а старое уходит вниз. Заранее спасибо <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[_Квас_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30710</uri>
			</author>
			<updated>2013-09-08T16:17:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75296#p75296</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75295#p75295" />
			<content type="html"><![CDATA[<p>Зато скрипт более универсальный</p><div class="codebox"><pre><code>Нечетные := Array(&quot;Один&quot;, &quot;3&quot; , &quot;5&quot;, &quot;7&quot;, &quot;9&quot;, &quot;11&quot;, &quot;13&quot;)
Четные := Array(&quot;2&quot;, &quot;4&quot;, &quot;6&quot; , &quot;8&quot;, &quot;10&quot;, &quot;Дюжина&quot;, &quot;14&quot;, &quot;16&quot;)
Gui, add, button, gGen, Сгенерировать
Gui, add, radio, vUnEven Checked, Четные
Gui, add, radio, , Нечетные
Gui, add, edit, r20 vedit
Gui, Show
return

Gen:
    GuiControlGet, UnEven
    GuiControlGet, edit
    Arr := UnEven ? &quot;Четные&quot; : &quot;Нечетные&quot;
    Random, Rand, 1, % %Arr%.MaxIndex()
    GuiControl,, edit, % edit . %Arr%[Rand] . &quot;`n&quot;
    return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2013-09-08T15:49:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75295#p75295</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75294#p75294" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Korobkoff пишет:</cite><blockquote><p>Извращенцы</p></blockquote></div><p><img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2013-09-08T15:44:00Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75294#p75294</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Gui, radio ( переключатель )]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=75292#p75292" />
			<content type="html"><![CDATA[<p>И еще 1 вопросик, как сделать, чтобы новое число перемещалось на новую строку, а старое не стиралось?</p>]]></content>
			<author>
				<name><![CDATA[_Квас_]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=30710</uri>
			</author>
			<updated>2013-09-08T15:14:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=75292#p75292</id>
		</entry>
</feed>
