Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Taking a screenshot and responding to the Print Screen Key

Spazz807Spazz807 Member Posts: 6
Does anyone know how to take a screenshot using delphi methods?

And also, I can't get my onkeydown events to even respond to the print screen key. There is a virtual key code for it, which is vk_snapshot.

Any help will be appriciated :)

Comments

  • zibadianzibadian Member Posts: 6,349
    : Does anyone know how to take a screenshot using delphi methods?
    :
    : And also, I can't get my onkeydown events to even respond to the
    : print screen key. There is a virtual key code for it, which is
    : vk_snapshot.
    :
    : Any help will be appriciated :)
    :
    Many of the system keys (windows/popumenu/printscreen/scrolllock) are handled directly by windows. To catch those, you need to use either TApplication.OnMessage() or make a keyboard hook.

    This pages lists a C code to get the screen: http://www.codeproject.com/dialog/screencap.asp
    The various api functions see the msdn.
  • rterrarterra Member Posts: 9
    : : Does anyone know how to take a screenshot using delphi methods?
    : :
    : : And also, I can't get my onkeydown events to even respond to the
    : : print screen key. There is a virtual key code for it, which is
    : : vk_snapshot.
    : :
    : : Any help will be appriciated :)
    : :
    : Many of the system keys (windows/popumenu/printscreen/scrolllock)
    : are handled directly by windows. To catch those, you need to use
    : either TApplication.OnMessage() or make a keyboard hook.
    :
    : This pages lists a C code to get the screen:
    : http://www.codeproject.com/dialog/screencap.asp
    : The various api functions see the msdn.
    This page lists Delphi codes to get the screen:

    http://www.swissdelphicenter.ch/torry/showcode.php?id=140
Sign In or Register to comment.