Sign in to follow this  
Followers 0
chenxu

_IEPropertySet ($oIE, "contenteditable", True)

4 posts in this topic

I use the following script to make a web page editable, and I can add or remove some characters,

_IEPropertySet ($oIE, "contenteditable", True)

and, my question is how to save the page I just edited to a local copy in my harddisk?

Share this post


Link to post
Share on other sites



I haven't used this but you can simply save it from File => Save page as ... on your browser


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

I use the following script to make a web page editable, and I can add or remove some characters,

_IEPropertySet ($oIE, "contenteditable", True)

and, my question is how to save the page I just edited to a local copy in my harddisk?

Use

$sHTML = _IEBodyReadHTML($oIE)

FileWrite("C:\Output.htm", $sHTML)

You can also use _IEDocReadHTML -- see the helpfile.

Dale

Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Share this post


Link to post
Share on other sites

I haven't used this but you can simply save it from File => Save page as ... on your browser

I'd like to use _IECreateembbed(), and there is no Save page as...

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0