Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Copying Graphics to the Clipboard

jmloriot
Beginner
1,243 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
Honored Contributor III
1,243 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

0 Kudos
jimdempseyatthecove
Honored Contributor III
1,243 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

0 Kudos
Paul_Curtis
Valued Contributor I
1,243 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.

0 Kudos
jmloriot
Beginner
1,244 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

 

0 Kudos
Paul_Curtis
Valued Contributor I
1,244 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).

0 Kudos
jmloriot
Beginner
1,244 Views

Got it ! I will do my job.

Same for E_mail and mapi

Thanks a lot

0 Kudos
Neels
New Contributor II
1,244 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

0 Kudos
gib
New Contributor II
1,244 Views

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

0 Kudos
jmloriot
Beginner
1,244 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 

0 Kudos
Paul_Curtis
Valued Contributor I
1,244 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."

0 Kudos
Reply