Download a file

Ask questions here, report about problems.
Post Reply
greyfulton
Posts: 1
Joined: Mon Sep 30, 2019 7:47 pm

Download a file

Post by greyfulton » Fri Oct 04, 2019 3:47 am

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.

User avatar
support
Site Admin
Posts: 210
Joined: Fri Feb 22, 2019 3:42 pm

Re: Download a file

Post by support » Fri Oct 04, 2019 4:28 am

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);
}


Post Reply