Vegar Posted May 31, 2009 Posted May 31, 2009 Hello I have a musicprogram (Spotify).. this program plays a commercial between the songs each 10 song or something like that.. and i want to make a script witch changes to the next song a couple of seconds before the song is finnished, because then it will not come any commercial... so the thing i need to read from the spotify windows is how long the song is, and how far out in the song i have lisended. but obviously this changes between each song .. so how could i do this?
zac23 Posted May 31, 2009 Posted May 31, 2009 try pixel get color, when the white dot gets to the end of the bar then ctrl click cords or something
Pain Posted May 31, 2009 Posted May 31, 2009 Wrong, the commercial will start anyways. I've been using Spotify myself for months so I know.
Vegar Posted May 31, 2009 Author Posted May 31, 2009 Wrong, the commercial will start anyways. I've been using Spotify myself for months so I know.are you sure about this?? .. i've tried to change the song to the next one a couple of seconds before it changes automaticly, and i never got a comercial
Pain Posted May 31, 2009 Posted May 31, 2009 (edited) Yes, I'm almost 100% sure. Edited May 31, 2009 by Pain
Vegar Posted May 31, 2009 Author Posted May 31, 2009 Ok, But i think i will try this anyway.. but i have a question about "pixelgetcolor".. how can i make it chuck it in the spotifywindow if i have another window open.. and if the spotify screen is not maximized? and if someone with a bigger/smaller screen than i have is going to try it?
Pain Posted May 31, 2009 Posted May 31, 2009 PixelGetColor ( x , y [, hwnd] )The position control always stays at the same place (relative to the window size), so you can count the pixels from the right side.Btw, 2 minutes ago a commercial break just started even though I did as you said, so now I'm 100% sure.
Vegar Posted May 31, 2009 Author Posted May 31, 2009 Ok... but i'le try this just for the expirience then but wounder if it was any way to make a scipt that could skip the commercials.. or spool thru it or something..
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now