oussito Posted November 12, 2012 Posted November 12, 2012 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.
BrewManNH Posted November 12, 2012 Posted November 12, 2012 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 GudeHow 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
oussito Posted November 12, 2012 Author Posted November 12, 2012 Is there any function that can do that. I realy appreciate your help.
BrewManNH Posted November 12, 2012 Posted November 12, 2012 What part of my answer suggested to you that there might be a way of doing it? Xandy 1 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 GudeHow 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
FireFox Posted November 12, 2012 Posted November 12, 2012 furthermore, question asked a ton of times; oh you didn't searched on the forum before posting...
oussito Posted November 12, 2012 Author Posted November 12, 2012 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?
oussito Posted November 12, 2012 Author Posted November 12, 2012 Of course I searched and I found in a forum that we can do that if the window is in the background, okay?
Developers Jos Posted November 12, 2012 Developers Posted November 12, 2012 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. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Developers Jos Posted November 12, 2012 Developers Posted November 12, 2012 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? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
JohnOne Posted November 12, 2012 Posted November 12, 2012 MinimizedPixelSearch AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Developers Jos Posted November 12, 2012 Developers Posted November 12, 2012 @johnone.. Lets keep this pleasant please. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
oussito Posted November 12, 2012 Author Posted November 12, 2012 @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
Developers Jos Posted November 12, 2012 Developers Posted November 12, 2012 (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 November 12, 2012 by Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past.
Moderators SmOke_N Posted November 12, 2012 Moderators Posted November 12, 2012 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.
magace Posted November 12, 2012 Posted November 12, 2012 install a vm and run the vm in the background!however this answer is better!You can't do it.
Moderators SmOke_N Posted November 12, 2012 Moderators Posted November 12, 2012 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 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.
UEZ Posted November 12, 2012 Posted November 12, 2012 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Moderators SmOke_N Posted November 13, 2012 Moderators Posted November 13, 2012 PrintWindow function may take a screenshot from inactive windows in the background but the colors may be changed also.Br,UEZAre 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.
UEZ Posted November 13, 2012 Posted November 13, 2012 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!¯\_(ツ)_/¯ ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ
Moderators SmOke_N Posted November 13, 2012 Moderators Posted November 13, 2012 (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 November 13, 2012 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.
Recommended Posts