<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Серый форум &mdash; AHK:ImageSearch или как найти картинку в активном окне.]]></title>
		<link>http://forum.script-coding.com/viewtopic.php?id=16666</link>
		<atom:link href="http://forum.script-coding.com/extern.php?action=feed&amp;tid=16666&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «AHK:ImageSearch или как найти картинку в активном окне.».]]></description>
		<lastBuildDate>Mon, 18 Oct 2021 08:59:25 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[AHK:ImageSearch или как найти картинку в активном окне.]]></title>
			<link>http://forum.script-coding.com/viewtopic.php?pid=150111#p150111</link>
			<description><![CDATA[<p>Здравствуйте есть код AHK испытываю такую проблему что бот не находит картинку вот сам код.</p><div class="codebox"><pre><code>CoordMode, Pixel , Relative
Process, Priority,, H
SetDefaultMouseSpeed, 0
SetMouseDelay, -1
Gui +hwndhGui2 -Caption +ToolWindow +AlwaysOnTop
Gui, Add, Button, x12 y9 w100 h30 gDoor , Дверь/Багажник
Gui, Add, Button, x12 y89 w100 h30 gReload , Перезагрузка
Gui, Add, Button, x12 y49 w100 h30 gTrans , Трансопдер
Gui, Color, C1C1C1
return
F3::
ExitApp
F10::
l := 0
if i := !i
Gui Show, % &quot;x&quot; A_ScreenWidth - 200 &quot; y&quot; A_ScreenHeight - 200 &quot; h&quot; 125 &quot; hide&quot;
DllCall(&quot;AnimateWindow&quot;, Ptr, hGui2, UInt, 400, UInt, 0x40000|(i ? 1 : 0x10002))
return
Door:
Gui, Color, 17A33C
Loop{
    if (l = 1)
    {
        PixelSearch, brokex1, brokey1, 950, 505, 955, 510, 0xFFFFFF , 30, Fast
        if (brokex1 &lt; 0)
        {
            PixelSearch, greenx1, greeny1, 950, 505, 955, 510, 0x17A33C , 130, Fast
            if (greenx1 &gt; 0)
            {
                Reload
            }
            else
            {
            Send {Esc}
            Send {Esc}
                sleep 200
                Reload
            }
        }
        brokex1 = 0
    }
    ImageSearch, xp, yp, 893, 478, 1019, 597, *155 point.png
    if( xp &gt; 0 )
    {
        l := 1
        MouseMove, xp+20, yp+20
        Loop{
            
			
            if (brokex1 &lt; 0)
            {
                PixelSearch, greenx1, greeny1, 950, 505, 955, 510, 0x17A33C , 130, Fast
                if (greenx1 &gt; 0)
                {
                    Reload
                }
                else
                {
                Send {Esc}
                Send {Esc}
                    sleep 200
                    Reload
                }
            }
            brokex1 = 0
            PixelSearch, ringx1, ringy1, xp+7, yp+7, xp+13, yp+13, 




			, 170, Fast
            if( ringx1 &gt; 0 )
            {
            Send {Click}
                SoundPlay, %A_WinDir%\Media\Speech On.wav
                Goto, Door
            }
        }
    }
}
return
Reload:
Reload
return
Trans:
Gui, Color, 17A33C
sleep 300
Loop
{
    PixelSearch, ptx, pty, 844, 412, 1076, 414, 0x6877FB , 68, Fast
    if( ptx &gt; 0 )
    {
    Send {Enter}
        sleep 500
    }
}
return</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (paradais26041985)]]></author>
			<pubDate>Mon, 18 Oct 2021 08:59:25 +0000</pubDate>
			<guid>http://forum.script-coding.com/viewtopic.php?pid=150111#p150111</guid>
		</item>
	</channel>
</rss>
