Sign in to follow this  
Followers 0
oussito

Pixel search for minimized/inactive window

28 posts in this topic

Hi, I'm new to this forum and also autoit. I'm just wondering how could I use pixel search for minimized/inactive window.

Thanks in advance.

Share this post


Link to post
Share on other sites



You can't do it.


If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

Is there any function that can do that. I realy appreciate your help.

Share this post


Link to post
Share on other sites

What part of my answer suggested to you that there might be a way of doing it?

1 person likes this

If I posted any code, assume that code was written using the latest release version unless stated otherwise. Also, if it doesn't work on XP I can't help with that because I don't have access to XP, and I'm not going to.
Give a programmer the correct code and he can do his work for a day. Teach a programmer to debug and he can do his work for a lifetime - by Chirag Gude
How to ask questions the smart way!

I hereby grant any person the right to use any code I post, that I am the original author of, on the autoitscript.com forums, unless I've specifically stated otherwise in the code or the thread post. If you do use my code all I ask, as a courtesy, is to make note of where you got it from.

Back up and restore Windows user files _Array.au3 - Modified array functions that include support for 2D arrays.  -  ColorChooser - An add-on for SciTE that pops up a color dialog so you can select and paste a color code into a script.  -  Customizable Splashscreen GUI w/Progress Bar - Create a custom "splash screen" GUI with a progress bar and custom label.  -  _FileGetProperty - Retrieve the properties of a file  -  SciTE Toolbar - A toolbar demo for use with the SciTE editor  -  GUIRegisterMsg demo - Demo script to show how to use the Windows messages to interact with controls and your GUI.  -   Latin Square password generator

Share this post


Link to post
Share on other sites

furthermore, question asked a ton of times; oh you didn't searched on the forum before posting...


 

OS : Win XP SP2 (32 bits) / Win 7 SP1 (64 bits) / Win 8 (64 bits) | Autoit version: latest stable / beta.
Hardware : Intel(R) Core(TM) i5-2400 CPU @ 3.10Ghz / 8 GiB RAM DDR3.

My UDFs : Skype UDF | TrayIconEx UDF | GUI Panel UDF | Excel XML UDF | Is_Pressed_UDF

My Projects : YouTube Multi-downloader | FTP Easy-UP | Lock'n | WinKill | AVICapture | Skype TM | Tap Maker | ShellNew | Scriptner | Const Replacer | FT_Pocket | Chrome theme maker

My Examples : Capture toolIP Camera | Crosshair | Draw Captured Region | Picture Screensaver | Jscreenfix | Drivetemp | Picture viewer

My Snippets : Basic TCP | Systray_GetIconIndex | Intercept End task | Winpcap various | Advanced HotKeySet | Transparent Edit control

 

Share this post


Link to post
Share on other sites

Well, let me clarify things, lets say that I have a program in the background and I want to seach pixels of that program while it's in the background, you see?

Share this post


Link to post
Share on other sites

Of course I searched and I found in a forum that we can do that if the window is in the background, okay?

Share this post


Link to post
Share on other sites

Well, let me clarify things, lets say that I have a program in the background and I want to seach pixels of that program while it's in the background, you see?

we see and we answered.

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Of course I searched and I found in a forum that we can do that if the window is in the background, okay?

what did you find?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

@Jos: They said it's possible using some windowgethandle() but they didn't give code.

@JohnOne: I did'n say any insult so be polite please.

Please I want a good answer because I can't post anymore until 13 nov

Share this post


Link to post
Share on other sites

#13 ·  Posted (edited)

There isn't much we can do unless you become more clear what it is you want.

Not sure if this is the good answer you are looking for but there isn't much else to say.

Jos

Edited by Jos

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

I'm pretty sure I've done this ( background pixels ) with PrintWindow and using bitblt or getdibits or maybe all... but pretty sure I started with Printwindow.


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

install a vm and run the vm in the background!

however this answer is better!

You can't do it.

Share this post


Link to post
Share on other sites

install a vm and run the vm in the background!

however this answer is better!

Minimized, maybe not ever since the DC is clipped more than likely, however, he mentioned background after all that ... so :whistle:

Anyway, There are examples, quick google led me here for a start:


Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

PrintWindow function may take a screenshot from inactive windows in the background but the colors may be changed also.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

PrintWindow function may take a screenshot from inactive windows in the background but the colors may be changed also.

Br,

UEZ

Are you sure that's not DPI settings?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

Look here how different the captured windows look like:

I didn't do a pixel check for both captured images but as you can see the window looks different and I assume that the pixels of the captured screen might be different, too.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites

#20 ·  Posted (edited)

Understood, but that doesn't show what we're discussing. That's the window (theme area), which we know differs on various machines/settings/etc, not the window rect data, which I can only imagine changing with DPI settings (eg. pc settings 96 and bitblt/getdibits at 72 ( just an example ) ).

I don't really want to second guess you with this, but ...

Edited by SmOke_N

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0