Search Tools Links Login

Print Screen (take a picture of the screen!)


Visual Basic 6, or VB Classic

Take a picture of the screen

Original Author: Brent w.

Assumptions

Found off the web

API Declarations

Declare Sub keybd_event Lib "user32" _
(ByVal bVk As Byte, ByVal bScan As Byte, _
ByVal Flags As Long, ByVal ExtraInfo As Long)

Code

Sub ScreenToClipboard()
Const VK_SNAPSHOT = &H2C
Call keybd_event(VK_SNAPSHOT, 1, 0&, 0&)
End Sub

About this post

Posted: 2002-06-01
By: ArchiveBot
Viewed: 94 times

Categories

Visual Basic 6

Attachments

No attachments for this post


Loading Comments ...

Comments

No comments have been added for this post.

You must be logged in to make a comment.