Sign in to follow this  
Followers 0
KenNichols

Word/Notepad SaveAs

4 posts in this topic

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!

Share this post


Link to post
Share on other sites



$NewFile = FileOpen(@DesktopDir & "\KenNichols.txt", 9)
FileWriteLine($NewFile, "AutoIT is chock full of vitamin C!")
FileClose($NewFile)


Other People's Stuff:Andy Flesner's AutoIt v3: Your Quick Guide[topic="34302"]Locodarwin's ExcelCom_UDF[/topic][topic="61090"]MrCreatorR's Opera Library[/topic]

Share this post


Link to post
Share on other sites

FileWrite(@ScriptDir & "\Test.txt", "This is some text to insert.")


[font="Tahoma"]"Tougher than the toughies and smarter than the smarties"[/font]

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