Jump to content
Sign in to follow this  
Vegar

Read text from another window

Recommended Posts

Vegar

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
zac23

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
Pain

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
Vegar

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
Pain

Yes, I'm almost 100% sure.

Edited by Pain

Share this post


Link to post
Share on other sites
Vegar

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
Pain

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
Vegar

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.