Skip to content

Instantly share code, notes, and snippets.

@Fma965
Created October 27, 2015 21:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Fma965/c646640dbc14250b9d73 to your computer and use it in GitHub Desktop.
Save Fma965/c646640dbc14250b9d73 to your computer and use it in GitHub Desktop.
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