0

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

mX64
  • 388
  • 1
  • 7
  • 24

3 Answers3

3

Since 2013 its possible:

((dynamic)pWindow.View).LaserPointerEnabled = true;
user2029101
  • 116
  • 9
1

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

mX64
  • 388
  • 1
  • 7
  • 24
Mamad RN
  • 690
  • 9
  • 33
1

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.

Steve Rindsberg
  • 3,470
  • 1
  • 16
  • 10
  • ty for answer , but what u refer to do somthing like that ? – mX64 Nov 12 '11 at 14:28
  • Toggling the keys on by code, do you mean? Afraid I don't know. That would be more of a Windows/Mac API question than one specific to PowerPoint, so reposting the questino with different tags might be a good idea. – Steve Rindsberg Nov 12 '11 at 17:13