Ich habe leider keine Tastatur mit Mediatasten deswegen habe ich mir ein Autoit programm geschrieben:
[autoit]HotKeySet("^!m","activate")
$activate = 0
Func activate()
If $activate = 0 Then
$activate = 1
HotKeySet("{F2}","mute")
HotKeySet("{F3}","voldown")
HotKeySet("{F4}","volup")
HotKeySet("{F5}","prevtrack")
HotKeySet("{F6}","playpause")
HotKeySet("{F7}","stoptrack")
HotKeySet("{F8}","nexttrack")
Func voldown()
Send("{VOLUME_DOWN}")
EndFunc
Func volup()
Send("{VOLUME_UP}")
EndFunc
Func prevtrack()
Send("{MEDIA_PREV}")
EndFunc
Func playpause()
Send("{MEDIA_PLAY_PAUSE}")
EndFunc
Func stoptrack()
Send("{MEDIA_STOP}")
EndFunc
Func nexttrack()
Send("{MEDIA_NEXT}")
EndFunc
Func mute()
Send("{VOLUME_MUTE}")
EndFunc
ElseIf $activate = 1 Then
$activate = 0
HotKeySet("{F2}")
HotKeySet("{F3}")
HotKeySet("{F4}")
HotKeySet("{F5}")
HotKeySet("{F6}")
HotKeySet("{F7}")
HotKeySet("{F8}")
EndIf
EndFunc
While 1
Sleep(10)
WEnd
Das Problem ist, dass Autoit immer sage das func voldown() kein Endfunc hätte. Was kann ich tun?