<?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="https://forum.script-coding.com/extern.php?action=feed&amp;tid=18152&amp;type=atom" />
	<updated>2024-04-03T15:06:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=18152</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не получается привязать скрипт к определенному окну.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160745#p160745" />
			<content type="html"><![CDATA[<p>А зачем вообще было отвечать в теме с нарушением оформления?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-04-03T15:06:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160745#p160745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не получается привязать скрипт к определенному окну.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160743#p160743" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong> Исправил.</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-04-03T14:47:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160743#p160743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не получается привязать скрипт к определенному окну.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160732#p160732" />
			<content type="html"><![CDATA[<p><strong>vanchoyz</strong>, добро пожаловать на форум! Ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свои посты. Обратите внимание на оформление <a href="https://forum.script-coding.com/misc.php?action=rules#code-formatting">кода</a> и <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">точки</a> в конце предложений.<br /><strong>inseption86</strong>, ознакомьтесь, пожалуйста, с <a href="https://forum.script-coding.com/misc.php?action=rules">Правилами</a>, отредактируйте свой пост. Обратите внимание на заглавные <a href="https://forum.script-coding.com/misc.php?action=rules#literacy">буквы</a> в начале предложений. Я не совсем понял, вы вроде, здесь не в первый раз?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2024-03-31T16:26:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160732#p160732</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не получается привязать скрипт к определенному окну.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160731#p160731" />
			<content type="html"><![CDATA[<p><strong>inseption86</strong><br />Да только они работают на все кроме ХП и Маны. а это для ХП по цвету пикселя ХП бара</p>]]></content>
			<author>
				<name><![CDATA[vanchoyz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43659</uri>
			</author>
			<updated>2024-03-31T16:04:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160731#p160731</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не получается привязать скрипт к определенному окну.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160730#p160730" />
			<content type="html"><![CDATA[<p>В POE же, вроде бы, добавили автоматические срабатывания фласок на определенные события?</p>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2024-03-31T16:02:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160730#p160730</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Не получается привязать скрипт к определенному окну.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160729#p160729" />
			<content type="html"><![CDATA[<p>Есть похожий который не работает вне игры изменены только координаты и цвет</p><p>CoordMode, Pixel, Client<br />#IfWinActive ahk_class POEWindowClass ahk_exe PathOfExile.exe<br />~LButton::<br />Loop<br />{<br />&nbsp; &nbsp; PixelGetColor, color, 39, 840</p><p>&nbsp; &nbsp; if (color = 0x969696)<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; Send, T<br />&nbsp; &nbsp; &nbsp; &nbsp; Sleep, 15700<br />&nbsp; &nbsp; }<br />&nbsp; &nbsp; else<br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; if (color != 0x969696)<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; &nbsp; &nbsp; else<br />&nbsp; &nbsp; &nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break<br />&nbsp; &nbsp; &nbsp; &nbsp; }<br />&nbsp; &nbsp; }<br />}<br />#IfWinActive</p>]]></content>
			<author>
				<name><![CDATA[vanchoyz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43659</uri>
			</author>
			<updated>2024-03-31T15:53:10Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160729#p160729</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Не получается привязать скрипт к определенному окну.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=160728#p160728" />
			<content type="html"><![CDATA[<p>Добрый день, заранее спасибо.</p><p>Есть скрип для игры Path of Exile не могу сделать так что бы скрипт работал только в окне игры.<br />До начала работы скрипта он не начинает функционировать даже при том что цвет пикселя не правильного цвета но как только начинает работать не прекращает и нажимает 1 везде до отключения скрипта.</p><p>Суть скрипта если в пикселе меняется цвет то он нажимает 1 до тех пор пока цвет не будет прежним как станет прежним должен перестать нажимать и ждать следующего события.<br />Ну и естественно работать только в окне игры.</p><p>Spy:<br />Path of Exile<br />ahk_class POEWindowClass<br />ahk_exe PathOfExile.exe<br />ahk_pid 104</p><p>CoordMode, Pixel, Client<br />#IfWinActive ahk_class POEWindowClass ahk_exe PathOfExile.exe<br />~LButton::<br />Loop<br />{<br />PixelGetColor, color, 201, 1011</p><p>if (color != 0x141B3C)<br />{<br />		Send, 1<br />		Sleep, 200<br />}<br />else<br />	{<br />		if (color = 0x141B3C)<br />		{<br />			continue<br />		}<br />		else<br />		{<br />			break<br />		}<br />	}<br />}<br />#IfWinActive</p>]]></content>
			<author>
				<name><![CDATA[vanchoyz]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=43659</uri>
			</author>
			<updated>2024-03-31T15:32:13Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=160728#p160728</id>
		</entry>
</feed>
