Here is the code:
Code: Select all
WinClose, ahk_class AcrobatSDIWindow
Sleep, 1000
WinClose, ahk_class AcrobatSDIWindow
SetWorkingDir, C:\
FormatTime, MyFile,, 'MTR_'MM''dd''yy'.pdf'
RunWait % "curl.exe -v -o c:\scripts\%MyFile% ftp://ftp.themonitor.com/lobby/%MyFile% --user username:password"
Sleep, 20000
Run, c:\scripts\%MyFile%
Sleep, 20000
Send ^l
Sleep, 20000
Send ^2
Pause
But I get the error here when running? It looks like it's outputting the name correctly but the file is not being downloaded even though it is there and named exactly like the script seems to show.
any ideas please?