0
我希望這個計劃時,對無論是在應用程序或外部的東西用戶點擊,讓一個屏幕快照,並將其作爲JPEG格式保存到一個文件夾如何在vb.net中檢測鼠標點擊?
這是我希望把這些選項在它的代碼:
Imports System.Net.Mail
Public Class Form1
Private Function TakeImage()
Return TakeImage(0, 0, Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height)
End Function
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
PictureBox1.Image = CType(TakeImage(), Image)
End Sub
End Class
由我初學VB.NET
點擊應用程序內的內容? 爲什麼不在相關對象的click_event上使用TakeImage方法? – Hexie
我的意思是當用戶點擊任何地方(它可以是桌面上的圖標或瀏覽器中的鏈接等)不僅在應用程序內 – EmPlusPlus