<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Помогите с Pixel Get color]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16010&amp;type=atom" />
	<updated>2021-01-23T19:50:40Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16010</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145362#p145362" />
			<content type="html"><![CDATA[<p><strong>vanek1</strong></p><p>Нужно делать обработку, нужное кол-во минус текущее.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-01-23T19:50:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145362#p145362</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145360#p145360" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />уже работает, спасибо!<br />а как сделать что бы он стрелял очередями? допустим с ак или мки</p>]]></content>
			<author>
				<name><![CDATA[vanek1]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41386</uri>
			</author>
			<updated>2021-01-23T19:01:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145360#p145360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145356#p145356" />
			<content type="html"><![CDATA[<p><strong>vanek1</strong></p><p>Тогда зачем менять настройки? Должно всё работать.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-01-23T17:19:14Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145356#p145356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145355#p145355" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />у меня монитор 1920х1080 что бы было больше фпс я разрешение в игре уменшил до 1600х900</p>]]></content>
			<author>
				<name><![CDATA[vanek1]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41386</uri>
			</author>
			<updated>2021-01-23T17:15:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145355#p145355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145353#p145353" />
			<content type="html"><![CDATA[<p><strong>vanek1</strong></p><p>Судя по вашему коду, что приведён вначале, ваш монитор 1600х900. Если нет, то зачем выкладывать фиг пойми какой код, неизвестно откуда спёртый и потом ещё спрашивать&nbsp; &quot;Почему не работает?&quot;.</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-01-23T16:31:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145353#p145353</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145349#p145349" />
			<content type="html"><![CDATA[<p><strong>vanek1</strong></p><p>То есть не запускается?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-01-23T15:47:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145349#p145349</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145348#p145348" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong><br />так должно быть для 1920х1080?<br />у меня чёт не запускается скрипт <br /></p><div class="codebox"><pre><code>#SingleInstance Force
#NoEnv
SetBatchLines -1
CoordMode, Pixel, Screen

;Координаты пикселя:	(1920х1080)
XPos := 960
YPos := 540
Wait := 100		; Время перед очередной проверки пикселя.
Color = 0xC14F4F	; Цвет на который реагировать.
Return

F2::	; Выключить авто-выстрел.
SetTimer, AutoClick, Off
Return

F3::	; Включить авто-выстрел.
SetTimer, AutoClick, 100 Wait

AutoClick:
PixelGetColor, Col, 960 , 540 , RGB
If (Col = Color)
{
 Click		; Выстрел.
; SetTimer, AutoClick, Off	; Если нужен 1 выстрел - убрать комментарий.
} 
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[vanek1]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41386</uri>
			</author>
			<updated>2021-01-23T15:30:49Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145348#p145348</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145330#p145330" />
			<content type="html"><![CDATA[<p>Вот рабочий вариант с настройками:</p><div class="codebox"><pre><code>#SingleInstance Force
#NoEnv
SetBatchLines -1
CoordMode, Pixel, Screen

;Координаты пикселя:	(1600х900)
XPos := 800
YPos := 450
Wait := 100		; Время перед очередной проверки пикселя.
Color = 0xC14F4F	; Цвет на который реагировать.
Return

F2::	; Выключить авто-выстрел.
SetTimer, AutoClick, Off
Return

F3::	; Включить авто-выстрел.
SetTimer, AutoClick, % Wait

AutoClick:
PixelGetColor, Col, % XPos, % YPos, RGB
If (Col = Color)
{
 Click		; Выстрел.
; SetTimer, AutoClick, Off	; Если нужен 1 выстрел - убрать комментарий.
} 
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-01-23T09:56:27Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145330#p145330</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145328#p145328" />
			<content type="html"><![CDATA[<p>Игра как минимум не должна быть в полноэкранном режиме, надеюсь это условие выполнено?</p>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-01-23T09:20:19Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145328#p145328</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Помогите с Pixel Get color]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=145294#p145294" />
			<content type="html"><![CDATA[<p>В гта5 при прицеливании на человека прицел стает красный вот я хотел написать скрипт когда он стает красный чтобы персонаж стрелял.<br />Но у меня не выходит он не стреляет и не целиться, что делать? Помогите.<br />	</p><div class="codebox"><pre><code>global x := 800
	global y := 450
	global Color_Var := &quot;C14F4F&quot;

	CheckOnMouse:
	if BotStatus = 1
	{
		PixelGetColor, Color_Var, x, y
		if (Color_Var = C14F4F)
		{
		ClickOnMouseCallback()
        	}
	}
	else if BotStatus = 0
	{
	SetTimer, CheckOnMouse, Off
	}
	return
	ClickOnMouseCallback()
	{
    	if StartBot = 1
    	{
        	Loop
        	{
		PixelGetColor, Color_Var, x, y
		if (Color_Var = C14F4F)
		{
		Click
		sleep,TimeBetweenClicks
	}

        }


    }

}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[vanek1]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41386</uri>
			</author>
			<updated>2021-01-22T20:09:31Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=145294#p145294</id>
		</entry>
</feed>
