Jump to content

Recommended Posts

Posted

I'm using an iteration of spell check from

My issue is Word randomly launches a bunch of windows out of nowhere with Autorecovery in compatibility mode of some of the spell checks I've run. This happens both when I'm using and not using the app. Odd thing is it isn't all the spell checks I've run, and there is no timing or reason behind this happening. Is there a way to disable the autorecovery in the script?

Posted

Yeah I found that, and also figured that may have something to do with it. But I would prefer to keep that enabled and maybe turn in on/off when the app is active. If that's not possible now I'm wondering if that's a registry setting that I can access.

Posted

I....think....I figured out how to do this through autoit, but I have a couple questions since I can't find out right away if it works since the issue pops up randomly.

The way it seems like I have to do this is call the autosave feature after creating the word object like:

Global $oWordApp = _Word_Create(False)
Global $oDoc = _Word_DocAdd ( $oWordApp )
$AutoSv = $oWordApp.ActiveDocument.AutoSaveOn = False
MsgBox(0,0, $AutoSv)
Exit

What I'm not understanding is

1/ When I set the AutoSaveOn to "False" the msgbox displays "True". Which to me says that the AutoSave is on. 

2/ When I turn it off (True and False), in Word it shows that the checkbox is still checked. Do objects work on Word as a whole, or only on the instance that is created while it's created so I wont see changes reflected if I were to look in Word settings?

Posted (edited)
10 hours ago, Champak said:

1/ When I set the AutoSaveOn to "False" the msgbox displays "True". Which to me says that the AutoSave is on.

No. It means AutoSave is off because $AutoSv will contain the evaluation of the expression $oWordApp.ActiveDocument.AutoSaveOn = False which is true. Why don't you do this to convince yourself?

MsgBox(0, '', $oWordApp.ActiveDocument.AutoSaveOn)

 

10 hours ago, Champak said:

Do objects work on Word as a whole, or only on the instance that is created

Instance.

Edited by Andreik
  • 3 weeks later...
  • 4 weeks later...

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
  • Recently Browsing   0 members

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