Graphics

 View Only
  • 1.  [SDK] Detecting XPression running

    Posted 08-20-2018 16:55
    Hello all,

    I'm currently developing a little service to control the XPression.
    However it is important that the XPression remains available for the user.

    Right now, when I try to initialize the xpEngine, the software will launch XPression if it's not already running. But when that happens, the GUI is not available to the user.

    How can I test if the Xpression is running and only then initialize my connection to the XPression?

    Thank you,
    Kenneth


  • 2.  RE: [SDK] Detecting XPression running

    Posted 08-20-2018 17:14
    Hey Kenneth,


    try xpEngine.Showgui(true)



    #XPression


  • 3.  RE: [SDK] Detecting XPression running

    Posted 08-20-2018 18:00
    Thanks for your reply @bderry, but what if I only want the user to decide whether or not XPression should be running. Maybe the user is closing XPression because he wants to shutdown the PC and I don't want my application to start XPression again...
    #XPression


  • 4.  RE: [SDK] Detecting XPression running

    Posted 08-20-2018 18:08
    Someone else will correct me if i'm wrong but, I believe whenever the xpEngine object is referenced the COM API launches XPression. You could try checking if your engine object is null but, I couldn't say myself without testing first.
    #XPression


  • 5.  RE: [SDK] Detecting XPression running

    Posted 08-20-2018 18:14
    You are correct @bderry, whenever the xpEngine is initialised, it will launch XPression, which is what I'm trying to prevent. Currently I'm checking if the XPression process is running before I start the XPression. But when I launch XPression manually, the application takes over and limits the view of the XPression.

    This is indeed something I could solve with the ShowGUI but I washoping there was some cleaner way.

    Also if XPression crashes, I don't really have any way of telling that it did...
    #XPression


  • 6.  RE: [SDK] Detecting XPression running

    Posted 08-20-2018 20:00