- Yasaklandı
- #1
Seçkin Üye
C++ ya Geçtim, Elimdeki Tüm VB.NET Projeleri, Kodları Paylaşacam
Mantık : GPFamer vb. yapmak isteyenlerin işine yarayacak, Cursor'u raskele yerlere götürerek ateş edebileceksiniz yani otomatik olarak sağ sol yapıp ateş edebileceksiniz
Gerekenler :
2 Adet Timer
2 Adet Label
1 Adet TextBox
Timer 1 Özellikleri:
NAME : hareket
ENABLED : False
INTERVAL : 1
Timer 2 Özellikleri:
[align=center]NAME : key
ENABLED : True
INTERVAL : 1
[/align]Code :
Public Class Form1
[/align]
[align=justify] Private Declare Function GetAsyncKeyState Lib "user32.dll" (vKey As Keys) As Short
Private Declare Sub mouse_event Lib "user32.dll" (dwFlags As Integer, dx As Integer, dy As Integer, dwData As Integer, dwExtraInfo As Integer)
Private Declare Auto Sub keybd_event Lib "user32.dll" (bVk As Byte, bScan As Byte, dwFlags As Long, dwExtraInfo As Long)
'--------------------------------------------------------------------------------------------------------------Private Sub hareket_Tick(sender As Object, e As EventArgs) Handles hareket.TickLabel1.Text = Control.MousePosition.XLabel2.Text = Control.MousePosition.YTextBox1.Text = "(" & Label1.Text & ", " & Label2.Text & ")"Dim aDim Rastgelekonum As New RandomDim Olusturulankonum As Integer = Rastgelekonum.Next(0, Screen.PrimaryScreen.Bounds.Width)a = New Drawing.Point(Olusturulankonum, 350)Cursor.Position = amouse_event(&H2, 0, 0, 0, 1)mouse_event(&H4, 0, 0, 0, 1)End Sub
'--------------------------------------------------------------------------------------------------------------Private Sub key_Tick(sender As Object, e As EventArgs) Handles key.TickIf GetAsyncKeyState(Keys.F2) Thenhareket.Start()
End IfIf GetAsyncKeyState(Keys.F3) Then
hareket.Stop()
End IfEnd SubEnd Class