Jump to content
Sign in to follow this  
faustf

how to save a file automatic

Recommended Posts

faustf
Posted (edited)

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]")
    ConsoleWrite($hCtrl)
    ;#cs
    If WinExists($hIE,"") Then
        WinActivate($hIE,"")
        ;ControlSend($hIE ,"",$hCtrl,"{F6}")          ; Gives focus to Open Button
        ;Sleep(500)
        ControlSend($hIE ,"",$hCtrl,"{TAB}")          ; Gives focus to Save Button
        Sleep(500)
        ControlSend($hIE ,"",$hCtrl,"{enter}")        ; Submit whatever control has focus
    EndIf
    ;#ce
EndFunc   ;==>AutoCancel

not work, anyone can help me ?

Edited by faustf

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
Sign in to follow this  

×