Jump to content

CMD - How to go url then wait to save-as dialog and then gives file name and save ?


taly88
 Share

Recommended Posts

Hello   nice   friends,

im   try   alot   of   things   but   any   thing   not   work...

 

  i   need   bat   file   (cmd)

for   go   some   URL   ,       Then wait to save-as dialog show and then gives file name with "xXx -[current-time].csv" the - save it.

 

please   help   me

thank-you-very-much!

Taly.

 

Link to comment
Share on other sites

Something like this.

 

But, you will need to use the AutoIT Window Info tool to figure out the Window and controls to enter

$iPID = ShellExecute("www.yahoo.com")

;Use AutoIT Window Info tool to get the Save-As file name input box
If WinWait("Save As", "", 90) Then
    ControlSetText("Save As", "", "FileNameEditBoXControlName", "xXx-" & @HOUR & @MIN & @SEC & @MSEC & ".csv")
    ControlClick("Save As", "", "OKbuttonName")
    
Else
    MsgBox(0, "Error", "The Save-As window did not appear within 90 seconds")
EndIf

 

Link to comment
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
 Share

  • Recently Browsing   0 members

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