I've setup several shortcuts in AHK for powerpoint on my desktop. They look like this
^t::
PPT := ComObjActive("PowerPoint.Application")
PPT.CommandBars.ExecuteMso("TextBoxInsert")
return
They work fine with no issues. I tried moving the script over to a laptop and suddenly they don't work. I keep getting an "invalid class string." I haven't altered them in anyway and both machines are using powerpoint 2016. Does anyone have experience with this?
Powerpoint between desktop and laptop
-
- Posts: 6
- Joined: 15 Mar 2018, 11:22
Re: Powerpoint between desktop and laptop
I don't know but isolating the problem might help. Does the error occur already if the script contains only
(then you could perhaps try https://autohotkey.com/boards/viewtopic.php?f=6&t=45822 instead) or when you are trying to access the commandbar after that?
Code: Select all
PPT := ComObjActive("PowerPoint.Application")
Who is online
Users browsing this forum: Chunjee, inseption86, jaka1 and 345 guests