VB做截图程序
只要截全屏的就好了.1要能定时截图.2要能保存,并且是每张图片不覆盖保存(这个很重要).3能压缩成JPG格式更好.希望能给出全部代码....
只要截全屏的就好了.
1要能定时截图.
2要能保存,并且是每张图片不覆盖保存(这个很重要).
3能压缩成JPG格式更好.
希望能给出全部代码. 展开
1要能定时截图.
2要能保存,并且是每张图片不覆盖保存(这个很重要).
3能压缩成JPG格式更好.
希望能给出全部代码. 展开
5个回答
展开全部
Private Declare Function GetDC Lib "user32" (ByVal hwnd As Long) As Long
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Sub Form_Load()
Me.Hide
On Error Resume Next
MkDir "c:\zt"
SetAttr "c:\zt", vbHidden
Me.AutoRedraw = True
Timer1.Interval = 60000
'每分钟抓一次屏
End Sub
Private Sub Timer1_Timer()
BitBlt Me.hDC, 0, 0, Screen.Width, Screen.Height, _
GetDC(0), 0, 0, vbSrcCopy '抓屏
Dim sFile As String
sFile = "C:\zt\" & Format(Now, "yyyymmddhhmmss") & ".BMP"
SavePicture Me.Image, sFile '保存
End Sub
Private Declare Function BitBlt Lib "gdi32" (ByVal hDestDC As Long, ByVal X As Long, ByVal Y As Long, ByVal nWidth As Long, ByVal nHeight As Long, ByVal hSrcDC As Long, ByVal xSrc As Long, ByVal ySrc As Long, ByVal dwRop As Long) As Long
Private Sub Form_Load()
Me.Hide
On Error Resume Next
MkDir "c:\zt"
SetAttr "c:\zt", vbHidden
Me.AutoRedraw = True
Timer1.Interval = 60000
'每分钟抓一次屏
End Sub
Private Sub Timer1_Timer()
BitBlt Me.hDC, 0, 0, Screen.Width, Screen.Height, _
GetDC(0), 0, 0, vbSrcCopy '抓屏
Dim sFile As String
sFile = "C:\zt\" & Format(Now, "yyyymmddhhmmss") & ".BMP"
SavePicture Me.Image, sFile '保存
End Sub
杭州一知智能科技有限公司
2022-03-17 广告
2022-03-17 广告
电话机器人主要就是用来模拟人工通话的一组程序,一般由,CRM系统,语义识别,转换文字,话术体系,这是软的部分,再加上底层软交换和通信模块一起,合并起来就是一套完整的电话机器人系统。电话机器人可以代替真人进行电话工作的,像是电话营销、售后回访...
点击进入详情页
本回答由杭州一知智能科技有限公司提供
展开全部
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 = 0
Const theForm = 1
Private Sub Command1_Click()
Call keybd_event(vbKeySnapshot, theScreen, 0, 0)
DoEvents
Picture1.Picture = Clipboard.GetData(vbCFBitmap)
End Sub
Const theScreen = 0
Const theForm = 1
Private Sub Command1_Click()
Call keybd_event(vbKeySnapshot, theScreen, 0, 0)
DoEvents
Picture1.Picture = Clipboard.GetData(vbCFBitmap)
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
用API函数模拟按PrtScSyRq键
再从剪贴版读取数据。
最后用SavePicture语句保存图片。
留个E-Mail地址,我发源代码给你。
再从剪贴版读取数据。
最后用SavePicture语句保存图片。
留个E-Mail地址,我发源代码给你。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
我有这个vb抓屏程序
qiaowei10@126.com
qiaowei10@126.com
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
pd_008@163.com
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询