Home Image-Pro Automation (Macros, Apps, Reports)

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

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

  • 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


  • 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,

    Yuri
Sign In or Register to comment.