Questions tagged [printscreen]

118 questions
3
votes
5 answers

Why does print screen in a Windows Service return a black image?

protected override void OnStart(string[] args) { base.OnStart(args); CaptureScreen(); } protected override void OnStop() { base.OnStop(); } private void CaptureScreen() { Bitmap printscreen = new…
Rami
  • 31
  • 1
  • 2
3
votes
1 answer

Making a Screenshot in LibGDX by Pressing the Prt Scr Button

By following this solution on Stack Overflow I have come up with the following Java class: public final class Screenshot { private static byte[] pixels; private static Pixmap pixmap; public static void take() { pixels =…
Tim Visser
  • 916
  • 9
  • 28
3
votes
2 answers

How can I print a certain block/part of a web page?

How can I print a certain block/part of a web page? Print option to look like Print Screen functionality.
Ahmed Atia
  • 17,848
  • 25
  • 91
  • 133
3
votes
1 answer

C++ RegisterHotKey without overriding existing functionality

When I register a hot key in C++ (the PrtScn key in this case), I noticed that the original functionality is lost. The key does not capture an image of the screen any more. IS there a way to register the hot key without breaking its existing…
Vikas
  • 626
  • 1
  • 10
  • 22
3
votes
2 answers

print current form using CreateGraphics, but the message box is also printed

I'm printing my actived form (formMain) using CreateGraphics function as code below Printing the Form (Visual C#) Environment: windows 7 professional in classical mode, VisuaStudio 2008 [System.Runtime.InteropServices.DllImport("gdi32.dll")] public…
user1299527
  • 121
  • 1
  • 1
  • 5
3
votes
1 answer

Detect when user takes a screen shot in windows with print screen?

So, I need to, in my application, detect when the user takes a screenshot in Windows by using the print screen keyboard button. I noticed that Picasa does this and notifies the user, this would be very useful in my chat software. It needs to be able…
Brandon
  • 4,486
  • 8
  • 33
  • 39
2
votes
1 answer

Is possible PrintScreen or save in an image some part of the screen?

Is it possible? I need save the sreen and send from iPad to a WebService... Concretly the problem is that i want simulate a sign in the screen and later save this sign in a NSData and send by email. Some idea? thanks for all! Best regards!
Alberto Juarez
  • 444
  • 8
  • 23
2
votes
2 answers

How to export Image of my form c#

I need a solution how could i make a Print Screen of my WinForm on C# and export it as PNG. Bests
Rosmarine Popcorn
  • 10,761
  • 11
  • 59
  • 89
2
votes
1 answer

Howto get a screenshot of Visual Studio 2015 with menu pulled down

I 'd like to screencapture Visual Studio 2015 with some menues pulled down. With all screencapture and bare printscreen tools I get the same: a screenshot, but none of the menu stuff is displayed. Even when menues are displayed, I hit printscreen,…
olippuner
  • 394
  • 4
  • 16
2
votes
1 answer

Can Adobe AIR Desktop application take full screen snapshots (aka Print Screen button)

I would like to know if its possible to get full screen snapshots from an air application. What i am interested in, is functionality similar to PrintScreen button in windows, which takes snapshots of all screens, including third party application…
tzador
  • 2,535
  • 4
  • 31
  • 37
2
votes
2 answers

Form_Keydown event is not working when PrintScreen is pressed

I'm trying to detect the Print Screen key on my form, but keys like Prtsc and SysRq don't fire the KeyDown event.. private void Form1_KeyDown(object sender, KeyEventArgs e) { // Trying to detect if it fires KeyDown, but it doesn't …
Joery
  • 759
  • 4
  • 13
  • 33
2
votes
2 answers

Simulate the print screen key in python

i search lot in Google but i did not got anything . can we simulate the print screen key in python ? if yes then how to simulate the print screen key in python?
user3296898
  • 33
  • 1
  • 4
2
votes
4 answers

Create an image file after pressing PrintScreen

I would like to automatically save an image to file after I click "printscreen" but I don't know what I'm doing wrong. private void Form1_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.PrintScreen) { …
Fanna1119
  • 1,878
  • 4
  • 24
  • 30
2
votes
1 answer

PrintWindow Returns null data, Works in C++

I have successfully gotten PrintWindow to work in C++, but when I try to do it in C#, I get back a bitmap with null data. Using VS 2012 Pro, on .NET 4.0. Here is my code: [DllImport("user32.dll")] [return: MarshalAs(UnmanagedType.Bool)] …
Jason
  • 13,563
  • 15
  • 74
  • 125
2
votes
7 answers

How can i take snapshot of command prompt window in full screen mode

I need to take snapshot if command prompt window running in full screen mode. I had tried it using PrintScreen,Ctrl+PrintScreen, Ctrl+Alt+PrintScreen button(s) but nothing seems to work Also are there any reasons that the print screen button does…
Abdul Khaliq
  • 2,423
  • 12
  • 40
  • 65