You are viewing our Forum Archives. To view or take place in current topics click here.
i need help making global hotkeys
Posted:
i need help making global hotkeysPosted:
Status: Offline
Joined: Jun 05, 201113Year Member
Posts: 377
Reputation Power: 15
ok so iv bin trying to make global hotkeys so i can play sounds and music though my mic when playing games but none of the stuff iv tried worked can anybody help me thanks
#2. Posted:
Status: Offline
Joined: May 18, 201113Year Member
Posts: 16,419
Reputation Power: 24471
Status: Offline
Joined: May 18, 201113Year Member
Posts: 16,419
Reputation Power: 24471
What exactly are you trying to do? Some music programs like Foobar2000 let you set global shortcuts but you can make AutoHotKey do just about anything.
[ Register or Signin to view external links. ]
Even if you use something like Spotify, people have probably already written the code you want and you can find a lot of info with Google.
For instance:
[ Register or Signin to view external links. ]
Even if you use something like Spotify, people have probably already written the code you want and you can find a lot of info with Google.
For instance:
SetTitleMatchMode 2
; "CTRL + LEFT" for previous
^Left::
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Left}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
; "CTRL + RIGHT" for next
^Right::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
; "CTRL + UP" for pause
^UP::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, {space}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
; "CTRL + DOWN" for info
^Down::
{
DetectHiddenWindows, On
SetTitleMatchMode 2
WinGetTitle, now_playing, ahk_class SpotifyMainWindow
StringTrimLeft, playing, now_playing, 10
DetectHiddenWindows, Off
clipboard = %playing%`r`n
return
}
; "CTRL + PAGE UP" for volume up
^PgUP::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Up}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
; "CTRL + PAGE DOWN" for volume down
^PgDn::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Down}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
; "CTRL + END" for mute
^End::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, ^+{Down}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
- 1useful
- 0not useful
#3. Posted:
Status: Offline
Joined: Jun 05, 201113Year Member
Posts: 377
Reputation Power: 15
r00t wrote What exactly are you trying to do? Some music programs like Foobar2000 let you set global shortcuts but you can make AutoHotKey do just about anything.im trying to use foobar but it doesnt work for me
[ Register or Signin to view external links. ]
Even if you use something like Spotify, people have probably already written the code you want and you can find a lot of info with Google.
For instance:
SetTitleMatchMode 2
; "CTRL + LEFT" for previous
^Left::
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Left}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
; "CTRL + RIGHT" for next
^Right::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
; "CTRL + UP" for pause
^UP::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, {space}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
; "CTRL + DOWN" for info
^Down::
{
DetectHiddenWindows, On
SetTitleMatchMode 2
WinGetTitle, now_playing, ahk_class SpotifyMainWindow
StringTrimLeft, playing, now_playing, 10
DetectHiddenWindows, Off
clipboard = %playing%`r`n
return
}
; "CTRL + PAGE UP" for volume up
^PgUP::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Up}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
; "CTRL + PAGE DOWN" for volume down
^PgDn::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, ^{Down}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
; "CTRL + END" for mute
^End::
{
DetectHiddenWindows, On
ControlSend, ahk_parent, ^+{Down}, ahk_class SpotifyMainWindow
DetectHiddenWindows, Off
return
}
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.