IPMacroStop
Hi which is the equivalent command of IPMacroStop command?
I need to stop the macro execution to manually set parameters (eg Threshold) and restart it.
Thank you
Maurizio
I need to stop the macro execution to manually set parameters (eg Threshold) and restart it.
Thank you
Maurizio
0
Answers
-
Hi Maurizio,
Please check this solution: http://forums.mediacy.com/discussion/comment/659/#Comment_659
It shows how to prompt user for thresholding.
In general any command can be made interactive by activating the Interactive property.
Let me know if it will work for you,
Regards,
Yuri
0 -
Thank you Yuri for your prompt replay.
I was looking at a more generic function to stop a macro with two choises (eg ret= IpMacroStop ("Question?", MS_MODAL+MS_YESNO+ MS_QUEST)").
I need to take decision according to the ret value.
I would extend my question to cover also the IPP get user input function (eg IpStGetInt(var, j, 1, 1, 50)). is there any thing similar?
Ciao
Maurizio
0 -
Hi Maurizio,
You can use standard VB functions for that - MsgBox or InputBox.
Here is the example:Public Sub MessageTest If MsgBox("Do you want to continue?",vbYesNo Or vbInformation,"Test message")=vbYes Then Debug.Print "Yes" Else Debug.Print "No" End If Dim thr As Double=CDbl(InputBox("Threshold value","Enter value","100")) Debug.Print thr.ToString End Sub
Regards,
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