Question

Je recherche longuement sur ce sujet et incroyablement il semble y avoir pas de réponse. Quelqu'un sait comment faire?

Était-ce utile?

La solution

La partie du curseur show fait partie de PowerPoint - la partie de déplacement doit provenir d'un appel d'API. Ici, vous allez:

Public Declare Function SetCursorPos Lib "user32.dll" (ByVal X As Long, ByVal Y As Long) As Long
//'USE THIS IF x64: Public Declare PtrSafe Function SetCursorPos Lib "user32.dll" (ByVal X As Long, ByVal Y As Long) As LongPtr
Public Type POINTAPI
    X As Long
    Y As Long
End Type
Sub ShowCursorAndMove()
    Dim currView As SlideShowView
    Set currView = ActivePresentation.SlideShowSettings.Run.View
    currView.PointerType = ppSlideShowPointerArrow
    MoveMouse 400, 300
End Sub
Sub MoveMouse(X As Single, Y As Single)
    Dim pt As POINTAPI
    pt.X = X
    pt.Y = Y
    SetCursorPos pt.X, pt.Y
End Sub
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top