Jump to content

how to save a file automatic

Recommended Posts

hi guys i have a pageweb , (back login and pass)  after login i can call a link for download a file .  xls  but is generate on the fly 

"https://www.xxxxxxxxxxxxxxxx.it/portal/download/extractFile.do?id=53109,  ical them with  this part of code 

_IENavigate($oIE, "https://www.xxxxxxxxxxxxxxx.it/portal/download/extractFile.do?id=53109")
    _IELoadWait($oIE, $iGTimeToCeck, $iGTimeOut)

but return me a window  for open save or save as is possible automate a save as and hide this ? (hide is not much important but is possible is much better)

i try  this  code  but nothing 

Func AutoCancel()
    Local $hIE = WinGetHandle("[Class:IEFrame]")

    Local $hCtrl = ControlGetHandle($hIE, "", "[CLASS:DirectUIHWND]")
    If WinExists($hIE,"") Then
        ;ControlSend($hIE ,"",$hCtrl,"{F6}")          ; Gives focus to Open Button
        ControlSend($hIE ,"",$hCtrl,"{TAB}")          ; Gives focus to Save Button
        ControlSend($hIE ,"",$hCtrl,"{enter}")        ; Submit whatever control has focus
EndFunc   ;==>AutoCancel

not work, anyone can help me ?

Edited by faustf
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
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...