<?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=11457&amp;type=atom" />
	<updated>2016-04-05T09:11:01Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=11457</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102297#p102297" />
			<content type="html"><![CDATA[<p>Картинку уменьшил для поиска, радиус поиска тоже уменьшил. А как сам поиск&nbsp; еще можно оптимизировать?<br />Очень нужна подсказка, помощь. Я лучше понимаю на примере.</p>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-04-05T09:11:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102297#p102297</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102278#p102278" />
			<content type="html"><![CDATA[<p>Так кто-нибудь подскажет, есть ли способ еще оптимизировать скрипт,чтобы быстрей работал?</p>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-04-04T17:11:02Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102278#p102278</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102254#p102254" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Вроде быстрей стал работать скрипт. Но есть ли возможность еще лучше оптимизировать его? Так как немного все равно подтормаживает.</p><div class="codebox"><pre><code>#if (pict(x, y) or pict1(x, y))
Numpad1::
ControlClick, x485 y303, A
return

Numpad2::
ControlClick, x578 y298, A
return

Numpad3::
ControlClick, x684 y295, A
return

Numpad4::
ControlClick, x485 y388, A
return

Numpad5::
ControlClick, x577 y388, A
return

Numpad6::
ControlClick, x679 y385, A
return

Numpad7::
ControlClick, x485 y488, A
return

Numpad8::
ControlClick, x579 y486, A
return

Numpad9::
ControlClick, x681 y489, A
return

NumpadEnter::
ControlClick, x820 y608, A
ControlClick, x818 y631, A
ControlClick, x818 y653, A

return

Numpad0::
ControlClick, x820 y711, A
ControlClick, x823 y531, A
return

#if 
return

pict(ByRef x, ByRef y)
{ 
    ImageSearch, x, y, 0, 0, 700, 200, F:\Script\1234.PNG     
    return !ErrorLevel
}
pict1(ByRef x, ByRef y)
{ 
    ImageSearch, x, y, 0, 0, 700, 200, F:\Script\12345.PNG     
    return !ErrorLevel
}


</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-04-04T09:59:38Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102254#p102254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102183#p102183" />
			<content type="html"><![CDATA[<p>Изменить координаты, где может появиться картинка относительно активного окна.<br />Сейчас поиск ведется по всему экрану.<br />ImageSearch, x, y, <strong>0, 0, A_ScreenWidth, A_ScreenHeight</strong>, F:\Script\knopka.jpg</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-04-01T06:51:32Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102183#p102183</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102182#p102182" />
			<content type="html"><![CDATA[<p>SetBatchLines убрал, картинку уменьшила до минимального размера.А как можно уменьшить радиус поиска? <br />И как еще тогда можно оптимизировать поиск?</p>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-04-01T06:18:28Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102182#p102182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102180#p102180" />
			<content type="html"><![CDATA[<p>Можно попробовать SetBatchLines -1 убрать.<br />Потом стоит оптимизировать поиск.<br />Уменьшить размер картинки для поиска.<br />Уменьшить радиус поиска.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-03-31T19:54:42Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102180#p102180</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102179#p102179" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />В общем скрипт заработал, именно так как нужно. Только теперь тормозить все начало, может такое, что он так грузит систему? Так как другие скрипты не грузили, открывал намного больше окон даже, все шустро. А с этим приходиться половину закрывать,чтобы не тормозил</p>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-03-31T19:09:55Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102179#p102179</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102170#p102170" />
			<content type="html"><![CDATA[<p>Почитайте справку.</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-03-31T12:11:34Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102170#p102170</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102168#p102168" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />А если теперь сообщение выдает 0 ?</p>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-03-31T11:43:01Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102168#p102168</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102167#p102167" />
			<content type="html"><![CDATA[<p>F:\Script\knopka.jpg - значит такого файла не существует/</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-03-31T07:28:57Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102167#p102167</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102166#p102166" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Выдает 2, но путь указал вроде как в примерах.<br />Как тогда нужно правильно указать?</p>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-03-31T07:21:36Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102166#p102166</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102165#p102165" />
			<content type="html"><![CDATA[<p>Если выдаст 2, то неправильный путь к файлу, если 1, то картинка не находится.<br /></p><div class="codebox"><pre><code>SetBatchLines -1

#if pict(x, y)
F2:: msgbox картинка нашлась
return
#if 

pict(ByRef x, ByRef y)
{ 
    ImageSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, F:\Script\knopka.jpg
    msgbox % errorlevel
    return !ErrorLevel
}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-03-31T07:06:52Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102165#p102165</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102164#p102164" />
			<content type="html"><![CDATA[<p><strong>Malcev</strong><br />Да я не знаю, работает он или нет вообще. Ничего не происходит. При нажатии F2 никакого сообщения не появляется</p>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-03-31T04:02:17Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102164#p102164</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102162#p102162" />
			<content type="html"><![CDATA[<p>А что не работает?</p>]]></content>
			<author>
				<name><![CDATA[Malcev]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=26930</uri>
			</author>
			<updated>2016-03-30T21:07:09Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102162#p102162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: Активация скрипта по условию]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=102157#p102157" />
			<content type="html"><![CDATA[<p>Так что-то скажет, так надо сделать?<br />Вообще помочь мне может кто-то?</p>]]></content>
			<author>
				<name><![CDATA[Artist]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=33784</uri>
			</author>
			<updated>2016-03-30T17:23:50Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=102157#p102157</id>
		</entry>
</feed>
