Jump to content

Display current track from Spotify in Skype


Zisly
 Share

Recommended Posts

Did this one quickly and when I was done I got told Skype already had this, apparently I've completely missed it? anyway, someone might find it useful.

#include "include/Skype.au3"
$pid = ProcessExists('Spotify.exe')
If $pid == 0 Then
MsgBox(0, '', 'Spotify has to be running for this to work.')
Exit
EndIf
Global $oldMood = _Skype_ProfileGetMoodText();
Global $currentSong = '';
Global $hwnd = WinGetHandle('[CLASS:SpotifyMainWindow]')
While 1
Sleep(1000)
$song = StringTrimLeft(WinGetTitle($hwnd), 10)
if $song <> $currentSong and $song <> '' Then
_Skype_ProfileSetMoodText('(Spotify) ' & $song);
EndIf
if $song == '' Then
_Skype_ProfileSetMoodText($oldMood);
EndIf
WEnd
_Skype_ProfileSetMoodText($oldMood);

How to use

Have Skype and Spotify running and it'll do the rest. It will change the mood text to the current track in Spotify whenever something is played there.

Skype Current Song.rar

Edited by Zisly
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...