I would like to get the image of a snapshot when when it has been created.
What I'm doing at the moment...
To detect if a snapshot has been created I look at the mouse notifications:
Code: Select all
Case "Notifications.Mouse"
TryGetProperty("Notifications.Mouse.msg", e.dataOut, 0)
If ((e.dataOut IsNot Nothing) AndAlso (e.dataOut = "514")) Then ' Left Mouse Button Up
TryGetProperty("Notifications.Mouse.TargetName", e.dataOut, 0)
If ((e.dataOut IsNot Nothing) AndAlso (e.dataOut = "Pages")) Then ' Click on the PDF Page
TryGetProperty("Tools.Active", e.dataOut, 0)
If ((e.dataOut IsNot Nothing) AndAlso (e.dataOut = "32614")) Then ' Snapshot Tool Active
RaiseEvent SnapshotCreated()
End If
End If
End If
Then I call "DoEvents" to let the PDF viewer finish it's work, and then try to get the image from the clipboard.
But, at the moment this will always return me the previous snapshot, not the new snapshot.
Any ideas?
Is there a better way to approach this?
Thanks in advance
Wolfgang