Microsoft Powerpoint Automation Using Comate
Posted: Tue May 31, 2016 5:48 pm
I am trying to get the Hwnd of the current Powerpoint running slideshow window. The documentation describes it as SlideShowWindow.HWND, and I am trying to retrieve it with this code:
but it returns a "Method/property not supported by this object error".
The VB example given by Microsoft is:
I guess the problem is that I am not declaring the SlideShowWindow object, but I dont know its structure (if that is indeed the way to do this).
Help appreciated!
Code: Select all
Declare.i Hwnd
Hwnd = PPTObject\GetIntegerProperty("Presentation\SlideShowWindow\HWND")
The VB example given by Microsoft is:
Code: Select all
'Declaration
ReadOnly Property HWND As Integer
Get
'Usage
Dim instance As SlideShowWindow
Dim value As Integer
value = instance.HWND
Help appreciated!