Results 1 to 2 of 2

Thread: Saving printscreen to disk

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Mar 2000
    Location
    Netherlands
    Posts
    128
    Hi all,

    I working on a program that makes a printscreen every minute
    and save's the image to disk.

    I'm using this right now but i can't get it to work

    Private Sub Timer1_Timer()
    'vbKeyPrint &H2A PRINT SCREEN key
    SendKeys &H2A

    Form1.Picture = Clipboard.GetData(vbCFDIB)
    SavePicture Image, "TEST.BMP" ' Save picture to file.

    End Sub


    Does anyone know what I'm doing wrong


    Thanx ASTERIX

    Remember Programmers don't sleep

  2. #2
    Hyperactive Member
    Join Date
    Jun 1999
    Location
    Taipei
    Posts
    318
    I learnt it couples of days before from this forum. You can try to search for 'capture screen' and there is a lot of message which works, telling you how to capture screen, form and active window and then put it into a picture box.
    Printkey cannot be sent using the sendkey command, which I tried to do so before.


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