<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; Помогите с кодом]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=13044&amp;type=atom" />
	<updated>2017-10-02T18:17:54Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=13044</id>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с кодом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119710#p119710" />
			<content type="html"><![CDATA[<p>Ему random нужен, чтобы обходить античит на одинаковый спам кнопки видимо, это же autofire. Только физические нажатия пользователя обычно в диапазоне 250 мс.<br /></p><div class="codebox"><pre><code>
#IF (AutoFire = &quot;1&quot;)
~*LButton::
   While GetKeyState(&quot;LButton&quot;, &quot;P&quot;)  {
      SendInput, {vk01}
	  Random, sleep_value, 150, 300
      Sleep, % sleep_value
      if Compensation = 1
         mouseXY(0, compVal)
   }
Return
#IF
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Странникх]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=30605</uri>
			</author>
			<updated>2017-10-02T18:17:54Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119710#p119710</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с кодом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119705#p119705" />
			<content type="html"><![CDATA[<p>Нет смысла делать рандом значения Sleep между 3 и 5 милисекундами, для этой команды минимальное значение 10. Если ставите меньше — будет всё равно 10 или больше (читайте справку).<br />Модификатор $ для кнопок мыши также не имеет смысла.<br />Не вижу в коде, где меняется значение переменных AutoFire и Compensation, также не определена функция mouseXY(0, compVal), но в любом случае лучше так:<br /></p><div class="codebox"><pre><code>#If AutoFire = 1
~*LButton::
   While GetKeyState(&quot;LButton&quot;, &quot;P&quot;)  {
      Click
      Sleep, 1
      if Compensation = 1
         mouseXY(0, compVal)
   }
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-02T17:30:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119705#p119705</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с кодом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119696#p119696" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>   
    ~$*LButton:: ;AutoFire
    if AutoFire = 1
    {
        Loop
    {
        GetKeyState, LButton, LButton, P
       if  if LButton = U
            Break
        MouseClick, Left,,, 1
        Gosub, RandomSleep ;Call to RandomSleep.
      if Compensation = 1
      {
        mouseXY(0, compVal) ;If active, call to Compensation.
      }
    }
    }
    Return
    RandomSleep: ;Random timing between clicks, just in case.
      Random, random, 3, 5
      Sleep %random%-5
    Return</code></pre></div><p>Иногда он не&nbsp; прекращает стрелять, когда отпускаю. Помогите&nbsp; исправить</p>]]></content>
			<author>
				<name><![CDATA[vipithunter]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38791</uri>
			</author>
			<updated>2017-10-02T16:35:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119696#p119696</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Помогите с кодом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119693#p119693" />
			<content type="html"><![CDATA[<p>Начинайте, поможем.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2017-10-02T16:00:32Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119693#p119693</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Помогите с кодом]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=119688#p119688" />
			<content type="html"><![CDATA[<p>Помогите написать, когда зажимаешь левую кнопку мыши она нажимается много&nbsp; раз</p>]]></content>
			<author>
				<name><![CDATA[vipithunter]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=38791</uri>
			</author>
			<updated>2017-10-02T15:43:38Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=119688#p119688</id>
		</entry>
</feed>
