Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!

Copying Graphics to the Clipboard

jmloriot
Beginner
283 Views

Thanks to Jugoslav it works fine

but it only works in a window, not in full screen

Is it possible to make in work in full screen ?

0 Kudos
10 Replies
jimdempseyatthecove
Black Belt
283 Views

If you are going to start a new thread, referencing an old thread, please include the hyperlink to the old thread. I assume this was what you are referring to.

Full screen capture can (may) be captured by sending Print Screen (VK_SNAPSHOT 0x2C) into the keyboard using the SendInput function.

Jim Dempsey

jimdempseyatthecove
Black Belt
283 Views

Also, there is a Windows Screen Capture Utility called SnagIt from www.techsmith.com. I've used this for about 15 years and found it quite handy. You may be able to use it alone, or together with the  SendInput function to get the functionality you desire.

Jim Dempsey

Paul_Curtis
Valued Contributor I
283 Views

I did not see whatever posts preceded this one, but the (att.) module provides a means of saving the entire screen to a .bmp file, from within a Fortran program.  This module is extracted from a much larger program, but clearly shows the essentials of the procedure.

jmloriot
Beginner
283 Views

Thank you Paul Curtis 

but I cannot compile because I am missing these file 

	USE globals
    !USE i f w i n
    USE ContWrap
    USE ResWrap
    USE CmnDlgs
    USE Printfunc

 

Paul_Curtis
Valued Contributor I
283 Views

Yes; not to put too fine a point on it, this forum is intended for programmers.  As explained, the SaveScreen module is extracted from a very large program with a huge amount of "context"; the missing items you cite are not relevent to the essentials of how to harness WinAPI functions to capture the entire screen in a DC.  You can easily extract the "good stuff" and embed it into your own code (and doing so will likely improve your understanding of how it works).

jmloriot
Beginner
283 Views

Got it ! I will do my job.

Same for E_mail and mapi

Thanks a lot

Neels
New Contributor I
283 Views

Paul,

I disagree with your statement, this forum is where Fortran users get help in using Fortran, a large number of users are non-programmers but mathematicians, engineers, scientists etc. This is of course my opinion and might be wrong, because I am an engineer.

Seems to me "Programmers" use other languages nowadays.

Neels

gib
New Contributor II
283 Views

It is for Fortran programmers, some of whom are beginners.

jmloriot
Beginner
283 Views

Paul's comment was for me and I agree with him.

My question was about a function that is not for beginners, to make it work I will have to understand how it works, and that is the good way to do it.

I was just not looking in the right direction, and he showed it to me. Thank you Paul 

Paul_Curtis
Valued Contributor I
283 Views

Hey folks, it's "tough love" on this forum.  IMHO, programmers use Fortran to explore and solve real-world problems, and hence would definitely include scientists and engineers (and might even exclude computer specialists who only help machines turn electricity into heat).  I try to respond to how-to-do-it questions with actual code, not pontification, but the idea is to engage with the code to explore how it works.  As someone once almost said, "give a man a module and you feed him for a day, but teach him how the code works and you feed him for life."

Reply