Jump to content

Recommended Posts

Posted

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!
Posted

$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]

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
×
×
  • Create New...