RE: Capture Screen Image via Code w/out User Interaction
- From: dch3 <dch3@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 29 Sep 2008 12:27:00 -0700
From the clipboard, it'd be saving the image to a file. Off the top of thehead, mostly likely using Paint along the lines of Set objPaint =
CreateObject("Paint.Application"). Of course, I've never tried automating
paint and have no idea if its possible.
"BeWyched" wrote:
Hi..
You can use a Windows API call to achieve this:
In the form's declaration section (i.e. at the top) enter:
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan
As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Then, in your error capture coding put:
keybd_event VK_SNAPSHOT, 1, 0, 0
This will copy a 'Print Screen' image to the clipboard. What will you to do
with that? Let me know and I'll try and help.
Cheers.
BW
"dch3" wrote:
I'm entertaining the idea of enhancing my error logging by doing a screen
capture at the time that the error handler kicks in.
Anyone have experience with capturing the screen image and then saving it
via code?
- Follow-Ups:
- RE: Capture Screen Image via Code w/out User Interaction
- From: BeWyched
- RE: Capture Screen Image via Code w/out User Interaction
- References:
- Capture Screen Image via Code w/out User Interaction
- From: dch3
- RE: Capture Screen Image via Code w/out User Interaction
- From: BeWyched
- Capture Screen Image via Code w/out User Interaction
- Prev by Date: RE: How do I geocode in Access 2003?
- Next by Date: RE: How do I geocode in Access 2003?
- Previous by thread: RE: Capture Screen Image via Code w/out User Interaction
- Next by thread: RE: Capture Screen Image via Code w/out User Interaction
- Index(es):
Relevant Pages
|
Loading