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

App auto close and open

Hi Specialist:
              Please let me indicate the objective. I try to click the button in "Appwebexample" and it can automatically close "Appwebexample" and open "App1" and "App6".

I tried to look for some posts about it and I collected several below. The close and open now works well. But the close manipulation seems not as graceful as the open one. Does someone have new idea about closing? Thank you.

    Public Function Macro1() As SimpleScript
        Macro1 = New SimpleScript

        With Automate.ScriptingCommands.AppGadget(Macro1)
            .AppFile = "Project1>App1.vb"
        End With

    End Function
    Private Sub button1_Click(ByVal sender As System.Object,ByVal e As System.EventArgs) Handles button1.Click
    End Sub

The reference link:


  • 2022-02-15-185209

    StanleyH --

    I have never tried to open APP 1 then open APP 2 and have APP 2 close APP 1 then open APP 3.

    I have a couple of projects where APP 2 will talk to APP 1 and use some of the APP 1 FEATURES.

    Can you provide a bit of information about what your goal is.


    -- Matt

  • Hi Matt:
               Thanks for your reply. At moment, I have a camera live view on the right and app interface on the left. As there is no more room to carry element such as listbox or button in an app, I prepare another app. In order to ensure the live view as the high priority, I tried to close one app and open another one if button triggered. I hope the goal is enough clear. Thank you.   
  • 2022-02-21-113937

    StanleyH --

    Consider using the TABCONTROL in the design of your APP INTERFACE.  That would allow you to have something like a CONFIGURE TAB and an OPERATE TAB so that you can use the APP INTERFACE AREA for multiple purposes.

    I have put a SCREEN CAPTURE from one of the APPS that I have created below.

    This SCREEN CAPTURE was done during DEVELOPMENT and TESTING but I believe it illustrates how you can use the TAB CONTROL to make use of the SCREEN AREA allocated for your APP INTERFACE.

    I hope this information is helpful.

    -- Matt

  • Thanks Matt for your kind information, your app looks very great.
  • 2022-02-22-145346

    StanleyH --

    You are welcome.

    Thank you for the compliment.

    Writing APPS for IMAGE-PRO PLUS and IMAGE-PRO has been a large part of my professional life and my services are available to companies that do not have programmers on their staff.

    Thanks again.

    -- Matt

Sign In or Register to comment.