mX64
mX64

Reputation: 388

turn on laser pointer in powerpoint with add ins

how can i turn my mouse cursor to laser pointer on powerpoint2010 slideshow with an addins . enter image description here by default cursor changes by hloding down Ctrl+LeftMouseKey in SlideShow Mode. but i want change that by add in code, i found a property (PointerType) but it not accept somthing like laserPointer:

Application.Presentations[1].SlideShowWindow.View.PointerType = Microsoft.Office.Interop.PowerPoint.PpSlideShowPointerType.ppSlideShowPointerPen;

or can we do it with dirty way :) like keep Ctrl+LeftMouseKey down by code ? ty

Upvotes: 0

Views: 2247

Answers (3)

user2029101
user2029101

Reputation: 196

Since 2013 its possible:

((dynamic)pWindow.View).LaserPointerEnabled = true;

Upvotes: 3

Mamad RN
Mamad RN

Reputation: 710

There is no way to do these but you can use a windows form with transparent background and do what you want there . :)) you can use cursor property to show what u want

Upvotes: 1

Steve Rindsberg
Steve Rindsberg

Reputation: 3528

Here it's Ctrl + LeftMouseKey that produces the laser pointer, and it's not a toggle the way the other settings are; the laser pointer appears only while Ctrl+LeftMouse are pressed.

There doesn't seem to be anything in the object model relating to this, so other than somehow toggling the Ctrl and LeftMouse to ON via code, I don't think you can do it.

Upvotes: 1

Related Questions