<?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=17869&amp;type=atom" />
	<updated>2023-07-14T15:30:12Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=17869</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как объединить два скрипта в один?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=158733#p158733" />
			<content type="html"><![CDATA[<p>Этот форум для обучения программированию. Если вас это не интересует, обращайтесь в Коммерческий раздел.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-07-14T15:30:12Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=158733#p158733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как объединить два скрипта в один?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=158731#p158731" />
			<content type="html"><![CDATA[<p>Я без понятия вообще.</p>]]></content>
			<author>
				<name><![CDATA[HaSK]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43250</uri>
			</author>
			<updated>2023-07-14T15:04:26Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=158731#p158731</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Как объединить два скрипта в один?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=158725#p158725" />
			<content type="html"><![CDATA[<p>А как вы пробовали?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2023-07-14T12:54:45Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=158725#p158725</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: Как объединить два скрипта в один?]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=158721#p158721" />
			<content type="html"><![CDATA[<p>У меня есть пиксельный триггербот и есть прицел (точка) на ахк.<br />Вопрос как можно эти два скрипта объединить в один чтобы работало корректно.</p><p>Первый скрипт, пиксельный триггербот: </p><div class="codebox"><pre><code>;Указать цвет срабатывания (Hex, RGB):
Color = 0xA70F0F

;Авто-выстрел при удержании клавиши:
~XButton1::
While GetKeyState(&quot;XButton1&quot;, &quot;P&quot;)
{
 PixelSearch,,, 759, 97, 1113, 979, % Color,, Fast RGB
 If !ErrorLevel
 {
  MouseClick
  ToolTip -Выстрел-,0,0
 }
 Else
  ToolTip, Не найден %Color% цвет,0,0
 Sleep, 500
}
ToolTip
Return</code></pre></div><p>Второй скрипт, прицел (точка): </p><div class="codebox"><pre><code>; прицел
x = 960
y = 540

w = 4
h = 4
Color = 0xFF0000
WS_EX_TRANSPARENT := 0x20
WS_EX_LAYERED := 0x80000
Gui, +AlwaysOnTop -Caption +ToolWindow +LastFound
Gui, Color, % Color
Gui, Show, x%x% y%y% w%w% h%h% NA
WinSet, ExStyle, % &quot;+&quot; WS_EX_LAYERED|WS_EX_TRANSPARENT</code></pre></div>]]></content>
			<author>
				<name><![CDATA[HaSK]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=43250</uri>
			</author>
			<updated>2023-07-14T04:04:23Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=158721#p158721</id>
		</entry>
</feed>
