Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1109631
  • 博文数量: 284
  • 博客积分: 8223
  • 博客等级: 中将
  • 技术积分: 3188
  • 用 户 组: 普通用户
  • 注册时间: 2008-12-01 13:26
文章分类

全部博文(284)

文章存档

2012年(18)

2011年(33)

2010年(83)

2009年(147)

2008年(3)

分类: Java

2011-09-05 22:48:51

    I'm trying to finish a program which can do actions on the computer screen as your wish. So the program need to have follow abilities:
    1. Recognize the graphs on the screen. Get the position of special component, such as windows, title bar, menu, button and so on. Especially, the program need to recognize words written in the graphs.
    2. Do actions as you programed, such as open a window, select a menu and so on.

    So, the first step I need to do is to get my program recognizing the windows frame.
    At the begging, I thought the windows frame is surrounded by the black line. So I compare the
Pixels arounding to get a frame by the same colour. But then, I failed, because the windows frame is not surrounded by a black line. So  I get the idea that we can see the windows frame by our eyes is because the color inside the window frame is different from the color outside the window frame. I turn my idea to codes, and I can recognize the window frame then.
阅读(597) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~