Re: how to use pixelsearch coordinates
"valery_vi" <[email protected]> Thu, 06 Sep 2007 08:21:42 -0000
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
> Remove me form AutoItList Read this page, please: http://help.yahoo.com/l/us/yahoo/groups/original/members/manage/manage-19.html --- In [email protected], Aamir Bashir <azsteelco@...> wrote: > > Dear Sirs, > > who ever is the moderator of this Group kindly Remove me form AutoItList > > Best Regards > > valery_vi <shehrer1@...> wrote: > > Now I'll show how it works for your counter picture > > Your Counter Picture URL is > > http://webstats.web.rcn.net/cgi-bin/Count.cgi?df=speedijim&ft=0&tr=N&dd=C&md=6 > > You have to open this link by IE application and after it's openning > start this script - Show_My_Counter.au3: > > Global $MaxX = 100 > Global $MaxY = 25 > Global $Pix[$MaxX][$MaxY] > Global $X = 7, $Y = 15 > > ClearPix() > > WinActivate( "http://webstats.web.rcn.net/cgi-bin/Count.cgi", "") > $res = ControlClick ( "http://webstats.web.rcn.net/cgi-bin/Count.cgi", > "", 'Internet Explorer_Server1', "left", 1, 12, 16) > $hWndCtrl = ControlGetHandle > ("http://webstats.web.rcn.net/cgi-bin/Count.cgi", "", 'Internet > Explorer_Server1') > > WinActivate($hWndCtrl, "") > if not WinActive ($hWndCtrl, "") then MsgBox(0,'','Can not Activate') > > ;relative coords to the active window > Opt('PixelCoordMode',0) > > for $i = 0 to $MaxX-1 > for $j = 0 to $MaxY-1 > if not PixelGetColor ($X+$i, $Y+$j) then > $Pix[$i][$j] = '_' > else > $Pix[$i][$j] = '8' > endif > next > next > > ShowPix() > exit > > ;================= > func ClearPix() > for $i = 0 to $MaxX-1 > for $j = 0 to $MaxY-1 > $Pix[$i][$j] = '' > next > next > endfunc > > ;================= > func ShowPix() > $res = '' > for $j = 0 to $MaxY-1 > for $i = 0 to $MaxX-1 > $res &= $Pix[$i][$j] > next > $res &= @CrLf > next > MsgBox(0, '', $res) > endfunc > > Check bugs. They can be by message wordwraping of this group. > > This script present work with func PixelGetColor. > PixelSearch can be used in the same manner. > > Valery > > --- In [email protected], "valery_vi" <shehrer1@> wrote: > > > > Start Au3Info.exe and open Summary tab. > > Summary tab has two line apart from others: > > > > >>>> Control <<<<< > > .... > > ControlClick Coords: x,y > > > > It is coordinate mouse pointer relative to control window. > > > > and > > > > >>>> Mouse <<<<< > > .... > > Position: mx, my > > > > It is coordinate mouse pointer relative to screen. > > > > Thus, you can get relative and absolute coordinates of any controls > > and mouse poiner. > > > > Your case is html page, so you can search pixel in Rectangle (mx, my, > > mx+100, my+30) if you know mx, my values. > > > > Valery > > > > > > --- In [email protected], "Jim Mihalski" <speedi@> wrote: > > > > > > I might be thick, but it is not clear to me.. > > > > > > How about this to illustrate the coordinates. > > > > > > Go to my racquetball web page: > > > http://6amplayers.com > > > > > > now what would the pixel search coordinates be for the "Visitors" > > counter > > > box on the lower right??? > > > > > > Thanks for your patience! > > > > > > Best Regards! Jim A.K.A. "Speedi" Allentown, PA > > > -------------------------------------------- > > > I am not as fast as I once was, but > > > I'm as fast as I'll ever be again! > > > -------------------------------------------- > > > > > > > > > _____ > > > > > > From: [email protected] > [mailto:[email protected]] On > > > Behalf Of valery_vi > > > Sent: Wednesday, September 05, 2007 9:17 AM > > > To: [email protected] > > > Subject: [AutoIt] Re: how to use pixelsearch coordinates > > > > > > > > > > > > left coordinate of RECTANGLE! > > > > > > The search is scanning this RECTANGLE (left, top, right, bottom) > > > left-to-right, top-to-bottom and > > > returs first match is returned > > > > > > --- In AutoItList@yahoogro <mailto:AutoItList%40yahoogroups.com> > > ups.com, > > > "mihalski" <speedi@> wrote: > > > > > > > > The help file for pixelsearch shows the parameters being: > > > > > > > > left coordinate > > > > top coordinate > > > > right coordinate > > > > bottom coordinate > > > > > > > > are these coordinates the x and y coordinates??? just x or just y > > > > > > > > It is confusing... > > > > > > > > Thanks! Jim > > > > > > > > > > > > > > > > > > > > > > > > > [Non-text portions of this message have been removed] > > > > > > > > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > [Non-text portions of this message have been removed] >