<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: Бот на рыбалку GTA 5 Rp (Част 2)]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16348&amp;type=atom" />
	<updated>2021-05-13T16:29:10Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16348</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Бот на рыбалку GTA 5 Rp (Част 2)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147840#p147840" />
			<content type="html"><![CDATA[<p>Пример кода:<br /></p><div class="codebox"><pre><code>F2::
Send, {о Down}
Sleep, 100
Send, {о Up}

PixelGetColor, Check, 891, 758, alt
ToolTip, Check=%Check% ,0,0
If (Check = &quot;0x0000C1&quot;)
 Goto, Label2
If (Check = &quot;0xADADAD&quot;)
 Goto, Label3
Return

Label2:
Send {Click 2}
Return

Label3:
Send {Click R}
Return

~Esc::	; Убрать подсказку:
ToolTip
Return</code></pre></div>]]></content>
			<author>
				<name><![CDATA[__Михаил__]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=40928</uri>
			</author>
			<updated>2021-05-13T16:29:10Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147840#p147840</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Бот на рыбалку GTA 5 Rp (Част 2)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147839#p147839" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>OlZhi пишет:</cite><blockquote><p>чтобы мышка реагировала когда нужный цвет</p></blockquote></div><p>Другого способа, кроме как PixelGetColor нет. Нужно убедиться только, что указаны верные координаты, учитывая <a href="https://www.autohotkey.com/docs/commands/CoordMode.htm">CoordMode</a>.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-05-13T14:38:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147839#p147839</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Бот на рыбалку GTA 5 Rp (Част 2)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147838#p147838" />
			<content type="html"><![CDATA[<p><strong>__Михаил__</strong>, извините, я дурачок, который полез не зная ничего, и который просто сделал по тому, что я считал более-менее логичным</p>]]></content>
			<author>
				<name><![CDATA[OlZhi]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41733</uri>
			</author>
			<updated>2021-05-13T14:35:06Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147838#p147838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Бот на рыбалку GTA 5 Rp (Част 2)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147837#p147837" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong>, а как сделать, чтобы мышка реагировала когда нужный цвет?</p>]]></content>
			<author>
				<name><![CDATA[OlZhi]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41733</uri>
			</author>
			<updated>2021-05-13T14:33:25Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147837#p147837</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Бот на рыбалку GTA 5 Rp (Част 2)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147835#p147835" />
			<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-05-13T13:50:01Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147835#p147835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Бот на рыбалку GTA 5 Rp (Част 2)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147833#p147833" />
			<content type="html"><![CDATA[<p><strong>OlZhi</strong>, использование фигурных скобок здесь во всех случаях бессмысленно (кроме как в определении клавиш), они не делают ничего, кроме того, что приводят к появлению ошибки. Просто удалите их.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-05-13T12:31:30Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147833#p147833</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Бот на рыбалку GTA 5 Rp (Част 2)]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=147832#p147832" />
			<content type="html"><![CDATA[<p>Выходит ошибка при запуске<br /></p><div class="quotebox"><blockquote><p>Error: A Goto/Gosub must not jump into a block that doesn&#039;t enclose it.</p></blockquote></div><p>Ошибка происходит в Goto, Label2.</p><p>Моя задумка была такая, что смотрит два цвета, и при появлении одного из них, переходит на действие.</p><div class="codebox"><pre><code>F2::
{	
Send {vk4Asc24 Down}
Send {vk4Asc24 Up}
		{
		PixelGetColor, check, 891, 758, alt
		if(check = 0x0000C1)
		Goto, Label2
		else
		PixelGetColor, check, 891, 758, alt
		if(check = 0xADADAD)
		Goto, Label3
			{
				Label2:
				{
					Send {click}
					Send {click}
				}
				Label3:
				{
					Send {click right}
				}
			}
		}
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[OlZhi]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41733</uri>
			</author>
			<updated>2021-05-13T04:43:07Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=147832#p147832</id>
		</entry>
</feed>
