noobtrum Posted August 17, 2017 Share Posted August 17, 2017 expandcollapse popup#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! Link to comment Share on other sites More sharing options...
Trong Posted August 17, 2017 Share Posted August 17, 2017 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, Link to comment Share on other sites More sharing options...
Developers Jos Posted August 17, 2017 Developers Share Posted August 17, 2017 @VIP, don't tell me you need that many characters in your language just to say: 2 hours ago, VIP said: EN: Try use _ImageSearch() Jos SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Trong Posted August 17, 2017 Share Posted August 17, 2017 I think he is Vietnamese so I try to explain why to choose the solution that most accurately with my language Regards, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now