<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: ImageSearch с параметром *TransN]]></title>
	<link rel="self" href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16523&amp;type=atom" />
	<updated>2021-08-09T10:07:20Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.script-coding.com/viewtopic.php?id=16523</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149203#p149203" />
			<content type="html"><![CDATA[<p>Нашел решение. Не должно быть полупрозрачных пикселей, в этом помог paint.net, фотошоп как-то криво справлялся с этой задачей. прозрачный цвет в параметре *TransN следует обозначать как *Trans0x00000000. Вопрос закрыт, благодарю.</p>]]></content>
			<author>
				<name><![CDATA[yura170100]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41910</uri>
			</author>
			<updated>2021-08-09T10:07:20Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149203#p149203</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149189#p149189" />
			<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>2021-08-06T17:51:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149189#p149189</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149187#p149187" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Пробовал нечто подобное, через найденную на просторах интернета функцию FindText. Но он почему-то не очень видит эти стрелочки.</p>]]></content>
			<author>
				<name><![CDATA[yura170100]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41910</uri>
			</author>
			<updated>2021-08-06T17:46:03Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149187#p149187</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149182#p149182" />
			<content type="html"><![CDATA[<p>Есть, но простых нет. Можно сделать скриншот, программно перевести его в ЧБ, поднять порог, и получить контрастное чёрно-белое изображение в памяти, и осуществлять поиск уже в нём. Можно воспользоваться dll OpenCV, но на AHK готовый код будет проблематично найти.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-08-06T17:26:48Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149182#p149182</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149178#p149178" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Может есть какой-то другой путь что бы это реализовать? Никак в голову не приходит. Пытался через найденную в интернете функцию FindText, но безрезультатно.</p>]]></content>
			<author>
				<name><![CDATA[yura170100]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41910</uri>
			</author>
			<updated>2021-08-06T16:19:40Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149178#p149178</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149175#p149175" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Это черный цвет, но в HEX. <br />Это параметр, который может принимать любое значение, то есть, в данном случае, динамический фон, если не ошибаюсь.</p>]]></content>
			<author>
				<name><![CDATA[yura170100]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41910</uri>
			</author>
			<updated>2021-08-06T15:24:05Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149175#p149175</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149174#p149174" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>yura170100 пишет:</cite><blockquote><p>Пробовал подставлять 0x000000</p></blockquote></div><p>А чем это от Black отличается?<br />Я не уверен, что этот параметр вообще здесь играет роль. Я так понял из описания, что он применяется, когда в картинке, по которой мы ищем, есть прозрачные области, в вашем случае в картинке, которая в файле up.png. Именно в самой картинке, а не на экране.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-08-06T15:14:37Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149174#p149174</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149173#p149173" />
			<content type="html"><![CDATA[<p>Пробовал подставлять 0x000000. Так же подставлял параметр *50. Все равно не находит</p>]]></content>
			<author>
				<name><![CDATA[yura170100]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41910</uri>
			</author>
			<updated>2021-08-06T14:47:46Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149173#p149173</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149172#p149172" />
			<content type="html"><![CDATA[<p>По синтаксису всё правильно, может вместо Black надо что-то более подходящее.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-08-06T14:43:08Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149172#p149172</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149170#p149170" />
			<content type="html"><![CDATA[<p><strong>teadrinker</strong><br />Поднимал этот параметр до 50, результата нет. Проблема именно в параметре *TransN.</p>]]></content>
			<author>
				<name><![CDATA[yura170100]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41910</uri>
			</author>
			<updated>2021-08-06T14:38:47Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149170#p149170</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149169#p149169" />
			<content type="html"><![CDATA[<p>По теме, есть ещё один параметр <strong>*n</strong>, можете попробовать использовать его.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-08-06T14:35:50Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149169#p149169</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149168#p149168" />
			<content type="html"><![CDATA[<p><strong>yura170100</strong>, для игр у нас есть соответствующая ветка, переношу.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2021-08-06T14:30:28Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149168#p149168</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: ImageSearch с параметром *TransN]]></title>
			<link rel="alternate" href="http://forum.script-coding.com/viewtopic.php?pid=149166#p149166" />
			<content type="html"><![CDATA[<p>На экране вспывает мини-игра. Скрипт должен находить стрелки или же буквы, которые им соответствуют. Проблема в том, что под стрелками и буквами всегда находится динамический фон. С данной проблемой должен справиться параметр *TransN, но он не срабатывает.<br />Код:<br /></p><div class="codebox"><pre><code>CoordMode, Pixel, Screen
!2::
 imgFound := false
 while(imgFound = false)
 {
  imageSearch, x, y , 0, 0, 1920,1080, *TransBlack up.png
  if(x &lt;&gt; &quot;&quot;)
  {
   MouseMove, %x%, %y%
   imgFound := true
  }
Else
{
Msgbox, Неудачно
Exit
}
}
return</code></pre></div><p>Прилагаю картинки, с которыми необходимо провести манипуляции:</p><p><a href="http:////imgur.com/a/S8vg2KL/">Imgur</a></p>]]></content>
			<author>
				<name><![CDATA[yura170100]]></name>
				<uri>http://forum.script-coding.com/profile.php?id=41910</uri>
			</author>
			<updated>2021-08-06T14:13:52Z</updated>
			<id>http://forum.script-coding.com/viewtopic.php?pid=149166#p149166</id>
		</entry>
</feed>
