iseahound / ImagePut

A core library for images in AutoHotkey. Supports AutoHotkey v1 and v2.
https://www.autohotkey.com/boards/viewtopic.php?f=83&t=76633
MIT License
116 stars 24 forks source link

screen flicker/flash when taking bitmap #27

Closed jpuerj closed 10 months ago

jpuerj commented 10 months ago

Hi! I've seen this problem in the classic gdip library where the window flicker/blink/flash when taking the bitmap of the active window. This is happening for a specific program in my case. Is there a way to solve this? Thanks.

iseahound commented 10 months ago

Why not just use ImagePutFile({screenshot: "A"}) to take a screenshot instead of using the PrintWindow API as with ImagePutFile("A"). If it flickers its probably some accelerated window such as a game.

jpuerj commented 10 months ago

The problem is that I'm using ImagePutBuffer and then using the buffer to do ImageSearch. Is there a way to put it in a variable without passing it to a file?

iseahound commented 10 months ago

I've unsubscribed from my own repositories now to avoid receiving future notifications like this. Note that the issues tab is for issues with the code base and is not your personal help button. Please read the documentation. If that isn't possible ask in the autohotkey forum where someone can help with your question.