Skip to content

screen flicker/flash when taking bitmap #29

Answered by iseahound
jpuerj asked this question in Q&A
Discussion options

You must be logged in to vote

The answer is to ask ImagePut to take a screenshot instead.

; Specify the input type as a screenshot to avoid window flicker.
; Replace "A" with the title of your window.
file := ImagePutFile({screenshot: "A"})  ; string to a filepath. 
buf := ImagePutBuffer({screenshot: "A"}) ; buffer object

PixelSearch Example:

xy := buf.pixelsearch(0xFFFFFF)
MsgBox xy[1], xy[2]

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by iseahound
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #27 on September 12, 2023 14:20.