Thanks Darren

This is for what will probably be a one-off task, so probably not worth the effort. At the moment I am (i) putting the folder in the clipboard and (ii) creating an empty file with the desired name and extension.  The user copies from the clipboard to get to the correct foldsr and then clicks on the already created filename.  Only two problems (i) the user still has to select "Webpage, complete" and (ii) click OK on an overwrite warning message).

The "user" is me (I don't envisage anybody else using what I am doing)

Paul

On 30/05/2022 13:32, Darren wrote:
Most things are achievable.

If no provision through the API then use windows api find window, controls on 
that form (hwnd), send messages to get desired results etc. etc.

A bit of work but it'll work fine.   E.g. Had a look at the Firefox "Save As" 
dialogue just now and everything is accessible and exposed.

It'd be simply a matter of setting text in an Edit control and a ComboBox and 
Clicking on a Button. All done with messages.

-----Original Message-----
From: ProfoxTech [mailto:profoxtech-boun...@leafe.com] On Behalf Of Paul Newton
Sent: Monday, 30 May 2022 3:12 AM
To:profoxt...@leafe.com
Subject: Sava as from IE application object or Web Browser control

Hi all

I want to programmatically save the current web page (which was loaded
from an MHTML file):

I want to specify the name and location for the file to be saved and be
able to specify "Save as Webpage, complete".  Having Google researched,
I do not believe this is possible.  Can anybody prove me wrong?

The only approach I can think of is ExecWB(4,n) where n is 0, 1 or 2.
If it cannot be done without user interaction, I would like that
interaction to be as minimal as possible (e.g. putting the folder
location in the clipboard so that the user can at least paste it into
the save as dialog would help, as would being able to at least specify
the file name).  I can't find a way for the SaveAs dialog to default to
Webpage, complete.

Many thanks

Paul Newton

--- StripMime Report -- processed MIME parts ---
multipart/alternative
   text/plain (text body -- kept)
   text/html
---

[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: https://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: https://leafe.com/archives
This message: 
https://leafe.com/archives/byMID/8d6167b6-7951-8a84-86e6-a1c936507...@gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to