'How to Automatically Click Save on a Save As Dialog Box?

I Have a Download Button or a link when your click on it, it shows a Save As Dialog box to save the file my question is, is there anyway to atomically click save on that button, so when the user clicks it, it saves to their hard Drive?



Solution 1:[1]

Assuming you're talking about a page viewed in a web browser, no - there's no way to automatically click the "Save" button for the user.

Allowing a webpage to arbitrarily save files to the user's hard drive with no user interaction would be a huge security problem.


That being said, there are ways to encourage the browser to open/view the file directly instead of asking the user to save it, as well as options for a page to save some data locally in local storage.

Solution 2:[2]

Fortunately, there isn't a way - security reasons.

Solution 3:[3]

by using macros like macro scheduler one can automate the process.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Community
Solution 2 Daniel Kmak
Solution 3 Vivek Karumudi