Jump to content

Daylino

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Daylino

  1.   #include <Array.au3> Global $TopLeftX = 0 Global $TopLeftY = 0 Global $BotRightX = 10 Global $BotRightY = 10 Global $Array[$BotRightX - $TopLeftX + 1][$BotRightY - $TopLeftY + 1] For $i = 0 To UBound($Array) - 1     For $j = 0 To UBound($Array, 2) - 1         $Array[$i][$j] = PixelGetColor($TopLeftX + $i, $TopLeftY + $j)     Next Next _ArrayDisplay($Array) Thanks i just found this on the Forums, thats exactly what i needed. With this array i can Do my maths. You can close this. P.S. Dont know why it writes in orange, maybe cause i pasted the Code and messed things up
  2. It is not for Game Automation or something like that. I have read the Rules. I need this for phpmyadmin, i want to automatic import new sql files that i get from my Server every 30mins. To do this, i need to Navigate and click Different links and inputs. I dont want to use Webdriver so please dont suggest that and cant use imagesearch, because its on a virtual machine and imagesearch dont work. The Problem is, the things i need to click are outlined from css, but when i move the mouse to the first found Pixel it dont activate the link or button, because its not registering a hoverevent for the link. I need to move a little bit further into the outlined area to actually register a hover event and can click the link. But i cant do this with a random move from the found point, because the shapes are different and sometimes it would move over the endpoint where i can click. So i thought of getting all pixels in the outlined area and move my mouse to a point near the middle of the area. But to do this, i need all the pixels that are in the area to make my calculations and get a clickable point regardless of the shape. I hope you understand what i mean, if not please ask and i will try to explain further, but i hope you get my point
  3. Hi, im trying to click a random point inside an outlined Area like the one i Attached here. Im thinking of 2 Methods: 1. Scanning from left to right and top to bottom with pixelgetcolour so i get all the Outline coords. Then calculate all points in between min and max found coords for every horizontal line. I think that would be very bad from performance perspektive (it needs to be done quick for my use, optimal in a few ms). 2. Getting the first outline pixel found with pixelsearch and then moving the mouse down, left an right until colour found again. So basically "scanning" the area within the outline with my mouse and writing every coord where colour is not found to an array. But i think that would be very slow too. Some more Information: Outline Colour is not Black, the image attached is only for demonstrating purposes. The shape is not a star, its random everytime but always a closed line. And the outline is exactly 1px, not a fat line like in the image. Am i thinking to complicated here? Or is there maybe a thing like "PixelSearchAll" so i get an array of coords? Please excuse my bad English and thank you for your Help!
×
×
  • Create New...