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
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.