TroisVerites Posted March 9, 2012 Share Posted March 9, 2012 Hi , I have something I don't understand. When we use 'FindWindow' , GetClientDimensions returns the dimensions of the window or the rectangle client in the window ? Documentation -> "Returns the dimensions of the client window that is currently selected in Width and Height." When I Read the documentation , I thought it was the rectangle client in the window , but when I use 'GetColor' I have the color of the title. In IDE Scar 3.31 , Color Picked: 15062985 at (468, 15) With ACA , I have the rectangle client. And the Point(0,0) is the upper left point in the client rectangle. Perhaps I made something wrong. and generally we want to work in the client rectangle (Microsoft langage ). [sCAR] program New; var Bln:boolean; w,h:integer; Color:integer; begin Bln := FindWindow('Test.txt - Bloc-notes'); if ( Bln ) then begin ActivateClient(); GetClientDimensions(w, h); writeln('w:' + inttoStr(w) + ' h=' + inttoStr(h)); // Color Picked: 15062985 at (468, 15) Color := GetColor(468, 15); writeln('Color:' + inttoStr(Color) ); // Result // w:1143 h=652 // Color:15062985 // >>>>>>>>>>( Active Window Position )<<<<<<<<<< // left: 664 top: 66 width: 1143 height: 652 end; end [/sCAR] Quote Link to comment Share on other sites More sharing options...
opiumhautopium1 Posted March 9, 2012 Share Posted March 9, 2012 if i want to know witch color is at 100x 100y i use get color in aktiv window and it is all of the window u can use movemouse to test movemouse 0,0 wait 1000 movemouse w,h the dimension is not "inside" firefox ie or something else Quote Link to comment Share on other sites More sharing options...
TroisVerites Posted March 9, 2012 Author Share Posted March 9, 2012 Yes , you are right But it would be great if the tool ACA works the same , when you specify a title , and the tool needs to capture all the windows , not just inside the window. Quote Link to comment Share on other sites More sharing options...