<?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="http://forum.script-coding.com/extern.php?action=feed&amp;tid=15710&amp;type=atom" />
	<updated>2020-10-13T07:28:21Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=15710</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142632#p142632" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>genRandStr(count := 10)
{
	world := &quot;qwertyuiopasdfghjklzxcvbnm1234567890&quot; ; QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjklzxcvbnm1234567890
	loop, % count 
		str := str SubStr(world, Rand(1, strlen(world)), 1)
	return str
}

Rand(min, max)
{
	Random, out, min, max
	Return out
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Phoenixxx_Czar]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34426</uri>
			</author>
			<updated>2020-10-13T07:28:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142632#p142632</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142497#p142497" />
			<content type="html"><![CDATA[<p><strong>Botsy</strong></p><p>да, это то, спасибо большое дружище, ты лучший, удачи &lt;3</p>]]></content>
			<author>
				<name><![CDATA[LittleDanch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41118</uri>
			</author>
			<updated>2020-10-06T15:32:43Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142497#p142497</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142496#p142496" />
			<content type="html"><![CDATA[<p><strong>LittleDanch</strong> можно так попробовать </p><div class="codebox"><pre><code>Send, % GenerateRandomString()</code></pre></div><p> А больше хз как сделать.</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2020-10-06T15:31:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142496#p142496</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142495#p142495" />
			<content type="html"><![CDATA[<p><strong>Botsy</strong></p><p>выглядит так, типа не в сообщение вставляется, а на курсоре, видимо какая-то другая нужна команда</p>]]></content>
			<author>
				<name><![CDATA[LittleDanch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41118</uri>
			</author>
			<updated>2020-10-06T15:24:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142495#p142495</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142494#p142494" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>LittleDanch пишет:</cite><blockquote><p><strong>Botsy</strong></p><p>а можно сделать так чтобы это не мэсседжбоксом вылетало, а в текстовый блок выводилось, чат там диалог? (чтобы я мог буквально спамить F10 и нажимать Enter сразу)</p></blockquote></div><p> Замените </p><div class="codebox"><pre><code> Msgbox % GenerateRandomString() </code></pre></div><p> на это .</p><div class="codebox"><pre><code>Tooltip, % GenerateRandomString()</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2020-10-06T15:22:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142494#p142494</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142493#p142493" />
			<content type="html"><![CDATA[<p><strong>Botsy</strong></p><p>а можно сделать так чтобы это не мэсседжбоксом вылетало, а в текстовый блок выводилось, чат там диалог? (чтобы я мог буквально спамить F10 и нажимать Enter сразу)</p>]]></content>
			<author>
				<name><![CDATA[LittleDanch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41118</uri>
			</author>
			<updated>2020-10-06T15:17:44Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142493#p142493</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142492#p142492" />
			<content type="html"><![CDATA[<p><strong>LittleDanch</strong> можно так, на Ф10 генерируешь :<br /></p><div class="codebox"><pre><code>
F10::

Msgbox % GenerateRandomString()

GenerateRandomString(length = 15) 
{

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

Loop, %length%
{
	Random, rand, 1, 36
	password .= chars%rand%
}
return password
}

return

F12::ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2020-10-06T15:14:39Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142492#p142492</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142491#p142491" />
			<content type="html"><![CDATA[<p><strong>LittleDanch</strong> Ммотри команду random.</p>]]></content>
			<author>
				<name><![CDATA[Botsy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41069</uri>
			</author>
			<updated>2020-10-06T15:01:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142491#p142491</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Генерация случайных символов]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=142490#p142490" />
			<content type="html"><![CDATA[<p>Нужно чтобы при нажатии клавиши (допустим R) в текстовой блок (например при вводе сообщения) генерировался случайный набор символов, 15 штук, среди которых могут оказаться только латинские строчные и цифры от 0 до 9.<br />То есть по итогу всё должно выглядеть так - я запускаю этот скрипт, и в течение последующего времени, каждое нажатие на R, будучи в текстовом блоке, генерирует там 15 символов (например fdj5jsdakl221ls)<br />Надеюсь поможете, нет времени разбираться в этом всём, просто нужен результат.<br />Заранее спасибо.</p>]]></content>
			<author>
				<name><![CDATA[LittleDanch]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41118</uri>
			</author>
			<updated>2020-10-06T14:42:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=142490#p142490</id>
		</entry>
</feed>
