Results 1 to 2 of 2

Thread: Any info on this?

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2000
    Posts
    7

    Question

    Could anyone give me some info on the print screen command? I am trying to develop a progam that will take screenshots when the designated key is pressed. And then save it to a bmp file. Any info would be greatly appreciated

  2. #2
    Guest
    I believe this is what you are looking for.

    Code:
    Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
    Private Const VK_SNAPSHOT = &H2C
    
    Private Sub Command1_Click()
    keybd_event VK_SNAPSHOT, 0, 0, 0
    End Sub
    
    'If you want to capture the whole screen, use this:
    keybd_event VK_SNAPSHOT, 1, 0, 0

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width