Spotify Ad Blocker

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review

Expand view Topic review: Spotify Ad Blocker

Re: Spotify Ad Blocker

by iseahound » 04 Jun 2018, 02:36

small update

Re: A gift for you all

by nnnik » 14 Apr 2018, 09:58

I have Spotify Premium :(

Re: A gift for you all

by Blockefella Records » 14 Apr 2018, 05:49

Music to my ears!

Thank you

Re: A gift for you all

by swagfag » 14 Apr 2018, 03:51

why not swap the post's title with its contents

Spotify Ad Blocker

by iseahound » 14 Apr 2018, 03:16

Code: Select all

#singleinstance force
;#include <window>

SetTimer, #+a, 1000

WinGet, _windows, List
Loop % _windows {
   _hwnd := _windows%A_Index%
   WinGet, _process, ProcessName, ahk_id %_hwnd%
   WinGetTitle, _title, ahk_id %_hwnd%
} until (_process == "Spotify.exe" && _title != "")
if (_process == "Spotify.exe") && !((_title ~= "-") || (_title = "spotify")) {
   PostMessage, 0x112, 0xF060,,, ahk_id %_hwnd%
   while ProcessExist("Spotify.exe")
      Sleep 10
   Run, YOUR PATH TO SPOTIFY.EXE \Spotify.exe --minimized
   WinWait, ahk_exe Spotify.exe
   Sleep 7000
   Send, {Media_Play_Pause}

   return Errorlevel
This code blocks ads on Spotify. It is provided as-is and confirmed working as of 2018-06-04.