Jump to content

Word/Notepad SaveAs


Recommended Posts

Is there a way to do this through Notepad?

Send($text) is way to slow and not everyone has MS Word.

CODE
#include <Word.au3>

$oWordApp = _WordCreate("",0,0);<--Not Visible

$oDoc = _WordDocGetCollection ($oWordApp, 0)

$oDoc.Range.Text = "This is some text to insert."

_WordDocSaveAs ($oDoc, @ScriptDir & "\Test.doc")

_WordQuit ($oWordApp)

[topic="21048"]New to AutoIt? Check out AutoIt 1-2-3![/topic] Need to make a GUI? You NEED KODA FormDesigner!
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...