<?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=12148&amp;type=atom" />
	<updated>2016-11-14T00:02:24Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=12148</id>
		<entry>
			<title type="html"><![CDATA[Re: Блокировка мышки в одной точке]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109122#p109122" />
			<content type="html"><![CDATA[<p><strong>serzh82saratov</strong><br />Работает на рабочем столе, но не работает в игре. Не подскажете в чем может быть причина?</p>]]></content>
			<author>
				<name><![CDATA[serekevi]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34306</uri>
			</author>
			<updated>2016-11-14T00:02:24Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109122#p109122</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Блокировка мышки в одной точке]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109121#p109121" />
			<content type="html"><![CDATA[<p>Как то так наверное.<br /></p><div class="codebox"><pre><code>
Sensitivity:=10
TriggerDelay:=0
TriggerHoldTime:=420
RGBset:=1
;color split
SplitRGBColor(RGBColor, ByRef Red, ByRef Green, ByRef Blue)
{
    Red := RGBColor &gt;&gt; 16 &amp; 0xFF
    Green := RGBColor &gt;&gt; 8 &amp; 0xFF
    Blue := RGBColor &amp; 0xFF
}
 
SplitBGRColor(BGRColor, ByRef Red, ByRef Green, ByRef Blue)
{
    Red := BGRColor &amp; 0xFF
    Green := BGRColor &gt;&gt; 8 &amp; 0xFF
    Blue := BGRColor &gt;&gt; 16 &amp; 0xFF
}
 
;Menu loop
loop
{
	GetKeyState, state, Home
	if state = D
	{
		trigger:=true
	}
	 
	;Beta trigger
	if !GetKeyState(&quot;RButton&quot;) &amp;&amp; trigger==true
	{
		BlockInput, MouseMoveOff
		sleep 50
		MouseGetPos, oneX, oneY
		PixelGetColor, colorone, oneX+RGBset, oneY+RGBset
		SplitRGBColor(colorone, oneRed, oneGreen, oneBlue)
	}
	 
	if GetKeyState(&quot;RButton&quot;) &amp;&amp; trigger==true
	{
		BlockInput, MouseMove 
		sleep 1
		MouseGetPos, twoX, twoY
		PixelGetColor, colortwo, twoX+RGBset, twoY+RGBset
		SplitRGBColor(colortwo, twoRed, twoGreen, twoBlue)
		 
		if (((oneRed-sensitivity)&lt;=twoRed) &amp;&amp; ((oneRed+sensitivity)&lt;=twoRed)) or (((oneRed-sensitivity)&gt;=twoRed) &amp;&amp; ((oneRed+sensitivity)&gt;=twoRed)) or (((oneGreen-sensitivity)&lt;=twoGreen) &amp;&amp; ((oneGreen+sensitivity)&lt;=twoGreen)) or (((oneGreen-sensitivity)&gt;=twoGreen) &amp;&amp; ((oneGreen+sensitivity)&gt;=twoGreen)) or (((oneBlue-sensitivity)&lt;=twoBlue) &amp;&amp; ((oneBlue+sensitivity)&lt;=twoBlue)) or (((oneBlue-sensitivity)&gt;=twoBlue) &amp;&amp; ((oneBlue+sensitivity)&gt;=twoBlue))
		{
			sleep TriggerDelay
			DllCall(&quot;mouse_event&quot;, uint, 2, int, 0, int, 0, uint, 0, int, 0)
			sleep TriggerHoldTime
			DllCall(&quot;mouse_event&quot;, uint, 4, int, 0, int, 0, uint, 0, int, 0)
		}
	}
}
</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-11-13T22:50:13Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109121#p109121</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Блокировка мышки в одной точке]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109120#p109120" />
			<content type="html"><![CDATA[<p>Я не особо разбираюсь в скриптах. Не могли бы вы мне помочь вставить ваш код в мой скрипт?<strong>serzh82saratov</strong></p>]]></content>
			<author>
				<name><![CDATA[serekevi]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34306</uri>
			</author>
			<updated>2016-11-13T20:34:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109120#p109120</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Блокировка мышки в одной точке]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109119#p109119" />
			<content type="html"><![CDATA[<p>Используйте при зажатии:<br /></p><div class="codebox"><pre><code>BlockInput, MouseMove </code></pre></div><p>при отпускании:<br /></p><div class="codebox"><pre><code>BlockInput, MouseMoveOff</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serzh82saratov]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=27879</uri>
			</author>
			<updated>2016-11-13T20:23:21Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109119#p109119</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Блокировка мышки в одной точке]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=109118#p109118" />
			<content type="html"><![CDATA[<p>Здравствуйте. Есть скрипт и необходимо его немного доработать. Расскажу что делает скрипт: При зажатии определенной кнопки(в данном случае ПКМ) скрипт считывает пиксели в центре экрана и запоминает цвета этих пикселей, если цвета меняются, то происходит нажатие ЛКМ. Тобишь это обыкновенный триггербот. Что я хочу: Чтоб при нажатии ПКМ я не мог шевелить мышкой пока зажата ПКМ и происходили действия описанные выше.<br />Если кто-то в этом разбирается прошу помощи. Заранее благодарен.<br /></p><div class="codebox"><pre><code>Sensitivity:=10
TriggerDelay:=0
TriggerHoldTime:=420
RGBset:=1
;color split
SplitRGBColor(RGBColor, ByRef Red, ByRef Green, ByRef Blue)
{
    Red := RGBColor &gt;&gt; 16 &amp; 0xFF
    Green := RGBColor &gt;&gt; 8 &amp; 0xFF
    Blue := RGBColor &amp; 0xFF
}
 
SplitBGRColor(BGRColor, ByRef Red, ByRef Green, ByRef Blue)
{
    Red := BGRColor &amp; 0xFF
    Green := BGRColor &gt;&gt; 8 &amp; 0xFF
    Blue := BGRColor &gt;&gt; 16 &amp; 0xFF
}
 
;Menu loop
loop
{
GetKeyState, state, Home
if state = D
{
trigger:=true
}
 
;Beta trigger
if !GetKeyState(&quot;RButton&quot;) &amp;&amp; trigger==true
{
sleep 50
MouseGetPos, oneX, oneY
PixelGetColor, colorone, oneX+RGBset, oneY+RGBset
SplitRGBColor(colorone, oneRed, oneGreen, oneBlue)
}
 
if GetKeyState(&quot;RButton&quot;) &amp;&amp; trigger==true
{
sleep 1
MouseGetPos, twoX, twoY
PixelGetColor, colortwo, twoX+RGBset, twoY+RGBset
SplitRGBColor(colortwo, twoRed, twoGreen, twoBlue)
 
if (((oneRed-sensitivity)&lt;=twoRed) &amp;&amp; ((oneRed+sensitivity)&lt;=twoRed)) or (((oneRed-sensitivity)&gt;=twoRed) &amp;&amp; ((oneRed+sensitivity)&gt;=twoRed)) or (((oneGreen-sensitivity)&lt;=twoGreen) &amp;&amp; ((oneGreen+sensitivity)&lt;=twoGreen)) or (((oneGreen-sensitivity)&gt;=twoGreen) &amp;&amp; ((oneGreen+sensitivity)&gt;=twoGreen)) or (((oneBlue-sensitivity)&lt;=twoBlue) &amp;&amp; ((oneBlue+sensitivity)&lt;=twoBlue)) or (((oneBlue-sensitivity)&gt;=twoBlue) &amp;&amp; ((oneBlue+sensitivity)&gt;=twoBlue))
{
sleep TriggerDelay
DllCall(&quot;mouse_event&quot;, uint, 2, int, 0, int, 0, uint, 0, int, 0)
sleep TriggerHoldTime
DllCall(&quot;mouse_event&quot;, uint, 4, int, 0, int, 0, uint, 0, int, 0)
}
}
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[serekevi]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=34306</uri>
			</author>
			<updated>2016-11-13T20:04:18Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=109118#p109118</id>
		</entry>
</feed>
