I use Autoit 3..3.6.0 on Windows 7 64 bit machine with office 2010 32 bit. script : #include <Word.au3> $oWordApp = _WordCreate (@DesktopDir & "Test.doc") $oDoc = _WordDocGetCollection ($oWordApp, 0) $oDoc.Range.insertAfter ("This is some text to insert.") ;_WordQuit ($oWordApp, -1) Error what i am getting: I tried ruing the script with doc also still i am getting error --> Word.au3 Error from function _WordDocGetCollection, $_WordStatus_InvalidObjectType C:Usersq04933DesktopAutoItMultitask.au3 (4) : ==> Variable must be of type "Object".: $oDoc.Range.insertAfter ("This is some text to insert.") $oDoc^ ERROR
Hi All,
I am new to AutoIT. I just want to create a new word document. But _WordCreate function is not working.
#include <Word.au3>
$oWordApp = _WordCreate (@ScriptDir & "\Test.docx")
After running above lines i am getting error like "Word.au3 Error from function _WordDocOpen, $_WordStatus_InvalidObjectType"
Does anyone has any idea?????
Thanks a lot JLogan3o13 . How i will pull all information like sleep time, Lid action, power button action and hibernet option using this registry key?
Thanks a lot for your answer. But I want to pull the information about Hibernet time, Power button action, Lid close action. I want to pull this value from machine using any command line or registry. Does someone has any idea.....? BrewMan i tried powercfg -getactivescheme but its not helpful for me...................Do you know some other option Thanks in advance..................
Hi All,
I am new in Auto Script. I am trying to get powrsetting from a mchine through script. I have diffrent model of laptop and desktop form which i just want to pull power settings.
I tried pwercfg command line, but i don't know how to get curent user setting using this command and display in msgbox.
does someone has any idea.Thanks in advance
HI All,
I am trying to create a xml file using function _XMLCreateFile($strPath, $strRoot, $bOverwrite = False, $bUTF8 = False, $ver = -1).but it's not working. Could anyone can help me i am using the _xmldomwrapper.h file.