Dinovic, Welcome to the AutoIt forum. You could try using _IsPressed within the HotKey function like this: #include <Misc.au3>
Opt("SendCapslockMode", 0)
HotKeySet("1", "VolUp")
HotKeySet("2", "VolDown")
While 1
Sleep(100)
WEnd
Func VolUp()
If _IsPressed("14") Then
ConsoleWrite("{VOLUME_UP}" & @CRLF)
Else
HotKeySet("1")
Send("1")
HotKeySet("1", "VolUp")
EndIf
EndFunc
Func VolDown()
If _IsPressed("14") Then
ConsoleWrite("{VOLUME_DOWN}" & @CRLF)
Else
HotKeySet("2")
Send("2")
HotKeySet("2", "VolDown")
EndIf
EndFuncAny use? M23 Edit: Fixed the silly typo mentioned below - cut-and-paste is very handy but can catch you out!