littlebigman Posted April 2, 2020 Posted April 2, 2020 Hello, I need to perform the following task: 1. Copy the start URL to the clipboard, CTRL+L to put the focus on the URL bar, and paste it 2. Wait a couple of seconds for the page to download 3. CTRL+S to save into a file 4. If counter < 100, increment the URL Au3Info.exe shows this for Chrome with an open page: Whole browser: Title = "My title", Class = "Chrome_WidgetWin_1" Page: Class = "Chrome_RenderWidgetHostHWND" Would someone have some working code I could use as inspiration? Thank you.
faustf Posted April 2, 2020 Posted April 2, 2020 i sugges use explorer is much simple look udf _ie managment sart wit _iecreate create a code and post with code for us is much better give you a help good luck
Subz Posted April 2, 2020 Posted April 2, 2020 (edited) You should be able to use InetGet to download the page, you could use WinWait, or Sleep to wait while the page loaded, this could be done in a loop for example: Global $g_sDownload = @ScriptDir & "\Comics" If Not FileExists($g_sDownload) Then DirCreate($g_sDownload) For $i = 1 To 100 InetGet("https://www.comics.org/feature/" & $i, $g_sDownload & "\Page" & $i & ".html") Next Edited April 3, 2020 by Subz Removed Chrome path (wasn't required).
littlebigman Posted April 6, 2020 Author Posted April 6, 2020 Thanks for the tip. I really have to use a browser, because the catalog app is written in .Net (.aspx) and uses some JavaScript to make a remote call and only update part of the web page. Even the web filter Fiddler doesn't see anything (call to remote port TCP443). I'll give Internet Explorer + IE_Management UDF a try. https://www.autoitscript.com/autoit3/docs/libfunctions/IE Management.htm
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now