Jump to content

Recommended Posts

Posted
#include <IE.au3>
#include <MsgBoxConstants.au3>
local $tra = 8
$url = 'http://nghean.violet.vn/present/list/cat_id/279066/page/' & $tra
Local $oIE = _IECreate($url)
Local $oLinks = _IELinkGetCollection($oIE)
Local $iNumLinks = @extended

Local $sTxt = $iNumLinks & " links found" & @CRLF & @CRLF

Func inan()
for $l = 53 to 90 step + 2

_IELinkClickByIndex($oIE, $l) 

sleep(5500)
$tieude = WinGetTitle("[ACTIVE]")
$tieude = StringLeft($tieude, 32) ; get title of document
ClipPut($tieude)   ; old code not work [CLASS:Edit INSTANCE:1]',"",1148, $tieude) 
mouseclick('left', 906, 557) ; print button in flash player
sleep(900)
mouseclick('left', 347, 406) ; print button (foxit reader printer )
sleep(300)
mouseclick('left', 640, 647) ; name box 
sleep(300)
Send('^{V}') 
sleep(300)
mouseclick('left', 944, 648); save button   Controlclick('[CLASS:Button INSTANCE:2]',"Save",1)
sleep(1500)
MouseClick('left',1066,543) ; close foxit windows


sleep(2000)

Next

EndFunc

while $tra <= 16
   inan()
   $tra = $tra + 1

WEnd

_IEQuit($oIE)

I want to print some document in this site http://nghean.violet.vn/present/list/cat_id/279066/page/8

but it only work on the first time.

I want use Controlclick  but don't know how to do it.

Thanks!

 

Posted

VI: Thầy/Cô ơi, đấy là web yêu cầu đăng nhập trước khi tải hay xem tài liệu.
giải pháp thì chắc vụ này căng đây. Đầu tiên tự động đăng nhập, sau đó tự động kích vì web dùng Flash chắc khó hơn.
Chắc dùng _ImageSearch() chắc dễ hơn _IE().

EN: Try use  _ImageSearch()

Regards,
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...