Created
October 27, 2015 21:29
-
-
Save Fma965/c646640dbc14250b9d73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub kHook_KeyDown(ByVal sender As Object, ByVal e As WindowsHookLib.KeyboardEventArgs) Handles kHook.KeyDown | |
If e.KeyCode = Keys.VolumeUp And Control.ModifierKeys = Keys.Control = False Then | |
e.Handled = True | |
ShowForm.IsBackground = True | |
ShowForm.Start() | |
SendCommands("VU") | |
ElseIf e.KeyCode = Keys.VolumeDown And Control.ModifierKeys = Keys.Control = False Then | |
e.Handled = True | |
SendCommands("VD") | |
ElseIf e.KeyCode = Keys.VolumeMute And Control.ModifierKeys = Keys.Control = False Then | |
e.Handled = True | |
SendCommands("MZ") | |
End If | |
End Sub | |
Private Sub FormShow() | |
Me.Opacity = 1.1 | |
Me.Refresh() | |
Threading.Thread.Sleep(3000) | |
Me.Opacity = 0 | |
End Sub |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment