I'm sorry for one more question.
Running from scite it works great.
When I compile it and run the .exe file, I get "autoit error" Line -1:
Error parsing function call
When I click OK on the error message, it seems to run normally...
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: ***@yahoogroups.com [mailto:***@yahoogroups.com] On
Behalf Of valery_vi
Sent: Thursday, September 06, 2007 9:47 AM
To: ***@yahoogroups.com
Subject: [AutoIt] Re: how to use pixelsearch coordinates
Lol.
You want to type form.
It is very easy...
Close your IE window. Check warning window from MS about security to
hide it in future. And start this one.
#include <IE.au3>
$IE = _IECreate()
$URL = "https://investment1
<https://investment1s.ameritrade.com/cgi-bin/apps/LogIn>
s.ameritrade.com/cgi-bin/apps/LogIn"
_IENavigate ($IE, $URL)
Send("+{Tab 2}{Tab 2}")
Send("<Your account>{Tab}<password>{Tab}")
;Here you have to choose a start page
;Send("{Tab}")
;Here you will submit form
;Send("{Enter}")
Now you can replace
<Your account> and <password> to yours and start again.
Try to choose a start page
;Send("{Down}{Tab}")
If Ok then uncomment the last line.
Note: func _IENavigate waits full load of IE page.
Valery
Post by Jim MihalskiValery,
Thanks so much for your help, but I am just not getting it...
Run('"C:\Program Files\Internet Explorer\IEXPLORE.EXE"
"https://investment1
<https://investment1s.ameritrade.com/cgi-bin/apps/LogIn>
s.ameritrade.com/cgi-bin/apps/LogIn"'
Post by Jim Mihalski<https://investment1
<https://investment1s.ameritrade.com/cgi-bin/apps/LogIn>
s.ameritrade.com/cgi-bin/apps/LogIn> , "",
@SW_MAXIMIZE)
Post by Jim MihalskiWinWaitActive("Log on to TD AMERITRADE")
; loop searching a rectangular area for the green color in the
Logon button
Post by Jim Mihalski$i = 0
$coord = PixelSearch(383, 433, 438, 563, 954403, 60, 3)
$1 = $i + 1
WEnd
I am trying to have the script wait until a green login button
appears on
Post by Jim Mihalskithe screen so it can send the login....
Jim
_____
[mailto:***@yahoogro <mailto:AutoItList%40yahoogroups.com> ups.com]
On
Post by Jim MihalskiBehalf Of valery_vi
Sent: Thursday, September 06, 2007 3:15 AM
Subject: [AutoIt] Re: how to use pixelsearch coordinates
Now I'll show how it works for your counter picture
Your Counter Picture URL is
http://webstats.
<http://webstats.
<http://webstats.web.rcn.net/cgi-bin/Count.cgi?df=speedijim&ft=0&tr=N&dd=C&m
Post by Jim Mihalskiweb.rcn.net/cgi-bin/Count.cgi?df=speedijim&ft=0&tr=N&dd=C&m
d=6> 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
Global $MaxX = 100
Global $MaxY = 25
Global $Pix[$MaxX][$MaxY]
Global $X = 7, $Y = 15
ClearPix()
WinActivate( "http://webstats.
<http://webstats. <http://webstats.web.rcn.net/cgi-bin/Count.cgi>
web.rcn.net/cgi-bin/Count.cgi>
Post by Jim Mihalskiweb.rcn.net/cgi-bin/Count.cgi", "")
$res = ControlClick ( "http://webstats.
<http://webstats. <http://webstats.web.rcn.net/cgi-bin/Count.cgi>
web.rcn.net/cgi-bin/Count.cgi>
Post by Jim Mihalskiweb.rcn.net/cgi-bin/Count.cgi",
"", 'Internet Explorer_Server1', "left", 1, 12, 16)
$hWndCtrl = ControlGetHandle
("http://webstats. <http://webstats.
<http://webstats.web.rcn.net/cgi-bin/Count.cgi>
web.rcn.net/cgi-bin/Count.cgi>
Post by Jim Mihalskiweb.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
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
Post by valery_viStart Au3Info.exe and open Summary tab.
....
ControlClick Coords: x,y
It is coordinate mouse pointer relative to control window.
and
....
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
Post by Jim MihalskiI might be thick, but it is not clear to me..
How about this to illustrate the coordinates.
http://6amplayers. <http://6amplayers. <http://6amplayers.com> com>
com
Post by Jim MihalskiPost by valery_viPost by Jim Mihalskinow what would the pixel search coordinates be for the "Visitors"
counter
Post by Jim Mihalskibox 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!
--------------------------------------------
_____
On
Post by valery_viPost by Jim MihalskiBehalf Of valery_vi
Sent: Wednesday, September 05, 2007 9:17 AM
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
ups.com,
Post by Jim MihalskiPost by mihalskileft 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]
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]