Jump to content

Continue running the script in inactive window


kpt
 Share

Recommended Posts

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.
Link to comment
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.

Link to comment
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.
Link to comment
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:

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...