Help needed! Call external app OnPageLoad() in plugin (1 Viewer)

pünktchen

Portal Pro
October 26, 2010
537
201
Home Country
Germany Germany
I want to do something like this:
Code:
Protected Overrides Sub OnPageLoad()
            MyBase.OnPageLoad()
            System.Diagnostics.ProcessStart("'RELATIVE PATH TO PLUGINS DIRECTORY'\application.exe")
            GUIWindowManager.NeedRefresh()
Is this possible? How about the relative path?

Thanks in advance.
 

pünktchen

Portal Pro
October 26, 2010
537
201
Home Country
Germany Germany
I've found it out myself. So simple!
Relative path is just "plugins\Windows\application.exe"...
 

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    To take performance / user experience into account you shouldn't be doing anything have processing (like creating new processe(s)) in any of the plugin init functions. Instead you should delegate the work to a worker thread and run such stuff asynchronously.
     

    pünktchen

    Portal Pro
    October 26, 2010
    537
    201
    Home Country
    Germany Germany
    Instead you should delegate the work to a worker thread and run such stuff asynchronously.
    Thanks for answering, but i don't understand a single word of it:confused:
    It's only a little AutoIt-script that is killed OnGuiDestroy()
    I'm a total newbie in VB.net, so don't know how to do it there...
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    He means that you should Run your app in separate thread to prevent GUI freezing I think.
     

    Users who are viewing this thread

    Top Bottom