noobtrum

IE status ,how to make it work!

4 posts in this topic

#1 ·  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!

 

Share this post


Link to post
Share on other sites



#2 ·  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,
 

Share this post


Link to post
Share on other sites

#3 ·  Posted

@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()

:D

Jos


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

#4 ·  Posted

I think he is Vietnamese so I try to explain why to choose the solution that most accurately with my language  :P


Regards,
 

Share this post


Link to post
Share on other sites

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