VB截图程序怎么提高分辨率?求助
PrivateDeclareSubkeybd_eventLib"user32"(ByValbVkAsByte,ByValbScanAsByte,ByValdwFlagsA...
Private Declare Sub keybd_event Lib "user32" (ByVal bVk As Byte, ByVal bScan As Byte, ByVal dwFlags As Long, ByVal dwExtraInfo As Long)
Const theScreen = 1
Const theForm = 0
Private Sub Command1_Click()
Dim t As Integer
t = Minute(Now)
Call keybd_event(vbKeySnapshot, theForm, 0, 0)
'若theForm改成theScreen则Copy整个Screen
DoEvents
SavePicture Clipboard.GetData(vbCFBitmap), "d:\" & t & ".jpg"
End Sub 展开
Const theScreen = 1
Const theForm = 0
Private Sub Command1_Click()
Dim t As Integer
t = Minute(Now)
Call keybd_event(vbKeySnapshot, theForm, 0, 0)
'若theForm改成theScreen则Copy整个Screen
DoEvents
SavePicture Clipboard.GetData(vbCFBitmap), "d:\" & t & ".jpg"
End Sub 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询