AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Yet another spotify witout ads

 
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
lilljimpa



Joined: 18 Apr 2007
Posts: 127

PostPosted: Sat Jul 18, 2009 1:11 am    Post subject: Yet another spotify witout ads Reply with quote

I saw that some tried to arrange so that the sound mutes when advertising was running. however, some works not when minimized to tray. or for other it may not work in vista but this will work! (at least for me, wich use vista)

this script set mute on and off in spotify in which windowed mode any time
it effect's on titel of spotify

it also show the song's name in tooltip
could as well add that opertunity while I still keep checking the title for advertising

Code:


OnMessage(0x200,"MoveWindow")
#Persistent

DetectHiddenWindows, On
SetTitleMatchMode 2
WinGetTitle, Playing, ahk_class SpotifyMainWindow
WinGetTitle, LastSong, ahk_class SpotifyMainWindow

Mute = Off

SetTimer, CheckSong, 500

CheckSong:
WinGetTitle, Playing, ahk_class SpotifyMainWindow
if Playing != %LastSong%
{   StringTrimLeft, Playing, Playing, 10
   ToolTip, %Playing%
   SetTimer, RemoveToolTip, 1500
   if Mute = On
{
      ControlSend, ahk_parent, ^+{Down}, ahk_class SpotifyMainWindow
      Mute = Off
}
   if Playing = Spotify - Spotify – Spotify Premium
{
      ControlSend, ahk_parent, ^+{Down}, ahk_class SpotifyMainWindow
      Mute = On
}


}
WinGetTitle, LastSong, ahk_class SpotifyMainWindow
return

RemoveToolTip:
SetTimer, RemoveToolTip, Off
ToolTip
return

_________________
you'll have to excuse me...I'm from Sweden, so my English is not that good...(but now it's better cuz JSLover/Guest is helping me)...
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Andreas129



Joined: 25 Jan 2008
Posts: 48
Location: Sweden

PostPosted: Sat Jul 18, 2009 6:59 am    Post subject: Reply with quote

Didn't work for me. WinXP....
Back to top
View user's profile Send private message
Rober
Guest





PostPosted: Mon Aug 24, 2009 2:35 pm    Post subject: Reply with quote

Try this one, it works perfectly: http://www.autohotkey.com/forum/topic45804.html

[Moderator's note: Changed link to AHK topic with source code. The blog link is found there]
Back to top
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group