Advertisement
6_2008-2009 Windows API Call/ Explanation #197082

Make your own Hotkey easy with API

The code is very easy to make your own systemwide hotkeys with API Call!

AI

Shrnutí AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Zdrojový kód
original-source
Private Sub Timer1_Timer()
If GetAsyncKeyState(vbKeyControl) And GetAsyncKeyState(vbKeyO) Then
MsgBox "It works :)"
End If
End Sub
'this example use the Control Key and O key as hotkey but you can use that key and how many keys you want alle the key codes you will find in the vb help under key code constants
Původní komentáře (3)
Obnoveno z Wayback Machine