Get Pixel color fastest way?

前端 未结 2 757
离开以前
离开以前 2020-12-08 06:14

I\'m trying to make an auto-cliker for an windows app. It works well, but it\'s incredibly slow! I\'m currently using the method \"getPixel\" which reloads an array everytim

2条回答
  •  粉色の甜心
    2020-12-08 06:20

    The simple answer is that if this is the method you insist on using then there isn't much to optimize. As others have pointed out in comments, you should probably use a different method for locating the area to click. Have a look at using FindWindow, for example.

    If you don't want to change your method, then at least sleep your thread for a bit after each complete screen scan.

提交回复
热议问题