<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Переменная из *INI + Рандом]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=6233&amp;type=atom" />
	<updated>2011-09-19T16:38:54Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=6233</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переменная из *INI + Рандом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51681#p51681" />
			<content type="html"><![CDATA[<p>Спасибо. Кажется помогло. <img src="//forum.script-coding.com/img/smilies/smile.png" width="15" height="15" /></p>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-09-19T16:38:54Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51681#p51681</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переменная из *INI + Рандом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51665#p51665" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>Sleep, % Delay + Rand</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Grey]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=25792</uri>
			</author>
			<updated>2011-09-18T16:49:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51665#p51665</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Переменная из *INI + Рандом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51664#p51664" />
			<content type="html"><![CDATA[<p>Уберите знаки %.</p>]]></content>
			<author>
				<name><![CDATA[ypppu]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=5974</uri>
			</author>
			<updated>2011-09-18T16:49:46Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51664#p51664</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Переменная из *INI + Рандом]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=51661#p51661" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[DaVinchi]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26386</uri>
			</author>
			<updated>2011-09-18T16:21:48Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=51661#p51661</id>
		</entry>
</feed>
