Hi,
I have program that takes screenshot and saves it to directory. My problem is that it saves the screenshot size of 1,5 mb. I want it to be about 100 kb or less. How you do that?
My code:
Public Function Capture_Desktop(ByVal Destination$) As Boolean
On Error GoTo errl
DoEvents
Call keybd_event(vbKeySnapshot, 1, 0, 0)
DoEvents
SavePicture Clipboard.GetData(vbCFBitmap), Destination$
Capture_Desktop = True
Exit Function
errl:
MsgBox "noup"
Capture_Desktop = False
Timer1.Enabled = False
Me.WindowState = 0
End Function
Private Sub Command1_Click()
On Error Resume Next
Me.Caption = Text10.Text
Capture_Desktop App.Path & "\Report_" + Text10.Text + Text11.Text + ".jpg"
If Text10.Text = "50" Then
Me.Caption = "Press start again for more shots"
End If
End Sub
Thanks!
I have program that takes screenshot and saves it to directory. My problem is that it saves the screenshot size of 1,5 mb. I want it to be about 100 kb or less. How you do that?
My code:
Public Function Capture_Desktop(ByVal Destination$) As Boolean
On Error GoTo errl
DoEvents
Call keybd_event(vbKeySnapshot, 1, 0, 0)
DoEvents
SavePicture Clipboard.GetData(vbCFBitmap), Destination$
Capture_Desktop = True
Exit Function
errl:
MsgBox "noup"
Capture_Desktop = False
Timer1.Enabled = False
Me.WindowState = 0
End Function
Private Sub Command1_Click()
On Error Resume Next
Me.Caption = Text10.Text
Capture_Desktop App.Path & "\Report_" + Text10.Text + Text11.Text + ".jpg"
If Text10.Text = "50" Then
Me.Caption = "Press start again for more shots"
End If
End Sub
Thanks!