<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK: Переменная из *INI + Рандом]]></title>
		<link>https://forum.script-coding.com/viewtopic.php?id=6233</link>
		<atom:link href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6233&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK: Переменная из *INI + Рандом».]]></description>
		<lastBuildDate>Mon, 19 Sep 2011 16:38:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: AHK: Переменная из *INI + Рандом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=51681#p51681</link>
			<description><![CDATA[<p>Спасибо. Кажется помогло. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (DaVinchi)]]></author>
			<pubDate>Mon, 19 Sep 2011 16:38:54 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=51681#p51681</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Переменная из *INI + Рандом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=51665#p51665</link>
			<description><![CDATA[<div class="codebox"><pre><code>Sleep, % Delay + Rand</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (Grey)]]></author>
			<pubDate>Sun, 18 Sep 2011 16:49:47 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=51665#p51665</guid>
		</item>
		<item>
			<title><![CDATA[Re: AHK: Переменная из *INI + Рандом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=51664#p51664</link>
			<description><![CDATA[<p>Уберите знаки %.</p>]]></description>
			<author><![CDATA[null@example.com (ypppu)]]></author>
			<pubDate>Sun, 18 Sep 2011 16:49:46 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=51664#p51664</guid>
		</item>
		<item>
			<title><![CDATA[AHK: Переменная из *INI + Рандом]]></title>
			<link>https://forum.script-coding.com/viewtopic.php?pid=51661#p51661</link>
			<description><![CDATA[<p>Суть в следующем. Есть прекрасно работающий скрипт, но мне захотелось мне добавить изюминку, но эта &quot;изюминка&quot; работать отказывается <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" />.<br />Мой код, работающий:<br /></p><div class="codebox"><pre><code>
#SingleInstance ignore
WinGet, p_id, pid, Блокнот

gosub, ReadButton

vk70::
Loop, 100
{
ControlSend, ,{%Skill%}, ahk_pid %p_id%
Sleep, %Delay%
ControlSend, ,{vkd}, ahk_pid %p_id%
Sleep, %Delay%
ControlSend, ,{vkd}, ahk_pid %p_id%
Sleep, %Delay%
ToolTip, %A_Index%, 10, 10
	if a_index = 100
	ToolTip
}
SoundPlay, Bip.wav ;*64
return,

ReadButton:
	IniRead, Skill, conf.ini, NameOfSkill, Skill
	IniRead, delay, conf.ini, TimeOfDelay, Delay
return,

F9:: Pause
return</code></pre></div><p>Хотел добавить к переменной %Delay% еще и переменную рандома, но не хочет работать. <br />Код который я пробовал:<br /></p><div class="codebox"><pre><code>
#SingleInstance ignore
WinGet, p_id, pid, Блокнот

gosub, ReadButton

vk70::
Loop, 100
{
Random, Rand, 10, 100
ControlSend, ,{%Skill%}, ahk_pid %p_id%
Sleep, %Delay% + %Rand%
ControlSend, ,{vkd}, ahk_pid %p_id%
Sleep, %Delay% + %Rand%
ControlSend, ,{vkd}, ahk_pid %p_id%
Sleep, %Delay% + %Rand%
ToolTip, %A_Index%, 10, 10
	if a_index = 100
	ToolTip
}
SoundPlay, Bip.wav
return,

ReadButton:
	IniRead, Skill, conf.ini, NameOfSkill, Skill
	IniRead, delay, conf.ini, TimeOfDelay, Delay
return,

F9:: Pause
return</code></pre></div><p>Скажу, что после Sleep я пробовал ставить знак %, что бы было видно, что это выражение, но особо не помогло <img src="//forum.script-coding.com/img/smilies/sad.png" width="15" height="15" /></p>]]></description>
			<author><![CDATA[null@example.com (DaVinchi)]]></author>
			<pubDate>Sun, 18 Sep 2011 16:21:48 +0000</pubDate>
			<guid>https://forum.script-coding.com/viewtopic.php?pid=51661#p51661</guid>
		</item>
	</channel>
</rss>
