Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 5 Jahren, 2 Monaten
Letzter Beitrag:
vor 5 Jahren, 2 Monaten
Beteiligte Autoren:
DarrenF, RichardRose, GuenterP, Al

[WD17] Is it possible to capture a non-WD window with WD17?

Startbeitrag von DarrenF am 21.03.2013 19:20

Hi guys,

Well... I think the subject live says it all really?


Try it. Owner drawn controls it might struggle with, but if its std window controls I dont see any reason why not.

von RichardRose - am 21.03.2013 21:51
Maybe the subject didn't say it all...

I'm asking can and how it would be done for windows outside of a WD app?

von DarrenF - am 22.03.2013 08:31
Hello Darren

It sounds like you are trying to emulate the functions of the SnagIt software from Techsmith.
The dCopyBlt() function exists to copy the current Windev app screen, and I am sure there is an example that uses it, so maybe you could investigate it to see if it will capture the screen area occupied by a non Windev app. Perhaps with the Windev app running as a service called with a hotkey.


von Al - am 22.03.2013 09:27
It will almost certainly being using a combination of FindWindowEx http://msdn.microsoft.com/en-gb/library/windows/desktop/ms633500%28v=vs.85%29.aspx and SendMessage http://msdn.microsoft.com/en-gb/library/windows/desktop/ms644950%28v=vs.85%29.aspx becuase thats how I enumerate controls in a windows from other programs.

von RichardRose - am 22.03.2013 09:58
Hi Richard, would you PLEASE register at mysnip in order to prevent your postings from being held back by mysnip forum software? Thank you! Guenter

von GuenterP - am 22.03.2013 10:16
Guenter will do (when I find the link) ;-)

Darren if you want to get under the hood and see for yourself which API's are being called, download the API monitor from http://www.rohitab.com/ you can see what api's different programs call including the values being passed in parameters so you can see how things work ie what order the API's get called in etc. Its very illuminating for spotting problems. ;-)

von RichardRose - am 22.03.2013 11:26
Thanks Richard - Looks like a seriously useful bit of s/w [[5]]

von DarrenF - am 22.03.2013 18:44
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.