<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=16904&amp;type=atom" />
	<updated>2022-01-24T15:01:35Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=16904</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151792#p151792" />
			<content type="html"><![CDATA[<p><strong>Phoenixxx_Czar</strong></p><p>Думаете что если назвать переменную полным именем она будет работать лучше? В функции на пару строк - не грех.<br />Если вы за справедливость - найдите все косяки (в коде что в шапке темы) и исправите (с комментариями).</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-01-24T15:01:35Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151792#p151792</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151786#p151786" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong>, думаете, что называть переменные одной буквой - нормальная практика?</p>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2022-01-24T03:11:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151786#p151786</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151780#p151780" />
			<content type="html"><![CDATA[<p><strong>draugrar12345</strong></p><p>Правильно так:</p><div class="codebox"><pre><code>SendInput, % RandStr() &quot; &quot; RandStr() &quot;{Enter}&quot;
Return

RandStr(L = 5){
 Static C := StrSplit(&quot;abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890&quot;)
 Loop, % L{
  Random, R, 1, C.Count()
  T .= C[R]
 }
 Return T
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-01-23T17:54:15Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151780#p151780</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151779#p151779" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />ООООО, вот как раз этот Кривой пример и полноценно сработал))) ТОже СПАСИБО!!!!</p>]]></content>
			<author>
				<name><![CDATA[draugrar12345]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42299</uri>
			</author>
			<updated>2022-01-23T17:52:29Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151779#p151779</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151778#p151778" />
			<content type="html"><![CDATA[<p><strong>Vsevolod</strong></p><p>Можно было бы поступить проще:</p><div class="codebox"><pre><code>Send, % GenerateRandomString() &quot; &quot; GenerateRandomString()</code></pre></div><p>Ито это крайне кривой код и пример.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-01-23T17:47:04Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151778#p151778</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151777#p151777" />
			<content type="html"><![CDATA[<p><strong>Vsevolod</strong><br />Именно это мне и нужно!!! СПАСИБО!!!!</p><p>P.S. Все также хорошо, только теперь на конце второго слова также ставится пробел, а как его убрать?</p>]]></content>
			<author>
				<name><![CDATA[draugrar12345]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42299</uri>
			</author>
			<updated>2022-01-23T17:44:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151777#p151777</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151776#p151776" />
			<content type="html"><![CDATA[<p><strong>draugrar12345</strong><br /></p><div class="codebox"><pre><code>F1::

Send, % GenerateRandomString()

GenerateRandomString(length = 5) 
{

characters := &quot;QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890&quot; 
StringSplit, chars, characters

Loop, 2
{
	Loop, %length%
	{
		Random, rand, 1, 36
		password .= chars%rand%
	}
	password .= &quot; &quot;
}
return password
}
Send {ENTER} 
return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Vsevolod]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40918</uri>
			</author>
			<updated>2022-01-23T16:35:40Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151776#p151776</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151774#p151774" />
			<content type="html"><![CDATA[<p>Дважды запустить функцию?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2022-01-23T14:42:21Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151774#p151774</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Autohotkey - Как сделать скрипт, вводящий двойной рандом(2 слова)]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=151771#p151771" />
			<content type="html"><![CDATA[<p>Здесь на форуме, я нашел вот такой скрипт, для обычного однонарного рандома:<br /></p><div class="codebox"><pre><code>F1::

Send, % GenerateRandomString()

GenerateRandomString(length = 5) 
{

characters := &quot;QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890&quot; 
StringSplit, chars, characters

Loop, %length%
{
	Random, rand, 1, 36
	password .= chars%rand%
}
return password
}
Send {ENTER} 
return</code></pre></div><p>Мне же нужна возможность сделать двойный рандом(два слова)</p>]]></content>
			<author>
				<name><![CDATA[draugrar12345]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=42299</uri>
			</author>
			<updated>2022-01-23T13:37:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=151771#p151771</id>
		</entry>
</feed>
