LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How Print Screen pragmatically?

Hi

 

I just want to know how to capture a portion of monitor screen pragmatically without pressing the printscreen button.  Is there any way to capture the screen without simulating the keyboard keys. Is possible can you tell me which dll does this in windows. 

 

Thanks & Regards

Smiley HappySamuel J

0 Kudos
Message 1 of 25
(3,001 Views)
Probably User32.dll
- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 2 of 25
(2,998 Views)

Which function in user32.dll?

If possible please tell me the parameters and arguments of that function..

 

Regards

Sam

0 Kudos
Message 3 of 25
(2,994 Views)
See this. I m not quite sure...
- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 4 of 25
(2,990 Views)
Also, see here & here.
- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 5 of 25
(2,983 Views)

I'm having keyboard event simulating vi which does that. Is  there any other way to capture directly....

0 Kudos
Message 6 of 25
(2,980 Views)

samuel James wrote:

 

Is  there any other way to capture directly....


What do you mean by this? Now, it is starting to confuse a bit...

- Partha ( CLD until Oct 2024 🙂 )
0 Kudos
Message 7 of 25
(2,976 Views)
Without simulating the keyboard keys some dll will capture the screen and gives the data directly. I want it like that.
0 Kudos
Message 8 of 25
(2,969 Views)

Hi samuel Ja...,

yes it's possible with some GDI functions.

- createcompatibleBitmap

- createCompatibleDC

- selectObject

- BitBlt

- GetDiBits

- GetBitmapBits

- DeleteDC

- DeleteObject

 

and min two functions from user32.dll

- GetDC and

- ReleaseDC

 

Mike

0 Kudos
Message 9 of 25
(2,961 Views)

If possible could you please send me an example if you have...

 

Regards

Samuel James

0 Kudos
Message 10 of 25
(2,938 Views)