by Cesare Imperiali (4 Submissions)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)
Capture screen and mouse, show it in a picturebox and let you save it on disk (bmp format)
Assumes
Use Api
ie:GetCursorPos, GetCursor,GetCursorInfo, DrawIcon, and keybd_event - this last for win2k or earlier os, while for win9x and Nt used routines from MSDN to grab screen
Side Effects
Modified to grab aslo the mouse shape...It should work with win98, not with win95. I tested on win2K and it worked fine (but did not try with custom or animated cursors...).
API DeclarationsReloaded to add the GetCursorInfo Api to grab mouse shape