Requirements.
Visual Basic 2010 or 2008
Steps:
Open Visual Basic
New Project
Add Picturebox (1)
Add Timer (1)
PictureBox Dock = Fill
Timer Interval = 1
Timer = Enabled]
Code: Below Puclic Class Form1
Public Function capturescreen(ByVal links As Integer, ByVal rechts As Integer) As Bitmap
Dim b As New Bitmap(CInt(PictureBox1.Width / 2), CInt(PictureBox1.Height / 2))
Dim g As Graphics = Graphics.FromImage(b)
g.CopyFromScreen(links - (PictureBox1.Width / 4), rechts - (PictureBox1.Height / 4), 0, 0, b.Size)
g.Dispose()
Return b
End Function
Code: Timer
Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
PictureBox1.Image = capturescreen(MousePosition.X, MousePosition.Y)
End Sub
That's all I hope you like my TUT! ♥
Credits:TheMvT