Page 1 of 1

Download a file

Posted: Fri Oct 04, 2019 3:47 am
by greyfulton
Hello,

I would like to know if your software can download a file in a website and save it in a specific folder in a computer automatically?

Thank you very much.

Re: Download a file

Posted: Fri Oct 04, 2019 4:28 am
by support
Hi.

Yes, our program allows you to download files and save them on your computer. If you wish, you can sort the folder and move the text content in databases and other files.

You can make multiple file downloads at the same time.

Example for the Human Emulator Studio:

Code: Select all

// 1 
echo "1. don't show download dialog: ";
echo $browser->enable_download_file_dialog(false)."
";

// 2 
echo "2. Set the default download path: ";
echo $browser->set_default_download("test\")."
";

// 3
echo "3. download file: ";
echo $browser->navigate("https://humanemulator.info//HumanEmulatorDemo.exe")."
";

// 4
echo "4. get last download id : ";
$idd = $browser->get_last_download_id();
echo $idd."
";

// 5
echo "5. Output information about the download process : ";
while (!$browser->is_download_complete($idd))
{
    echo $browser->get_download_info($idd)."<hr>";
    sleep(1);
}