Merhabalar...
Ben Offline bir oyunda Sekmeme yapmak istiyorum.
Bunun Tıklama olayını çözdüm.
Şu anki kodum böyle:
Public Class Form1 Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If GetAsyncKeyState(vKey:=1) Then Else End If End Sub End Class
Yani sol tıklayınca Birşeyler harekete geçecek.
Ama şunu anlamıyorum, Bu kod olmuyor:
Public Class Form1 Private Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick If GetAsyncKeyState(vKey:=1) Then MousePosition.X = MousePosition.X - 1 Else End If End Sub End Class
Hata veriyor.
Lütfen yardım edin :(