1

Most examples on here are people creating a screen shot manually in C#.

My goal is to listen for the PRINTSCREEN keyboard event, and after the event is called I take the clipboard data and do something with it. I need to make sure I only access the clipboard after the PRINTSCREEN event has captured the screenshot.

Any suggestions?

Ben
  • 2,122
  • 2
  • 28
  • 48
  • 5
    Q: Can I capture a "print screen" event in C#? A: Yes: [How do i capture the Print Screen key?](http://stackoverflow.com/questions/1191479/how-do-i-capture-the-print-screen-key) – paulsm4 May 15 '16 at 02:30
  • 1
    I am not sure the other answered question fulfill the whole question here. "I need to make sure I only access the clipboard *after* the PRINTSCREEN event has *captured the screenshot*." – Master DJon May 15 '16 at 18:41

1 Answers1

1
  1. Press the print screen key.
  2. Check which type of clipboard data it is by using code.
  3. With this info, code something that cleans or knows what is the last value of this clipboard data type.
  4. When print screen is pressed, look in clipboard until this data type is changed and then take it.
Master DJon
  • 1,899
  • 2
  • 19
  • 30