<?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=9418&amp;type=atom" />
	<updated>2014-03-27T14:57:19Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=9418</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81254#p81254" />
			<content type="html"><![CDATA[<p>Спасибо я разобрался&nbsp; , но хотел бы поинтересоваться в моем скрипте нету не каких осечек , знаю он может быть не доработан&nbsp; , таким образом отдача будет плохо подавляться&nbsp; ,я мог бы вам предоставить видео на котором видно отдачу&nbsp; которая присутствует в данной&nbsp; игре .</p>]]></content>
			<author>
				<name><![CDATA[densexp]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31884</uri>
			</author>
			<updated>2014-03-27T14:57:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81254#p81254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81251#p81251" />
			<content type="html"><![CDATA[<p><strong>densexp</strong>, в твоем варианте нет задаваемых в скрипте задержек между выстрелами, видимо это задается самой программой, пока зажата ЛКМ. Просто измени параметр в <strong>Sleep</strong>, с какой частотой будет вызываться процедура MouseXY(). Больше параметр - реже по времени происходит вызов.<br /></p><div class="codebox"><pre><code>...
Sleep 20
mouseXY(0,1)
...</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-03-27T11:08:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81251#p81251</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81247#p81247" />
			<content type="html"><![CDATA[<p><span style="color: Green"><strong>densexp</strong>, код на форуме обрамляется <a href="http://forum.script-coding.com/help.php?section=bbcode">тэгом «code»</a>. Я поправил Ваш пост.</span></p>]]></content>
			<author>
				<name><![CDATA[alexii]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=1844</uri>
			</author>
			<updated>2014-03-27T08:27:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81247#p81247</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81246#p81246" />
			<content type="html"><![CDATA[<p>При данном скрипте , даже с минимальной скоростью передвижения курсора вниз , курсор мыши в игре очень быстро без плавности идет вниз под ноги , в чем то дефект вот еще один скрипт но я не могу нормально его отредактировать но в нем идет плавно просто отдача все равно не регулируется .<br /></p><div class="codebox"><pre><code>#NoEnv
SendMode Input

_auto := true ;Toggle for the anti-recoil being on or off. default is on

*~LButton::autofire() ; When the LButton is pressed run the autofire() function
*+LButton::_auto := ! _auto ;Shift + LButton used to toggle the anti-recoil on and off

; autofire() function, name is misleading could easily be antiRecoil()
autofire()
{
  global _auto
  if _auto ; if _auto == true. i.e. is anti-recoil on?
  { ; anti-recoil on?  If yes do this
    Loop ; Continuously loop until a &#039;break&#039; command
    {
      if GetKeyState(&quot;LButton&quot;, &quot;P&quot;) ; If LButton is pressed
      { ; LButton pressed? If yes do this
        Sleep 20 ; sleep for 85 milliseconds
        mouseXY(0,1) ;Call the mouseXY() function which moves the mouse the specified distance. mouseXY( X, Y,)
        Sleep 20 ; sleep for 45milliseconds
      }
      else ;LButton pressed? If no do this, i.e. exit the loop
        break ;will stop the loop
    } ;; loop
  } ;; if
} ;; autofire() ; anti-recoil on? If no do nothing

mouseXY(x,y)
{
  DllCall(&quot;mouse_event&quot;,uint,1,int,x,int,y,uint,0,int,0) ; moves the mouse could easily be the built in autohotkey MouseMove, X, Y
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[densexp]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31884</uri>
			</author>
			<updated>2014-03-27T08:22:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81246#p81246</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81242#p81242" />
			<content type="html"><![CDATA[<p><strong>densexp</strong>, небольшая хитрость: если воспользоваться кнопкой &quot;Поиск&quot; в шапке форума, можно найти множество тем, аналогичных вашей.<br />Немного переделанный вариант из одного поста (Сдвиг по оси Y и задержка Т вынесены для удобства):<br /></p><div class="codebox"><pre><code>
T := 50, Y:= 5
*~Lbutton::
While GetKeyState(&quot;LButton&quot;, &quot;P&quot;) {
    Click
    MouseMove, 0,Y,, R
    Sleep T
}
Return
F12:: ExitApp
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Irbis]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27384</uri>
			</author>
			<updated>2014-03-26T23:31:53Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81242#p81242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81238#p81238" />
			<content type="html"><![CDATA[<p><span style="color: #008800"><strong>stealzy</strong>, ознакомьтесь с <a href="http://forum.script-coding.com/viewtopic.php?id=6148">этой</a> темой, отредактируйте свой пост.</span></p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2014-03-26T19:08:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81238#p81238</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81235#p81235" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>stealzy пишет:</cite><blockquote><p>LButton::<br />Sleep 50<br />SendPlay{LButton}<br />Return</p></blockquote></div><p>Он не рабочий .</p>]]></content>
			<author>
				<name><![CDATA[densexp]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31884</uri>
			</author>
			<updated>2014-03-26T18:42:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81235#p81235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81234#p81234" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>LButton::
Sleep 50
SendPlay{LButton}
Return
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[stealzy]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31937</uri>
			</author>
			<updated>2014-03-26T18:39:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81234#p81234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Сдвигание курсора мыши вниз с задержкой при зажатии ЛКМ]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=81212#p81212" />
			<content type="html"><![CDATA[<p>Нужен скрипт что бы при зажатии ЛКМ мыш вниз сдвигалась и была задержка при выстреле 50мс , таким образом нужно сделать так что бы&nbsp; когда я зажимал в игре ЛКМ я стрелял с оружия очередями с задержкой 50мс и курсор мыши плавно опускался вниз и балансировалась&nbsp; отдача таким образом прицел будет стоять на месте , изначально говорю для игры Apb , спасибо за помощь .</p>]]></content>
			<author>
				<name><![CDATA[densexp]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=31884</uri>
			</author>
			<updated>2014-03-25T20:26:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=81212#p81212</id>
		</entry>
</feed>
