Posted: Sat Feb 21, 2015 4:20 am Post subject: VB6 getasynckeystate problem
I want to make hotkey for my own cheat. But the problem is , the hotkey doesn't give me respond (no reaction) , but when the window is focus to the other programs, it will show a respond. Maybe someone can help me
Private Sub Timer2_Timer()
On Error Resume Next
If GetAsyncKeyState(vbKeyF1) Then '[F1] HotKey: Play/Stop music
If Musica = 1 Then
BASSMOD_MusicPause
Musica = 0
Else
BASSMOD_MusicPlay
Musica = 1
End If
End If
If GetAsyncKeyState(vbKeyF2) Then '[F2] HotKey: Select next chiptune
Static chip As Integer
chip = chip + 1
If chip = 11 Then chip = 1
Call stopXM("chiptune.xm")
DoEvents
Call LoadMusic(chip)
End If
If GetAsyncKeyState(vbKeyF3) Then '[F3] HotKey: Show NFO viewer
Form2.Show
End If
If Form2.Visible = True Then
If GetAsyncKeyState(vbKeyUp) Then
Call Form2.Subir
End If
If GetAsyncKeyState(vbKeyDown) Then
Call Form2.Bajar
End If
If GetAsyncKeyState(vbKeyA) Then
If Form2.tU.Enabled = True Then
Form2.tU.Enabled = False
Else
Form2.tU.Enabled = True
End If
End If
End If
End Sub
_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it! HERE
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum