在隐藏/最小化的窗口上自动获取GetPixelColor [英] Autoit GetPixelColor on a hidden/minimized window

查看:206
本文介绍了在隐藏/最小化的窗口上自动获取GetPixelColor的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(我看不到任何地方都说不能向机器人寻求帮助,我真的希望我不会违反任何规则,因为我真的只是想为一个很棒的第一个项目工作提供帮助)
我正在寻找第二天,离我最近的是
捕获最小化的窗口:孩子的把戏 ^本文

它可以满足我的所有需求(捕获一个隐藏的窗口,看起来它可以在捕获的图片中搜索颜色)
http://img12.imageshack.us/img12/6663/pokemonbt.jpg [ ^ ]

这是我尝试使用PixelGetColor的地方(迷你窗口实际上不在窗口中,我也试图使其与窗口(VisualBoyAdvance)相对应,这样我就可以在任何地方使用VisualBoyAdvance窗口了,将执行PixelGetColor,但idk怎么做到这一点,大声笑)

请帮助我,我在编码方面非常菜鸟,起初只是为了弄乱并热爱它的每一秒钟而已,但是受我所了解和理解的限制.示例和说明也有很大帮助

(I don''t see anywhere that says you can''t ask for help for bots, I really hope I''m not violating any rules because I really just want help for working on a cool first project)
I''m on the second day of searching for this, closest I got was
Capturing Minimized Window: A Kid’s Trick^This article

It does everything I need (Capturing a hidden window, looks like it can search for a color in the captured picture)
http://img12.imageshack.us/img12/6663/pokemonbt.jpg[^]

This is where I''m trying to use the PixelGetColor (Mini window isn''t actually in the window, I''m also trying to make it respective to the window(VisualBoyAdvance) so I can have the VisualBoyAdvance window anywhere and it will do the PixelGetColor but idk how to do that either lol)

Please help me, I''m very noob in coding and originally started this just to mess around and am loving every second of it but so limited by what I know and understand lol. Examples and explanations would help a lot too

$start = PixelGetColor(650,230) ;Checking to see if it's the start screen
		 If $start = 0x400000 Then
			ToolTip("Resets:" & $n & " Press Start Screen",0,0)
			Send("{x}")
			Sleep(750)

$profile = PixelGetColor(400,500) ;Checking to see if it's the Profile select screen
		 If $profile = 0x505890 Then
			ToolTip("Resets:" & $n & " Select Profile Screen",0,0)
			Send("{x}")
			Sleep(100)

$shiny = PixelGetColor(200,240) ;Regular charmander color
$female = PixelGetColor(330, 130) ;Female color
		 If $shiny <> 0xD84848 Then ;Shiny Charmander
			ToolTip("Resets:" & $n & " Shiny Charmander Found, checking sex",0,0)
			   If $female = 0xF8B870 Then	;Gender Color

推荐答案

start = PixelGetColor( 650 230 );检查是否看到如果' 进入开始屏幕 如果
start = PixelGetColor(650,230) ;Checking to see if it's the start screen If


开始= 0x400000然后 ToolTip("Resets:"&
start = 0x400000 Then ToolTip("Resets:" &


n&"Press Start Screen",0,0) 发送("{x}") 睡眠(750)
n & " Press Start Screen",0,0) Send("{x}") Sleep(750)


这篇关于在隐藏/最小化的窗口上自动获取GetPixelColor的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆