Sign in to follow this  
Followers 0
kpt

Continue running the script in inactive window

6 posts in this topic

Not sure how to keep my script running while I'm doing something else.

I would like it to keep running in the background in the inactive window.

Help is much appreciate.

thanks

Share this post


Link to post
Share on other sites



I would also like to know this. I believe that the answer will be something along the lines of : "Only some commands can run on inactive window", I'm not sure though. Either way, I would like to add another question on top of this one: Is it possible to, somehow, use pixelgetcolor() in an inactive window?


TL;DR I'm new to autoit or any programming language whatsoever.

Share this post


Link to post
Share on other sites

Hey mario thanks for the input. I figured it out. Its a simple ControlSend line. you just got to have the proper basic window inputs

Share this post


Link to post
Share on other sites

MarioTester, I believe pixelgetcolor() only works if the window is visible since it grabs actual pixels from the screen. Weather its active should not matter, just visible.

Share this post


Link to post
Share on other sites

Hey mario thanks for the input. I figured it out. Its a simple ControlSend line. you just got to have the proper basic window inputs

Hmm I see! I'm glad you solved your problem, and this ControlSend will definitely be useful in my future scripts :)

MarioTester, I believe pixelgetcolor() only works if the window is visible since it grabs actual pixels from the screen. Weather its active should not matter, just visible.

Oh, I always thought it had to be active, being visible makes more sense. But still, that would mean that it's impossible to get pixels from background windows.

TL;DR I'm new to autoit or any programming language whatsoever.

Share this post


Link to post
Share on other sites

Hmm I see! I'm glad you solved your problem, and this ControlSend will definitely be useful in my future scripts :)

Oh, I always thought it had to be active, being visible makes more sense. But still, that would mean that it's impossible to get pixels from background windows.

That's not totally true, it's possible to take a screenshot of a minimized window (or in background but I'm not totally sure) and then check the pixel, have a look here:

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