Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Spotify and iTunes simple hotkey script! (My first one)


  • Please log in to reply
6 replies to this topic

Poll: What do you think? (0 member(s) have cast votes)

What do you think?

  1. Great (0 votes [0.00%])

    Percentage of vote: 0.00%

  2. OK (1 votes [100.00%])

    Percentage of vote: 100.00%

  3. Crap (0 votes [0.00%])

    Percentage of vote: 0.00%

Vote Guests cannot vote
flytende
  • Members
  • 3 posts
  • Last active: May 07 2010 07:13 PM
  • Joined: 18 Apr 2010
Simple Spotify and iTunes hotkeys

Hi!
This is my first script!.
I wanted to have some easy access hotkeys for iTunes and Spotify while playing Counter-Strike: Source, so i could change song, turn down the volume and play/pause the song. So it turned out to this

Download

Hotkey-list:

Spotify:
Play/pause = Alt + Numpad 5
Previous/next song = Alt + Numpad 4/6
Volume up/down = Alt + Numpad 8/2

iTunes:
Play/pause = Ctrl + Numpad 5
Previous/next song = Ctrl + Numpad 4/6
Volume up/down = Ctrl + Numpad 8/2


;________________________________________________________________________________

	; Volume up "Alt + Numpad 8"					; Spotify
!numpad8::  	
ControlSend, ahk_parent, ^{Up}, ahk_class SpotifyMainWindow		; Spotify
return 
									; Spotify
	; Volume down "Alt + Numpad 2"
!numpad2:: 								; Spotify
ControlSend, ahk_parent, ^{Down}, ahk_class SpotifyMainWindow
return 									; Spotify

	; Previous track "Alt + Numpad 4"				; Spotify
!numpad4:: 
ControlSend, ahk_parent, ^{Left}, ahk_class SpotifyMainWindow		; Spotify
return 
									; Spotify
	; Next track "Alt + Numpad 6"				
!numpad6:: 								; Spotify
ControlSend, ahk_parent, ^{Right}, ahk_class SpotifyMainWindow
return 									; Spotify

	; Play/pause "Alt + Numpad 5"					; Spotify
!numpad5::
ControlSend, ahk_parent, {space}, ahk_class SpotifyMainWindow		; Spotify
return 
									; Spotify
;________________________________________________________________________________
;________________________________________________________________________________
;________________________________________________________________________________

	; Volume up "Ctrl + Numpad 8"					; iTunes
^numpad8:: 
ControlSend , ahk_parent, ^{up}, iTunes ahk_class iTunes 		; iTunes
return
									; iTunes
	; Volume down "Ctrl + Numpad 2"
^numpad2:: 								; iTunes
ControlSend , ahk_parent, ^{down}, iTunes ahk_class iTunes 
return 									; iTunes

	; Previous track "Ctrl + Numpad 4"				; iTunes
^numpad4:: 
ControlSend , ahk_parent, ^{left}, iTunes ahk_class iTunes 		; iTunes
return 
									; iTunes
	; Next track "Ctrl + Numpad 6"
^Numpad6:: 								; iTunes
ControlSend , ahk_parent, ^{right}, iTunes ahk_class iTunes 
return 									; iTunes

	; Play/pause "Ctrl + Numpad 5"					; iTunes
^numpad5:: 
ControlSend , ahk_parent, ^{space}, iTunes ahk_class iTunes 		; iTunes
return
									; iTunes
;________________________________________________________________________________


flytende
  • Members
  • 3 posts
  • Last active: May 07 2010 07:13 PM
  • Joined: 18 Apr 2010
What do you think?

  • Guests
  • Last active:
  • Joined: --
Usefull functions indeed.

Look out within in a week or two and I will have a public beta of my project that you would probably enjoy. Seems just so raaw right now even if some things work.
Spotify keys were what I started the project for;p friends you know, always want more so...


I use my spotify keys ALOT so its very sweet indeed:)

I'm having problems thought with toggling shuffle
and repeat. Thats a scriptfunction that would be awesome;)

flytende
  • Members
  • 3 posts
  • Last active: May 07 2010 07:13 PM
  • Joined: 18 Apr 2010
Yeah! That would be awesome! :D Let me know when you got it figured out :)

brOwnage
  • Guests
  • Last active:
  • Joined: --
Thank u very much (tusen takk), this is like a blessing. I kept hating itunes for not having hotkeys.

Funny i feel like a hacker finding out how to install the script and here u are , mr creator.

I can thank u enough!

brOwnage
  • Guests
  • Last active:
  • Joined: --
Ok , just too good i guess :(
It works for 2 sec then it stops working, im on an laptop so i hvae to press Fn+ numlk on/off . If that has to do with any of it.

My problem: Script stops working, go into itunes, then i can them and they work outside ouf itunes for like a short time, and i have to repeat the actions again, which is boring while in game.

Please help , and thank you!

Anon
  • Guests
  • Last active:
  • Joined: --
It probably stops because you minimize it to tray.