OT: Scripting Internet Explorer
I'm being cheeky and reposting this as it didn't receive any replies last time, but I find it hard to believe nobody has any ideas on automating IE. If not, I'll find an IE newsgroup. Thanks. = Does anyone know how to script IE to open a web page, save it locally as a .mht file and then repeat that for, say, 100 other pages? The URLs will be almost identical, the only difference being one parameter in the query string. I read an earlier message saying that you could do something like this with Windows Script Host, but I've never played with it. Would that be the right approach? And before someone suggests cfhttp, this is something that (I think) needs to be done client-side, as we specifically want to save 100's of web pages as .mht files (compressed HTML), not as vanilla .html. -- Aidan Whitehall <[EMAIL PROTECTED]> Macromedia ColdFusion Developer Fairbanks Environmental Ltd +44 (0)1695 51775 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: OT: Scripting Internet Explorer
1.script IE to open a web page 2.save locally as .mht 3.repeat I've done 1 and 3and I have an idea on how to do 2. First, you need to have permissions to do this. One way is to sign your javascript/vbscript. The other, easier way is to make your web page an .hta (HTML Application) simply by changing the suffix from .htm. 1. is trvial if you pop up the web page in a separate window. 2. To Save locally, you need permissions, and then you can manipulate the open window by using the SendMessage function in vbscript. This function allows you to simulate keystrokes to ANY window (so if you had a window open to an AS400 terminal you could send keystrokes to that as well). You need to simulate ALT-F for "File", a for "Save As", etc, until you complete the save as mht operation. You may also need to program a manual delay between each keystroke to give IE a chance to process it. 3. 3 is just a loop. For examples of .hta applications, go to msdn.microsoft.com They have about 8 sample .hta applications. --- Aidan Whitehall <[EMAIL PROTECTED]> wrote: > Does anyone know how to script IE to open a web > page, save it locally as > a .mht file and then repeat that for, say, 100 other > pages? The URLs > will be almost identical, the only difference being > one parameter in the > query string. > > I read an earlier message saying that you could do > something like this > with Windows Script Host, but I've never played with > it. Would that be > the right approach? > > And before someone suggests cfhttp, this is > something that (I think) > needs to be done client-side, as we specifically > want to save 100's of > web pages as .mht files (compressed HTML), not as > vanilla .html. > > > Thanks > > -- > Aidan Whitehall <[EMAIL PROTECTED]> > Macromedia ColdFusion Developer > Fairbanks Environmental Ltd +44 (0)1695 51775 > > > ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
OT: Scripting Internet Explorer
Does anyone know how to script IE to open a web page, save it locally as a .mht file and then repeat that for, say, 100 other pages? The URLs will be almost identical, the only difference being one parameter in the query string. I read an earlier message saying that you could do something like this with Windows Script Host, but I've never played with it. Would that be the right approach? And before someone suggests cfhttp, this is something that (I think) needs to be done client-side, as we specifically want to save 100's of web pages as .mht files (compressed HTML), not as vanilla .html. Thanks -- Aidan Whitehall <[EMAIL PROTECTED]> Macromedia ColdFusion Developer Fairbanks Environmental Ltd +44 (0)1695 51775 ~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Get the mailserver that powers this list at http://www.coolfusion.com Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4