how to open new instance of acrobat

0

I'm using windows 10 task view and need to open different instances of excel word and acrobat. I can't seem to get acrobat working. I get error: 0x800401F3 - Invalid class string on the AcroApp := ComObjCreate("AcroExch.App") line. Any suggestions?

^+n::
oWord := ComObjCreate("Word.Application")
oWord.Documents.Add
oWord.Visible := 1
oWord.Activate
xlApp := ComObjCreate("Excel.Application")
xlApp.Visible := true
xlApp.Workbooks.Add()
xlApp := ""
run notepad
run chrome
AcroApp := ComObjCreate("AcroExch.App"); Error when running
AcroApp.Visible := true
AcroApp.Open
return
autohotkey
asked on Stack Overflow Mar 2, 2021 by Hans Moleman

1 Answer

1

While the COM approach seems cool, it seems really unnecessary.
I don't have Acrobat, but a quick Google search tells me they have a command line option to open a new instance, as I suspected (documented here).

So, a quick little run command should do the trick:

Run, % """C:\Path\To\Acrobat.exe"" /n"

Also, maybe this is why your COM approach didn't work?

answered on Stack Overflow Mar 2, 2021 by 0x464e

User contributions licensed under CC BY-SA 3.0