Powerpoint between desktop and laptop

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
rwellentrialex
Posts: 6
Joined: 15 Mar 2018, 11:22

Powerpoint between desktop and laptop

21 Mar 2018, 14:56

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?
gregster
Posts: 9012
Joined: 30 Sep 2013, 06:48

Re: Powerpoint between desktop and laptop

21 Mar 2018, 15:16

I don't know but isolating the problem might help. Does the error occur already if the script contains only

Code: Select all

PPT := ComObjActive("PowerPoint.Application")
(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?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Chunjee, inseption86, jaka1 and 345 guests