Jump to content

enggniteshgarg

Members
  • Posts

    8
  • Joined

  • Last visited

enggniteshgarg's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. Thanks a lot Water...............I am not getting any error after compiling the script for 32 bit..............
  2. 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
  3. 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?????
  4. 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?
  5. Hi ken82m, I want to pull the sleep time value and power button action using registry. Is it possible? Do you have any idea?
  6. 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..................
  7. 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
  8. 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.
×
×
  • Create New...