Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending screenshot via email

Status
Not open for further replies.

Drivenn

Programmer
Mar 26, 2004
13
FI
Hi,

I have program that takes screenshot from active window and saves it to directory. Is it possible to send Screenshot as an email to recipient with the same click-event and how you do it?

Public Function Capture_Desktop As Boolean

DoEvents
Call Keybd(vbKeySnapshot, 1, 0, 0)
DoEvents
SavePicture Clipboard.GetData(vbCFBitmap), Destination$
Capture_Desktop = True

Exit Function
errl:
MsgBox "no form selected"

Capture_desktop = False
End Function


Private Sub Command1_Click()
On error Resume Next

Capture_Desktop App.Path & "\Form " + Text1.Text + ".jpg"
Me.caption = Text10.Text


Thanks

Drivenn
 
This FAQ will do it for you...

faq222-179

With or without outlook.

Casper

There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top