I have 1100 pages, each of these pages has a photo, each page has similar links, only the number changes, for example: https://xxxx-xxxx.ru/xxxx/xxxx/1_item.png https: // xxxx- xxxx.ru/xxxx/xxxx/2_item.png , etc. If the program \ site to automatically download these images from each page, wget does not work, I tried it only if I manually go in and download, and it takes a very long time.

  • Free Download Manager should suit you. You can download it here . Specify the path to the folder in which the pictures lie and select the desired one or download the folder completely. Good luck. - WinnerIT

1 answer 1

So, thinking out loud. On the same pages there is a save button. Then this button can be accessed from the keyboard with the Tab button, and this is closer to .js. Here is the keystroke emitation:

//https://subscribe.ru/archive/comp.soft.win.faqmsdos/200902/16044800.html WshShell=WScript.CreateObject("WScript.Shell") theCalculator = WshShell.Exec("calc"); // Запустим калькулятор WScript.Sleep(3000); // Ждем 3 секунды WshShell.AppActivate(theCalculator.ProcessID); // Активируем окно запущенного приложения // WshShell.SendKeys("1{+}2~") // Пошлём 1 + 2 Enter WshShell.SendKeys("1") // Пошлём 1 WScript.Sleep(3000); // Ждем 3 секунды WshShell.SendKeys("{+}") // Пошлём + WScript.Sleep(3000); // Ждем 3 секунды WshShell.SendKeys("2") // Пошлём 2 WScript.Sleep(3000); // Ждем 3 секунды WshShell.SendKeys("~") // Пошлём Enter 

Here is the .js to open (possibly several) URLs:

 var navOpenInNewWindow = 0x1; var navOpenInNewTab = 0x800; var navOpenInBackgroundTab = 0x1000; var intLoop = 0; var intArrUBound = 0; var navFlags = navOpenInBackgroundTab; var arrstrUrl = new Array(3); var objIE; intArrUBound = arrstrUrl.length; arrstrUrl[0] = "http://bing.com/"; arrstrUrl[1] = "http://google.com/"; arrstrUrl[2] = "http://msn.com/"; arrstrUrl[3] = "http://yahoo.com/"; objIE = new ActiveXObject("InternetExplorer.Application"); objIE.Navigate2(arrstrUrl[0]); for (intLoop=1;intLoop<=intArrUBound;intLoop++) { objIE.Navigate2(arrstrUrl[intLoop], navFlags); } objIE.Visible = true; objIE = null; //Как открыть ie с помощью .js файла? 

You can try to put it all together, and to launch this .js file write .bat c

 for /I 

something numeric parameter.