Garicup Posted March 4, 2009 Share Posted March 4, 2009 (edited) Hello, I wrote a script for a game that functions perfectly with mouse clicks. I now changed everything to function with control click so I can minimize the window while the script runs. The clicking and functionality remained except for finding pixels on the game. In the original, I used Pixel Search to search coordinates on the screen for certain colors, but now that the screen is not exactly visible, it isn't detecting the colors at all. I would like to know if its possible to use pixel search on a minimized window or is there another way to search a specific coordinate on minimized window for specific pixels? Edited March 4, 2009 by Garicup LePucco and AutoBert 1 1 Link to comment Share on other sites More sharing options...
Aceguy Posted March 4, 2009 Share Posted March 4, 2009 quick answer, no. pixelsearch on minimised window is not possible [u]My Projects.[/u]Launcher - not just for games & Apps (Mp3's & Network Files)Mp3 File RenamerMy File Backup UtilityFFXI - Realtime to Vana time Clock Link to comment Share on other sites More sharing options...
Garicup Posted March 4, 2009 Author Share Posted March 4, 2009 I see the pixel search takes an extended parameter that allows you to specify the window you want the search conducted on. Could that be used in anyway? Or is there anything at all I can do about this? other than the pixelsearch? Link to comment Share on other sites More sharing options...
Garicup Posted March 4, 2009 Author Share Posted March 4, 2009 (edited) Example of what I have -- No idea why it doesnt work. $test = WinGetHandle ("Google - Mozilla Firefox") ConsoleWrite($test & @CRLF);this was just to test that it actually got the handle PixelSearch(200, 400, 400, 600, 0xA0C0C0, 0, 1, $test) If Not @error Then ControlClick("Google - Mozilla Firefox", "", "[CLASS:MozillaWindowClass; INSTANCE:5]", "left", 1, 300, 500) Sleep(2000) EndIf I figured this should still search the coordinates on the given screen even if it was minimized because of the specification of the window to search. I know it might be a false assumption, can someone help? Also I know the problem isnt in the control click, it clicks when ran by itself with no preceding search. Edited March 4, 2009 by Garicup Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted March 4, 2009 Moderators Share Posted March 4, 2009 1. Your example above, be sure when using the window handle that you are using Client Coordinates and not window or screen coordinates.You also may want to take a look at this:http://www.autoitscript.com/forum/index.ph...mp;hl=minimized 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. Link to comment Share on other sites More sharing options...
FireFox Posted March 4, 2009 Share Posted March 4, 2009 @SmOke_Nyou should add that he has to search on forum before post anytopic, in the way it has been asked many, many times... Cheers, FireFox. Link to comment Share on other sites More sharing options...
Garicup Posted March 5, 2009 Author Share Posted March 5, 2009 Thanks Smoke. I was using client coordinates. To Firefox, I actually did search and for a bit too...I gave up and got tired of reading irrelevant post. Thanks anyways, and sorry for re-asking an already answered question. LePucco 1 Link to comment Share on other sites More sharing options...
LePucco Posted September 3, 2018 Share Posted September 3, 2018 On 3/4/2009 at 8:13 PM, Garicup said: Thanks Smoke. I was using client coordinates. To Firefox, I actually did search and for a bit too...I gave up and got tired of reading irrelevant post. Thanks anyways, and sorry for re-asking an already answered question. Did you actually found a solution? I am struggling with the exact same. It works perfectly by itself when window is on top, but if I put something on top or minimize it it will "pause" the script until the window is back up. Link to comment Share on other sites More sharing options...
Moderators Melba23 Posted September 3, 2018 Moderators Share Posted September 3, 2018 LePucco, I told you yesterday what to do rather than necro-post - and yet here you are doing it again. And as the person you quote has not been active for the past 9 years I doubt you will get a reply anyway. Consider yourself on a final warning - another transgression will see you sanctioned. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Link to comment Share on other sites More sharing options...
Recommended Posts