<?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=9754&amp;type=atom" />
	<updated>2014-07-01T10:55:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=9754</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84390#p84390" />
			<content type="html"><![CDATA[<p>....</p>]]></content>
			<author>
				<name><![CDATA[6PuJlJluaNT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32346</uri>
			</author>
			<updated>2014-07-01T10:55:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84390#p84390</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84389#p84389" />
			<content type="html"><![CDATA[<p>Может надо очищать переменную max перед использованием.<br /></p><div class="codebox"><pre><code>
max =

Loop 5
    Random, var%A_Index%, 2, 12 
    
Loop 5
    max := var%A_Index% &gt; max ? var%A_Index% : max
    
MsgBox % &quot;var1 = &quot; var1 &quot;`nmax = &quot; max

If (var1 = max)
    MsgBox больше чем остальные
Else
    MsgBox меньше</code></pre></div><p>Да и смысла тут проверять на больше - нет.</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-07-01T10:48:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84389#p84389</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84388#p84388" />
			<content type="html"><![CDATA[<p>Если просто использовать без скрипта, то работает отлично, а так не хочет</p>]]></content>
			<author>
				<name><![CDATA[6PuJlJluaNT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32346</uri>
			</author>
			<updated>2014-07-01T10:44:05Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84388#p84388</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84387#p84387" />
			<content type="html"><![CDATA[<p>Все равно не работает, можете дать сразу готовый исходник? После нажатия на Start, должно пройти 5 секунд, сгенерироваться 5 чисел, записаться в GUI и определить, если мое число большее, то прибавить к деньгам сумму с банка.</p>]]></content>
			<author>
				<name><![CDATA[6PuJlJluaNT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32346</uri>
			</author>
			<updated>2014-07-01T10:33:58Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84387#p84387</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84386#p84386" />
			<content type="html"><![CDATA[<p>Не знаю, что тут может не работать.<br /></p><div class="codebox"><pre><code>
Loop 5
    Random, var%A_Index%, 2, 12 
    
Loop 5
    max := var%A_Index% &gt; max ? var%A_Index% : max
    
MsgBox % &quot;var1 = &quot; var1 &quot;`nmax = &quot; max

If (var1 &gt;= max)
    MsgBox больше или равно
Else
    MsgBox меньше
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-07-01T10:21:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84386#p84386</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84384#p84384" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><p>И что не получается?</p></blockquote></div><p>Я вот вставил этот код, который вы мне дали, и теперь абсолютно всегда я выигрываю, то есть показывает, что мое число всегда большее.</p>]]></content>
			<author>
				<name><![CDATA[6PuJlJluaNT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32346</uri>
			</author>
			<updated>2014-07-01T10:09:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84384#p84384</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84383#p84383" />
			<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-07-01T09:57:11Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84383#p84383</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84382#p84382" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>serzh82saratov пишет:</cite><blockquote><div class="quotebox"><blockquote><p>если мое число большее</p></blockquote></div><p>Какое <span class="bbu">мое число</span>?</p></blockquote></div><div class="codebox"><pre><code>Random, var1, 2, 12</code></pre></div><p>Это мое число, остальные числа других игроков.</p>]]></content>
			<author>
				<name><![CDATA[6PuJlJluaNT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32346</uri>
			</author>
			<updated>2014-07-01T09:55:45Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84382#p84382</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84381#p84381" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>если мое число большее</p></blockquote></div><p>Какое <span class="bbu">мое число</span>?</p>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-07-01T09:38:24Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84381#p84381</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84380#p84380" />
			<content type="html"><![CDATA[<p>....</p>]]></content>
			<author>
				<name><![CDATA[6PuJlJluaNT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32346</uri>
			</author>
			<updated>2014-07-01T09:32:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84380#p84380</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84378#p84378" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>List = 4|8|2|10|9

Loop, parse, List, |
    max := A_LoopField &gt; max ? A_LoopField : max
MsgBox % max</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2014-07-01T09:09:30Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84378#p84378</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Нахождение большего из сгенерировавшихся чисел]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=84377#p84377" />
			<content type="html"><![CDATA[<p>Привет. У меня такая проблема, сделал генератор рандомных чисел от 2 до 12, всего 5 чисел, записал их в GUI через GuiControl и теперь надо, чтобы нашлось большее из этих 5 чисел. Помогите пожалуйста!</p>]]></content>
			<author>
				<name><![CDATA[6PuJlJluaNT]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=32346</uri>
			</author>
			<updated>2014-07-01T07:51:03Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=84377#p84377</id>
		</entry>
</feed>
