Event to recognize manual changes of Measurements by the user
Hi,
is there an event to recognize manual changes of measurements? Subsequently, a program code should be triggered. In detail, this would look as follows. There is only one measurement on the image. The user moves or changes the measurement. This trigger causes program code to be executed.
Thank you very much.
Thank you very much.
Best,
Friedrich
0
Answers
-
Hi Friedrich,
You can also use an Interactive command to prompt user to adjust something and then click Ok, after which you can do something. Here is a sample code:Public Function ShowInteractionAndMeasure() As SimpleScript ShowInteractionAndMeasure = New SimpleScript Dim doc1 With Application.DocumentCommands.Active(ShowInteractionAndMeasure) .Run(doc1) End With With Automate.ScriptingCommands.Interaction(ShowInteractionAndMeasure) .Prompt = "Please adjust the measurement and click Ok." .Interactive = True .Run(doc1, doc1) End With With Automate.ScriptingCommands.CodeCommand(ShowInteractionAndMeasure) If .Run() Then ' User Code Here MsgBox("Remeasure something...") End If End With End Function
Yuri0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions