ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 IO.CaptureFromScreen problem

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
PeterPanino Posted - Jun 18 2019 : 10:36:27
ImageEnView1.IO.CaptureFromScreen(iecsSpecifiedWindow, -1, NotepadWindowHandle);


This gives this correct screenshot from Notepad:



HOWEVER, if Notepad is MINIMIZED, then I get this undesired screenshot from Notepad:



Question: is there a way to get the correct screenshot from Notepad EVEN when Notepad is minimized?

Attached the source of the test project:

attach/PeterPanino/2019618103542_TImageEnIOCaptureFromScreen_Test.zip
49.58 KB
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 18 2019 : 16:29:48
Hi

ImageEn cannot capture a minimized window. You might try:

https://stackoverflow.com/questions/27024554/capture-screenshot-from-selected-minimized-window

Or force display using ShowWindow and minimize it again afterward:

https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-showwindow




Nigel
Xequte Software
www.imageen.com