Sign in to follow this  
Followers 0
Vegar

Read text from another window

8 posts in this topic

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? :party:

Share this post


Link to post
Share on other sites



try pixel get color, when the white dot gets to the end of the bar then ctrl click cords or something


Share this post


Link to post
Share on other sites

Wrong, the commercial will start anyways. I've been using Spotify myself for months so I know.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

Yes, I'm almost 100% sure.

Edited by Pain

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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..

Share this post


Link to post
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
Sign in to follow this  
Followers 0