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:
Code: Select all
Declare.i Hwnd
Hwnd = PPTObject\GetIntegerProperty("Presentation\SlideShowWindow\HWND")
but it returns a "Method/property not supported by this object error".
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
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!