kpt Posted January 29, 2012 Share Posted January 29, 2012 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 Link to comment Share on other sites More sharing options...
MarioTester Posted January 29, 2012 Share Posted January 29, 2012 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 More sharing options...
kpt Posted January 29, 2012 Author Share Posted January 29, 2012 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 Link to comment Share on other sites More sharing options...
Beege Posted January 29, 2012 Share Posted January 29, 2012 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. Assembly Code: fasmg . fasm . BmpSearch . Au3 Syntax Highlighter . Bounce Multithreading Example . IDispatchASMUDFs: Explorer Frame . ITaskBarList . Scrolling Line Graph . Tray Icon Bar Graph . Explorer Listview . Wiimote . WinSnap . Flicker Free Labels . iTunesPrograms: Ftp Explorer . Snipster . Network Meter . Resistance Calculator Link to comment Share on other sites More sharing options...
MarioTester Posted January 29, 2012 Share Posted January 29, 2012 Hey mario thanks for the input. I figured it out. Its a simple ControlSend line. you just got to have the proper basic window inputsHmm 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 More sharing options...
oMBRa Posted January 30, 2012 Share Posted January 30, 2012 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 More sharing options...
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