by Albert Tedja (4 Submissions)
Category: Complete Applications
Compatability: Visual Basic 3.0
Difficulty: Beginner
Date Added: Wed 3rd February 2021
Rating: (4 Votes)
Many people have built projects to capture desktop screen. Many functions have been called, BitBlt, GetDesktopWindow, GetDC, even keybd_event, to execute this process.
There is one thing you should know about screen capturing in Windows. Windows itself provides function to capture the screen! Actually, you do not need to build a project for it. Just press PrintScreen, and the captured screen will be stored in clipboard. Run mspaint (or any other graphic applications), and then paste. The screen is now stored as bitmap. Pressing Alt+PrintScreen will capture activewindow. I found this by myself.
What you should do is just managing the clipboard, so when user press printscreen, it automatically saves the clipboard to a file.
This simple project will manage your clipboard and automatically saves the bitmap as file. Run this app, minimize it, and then you can capture the screen freely.
Download Screen Manager (2 KB)