Author Topic: Using event on EA start up  (Read 825 times)

tzafrir

  • EA User
  • **
  • Posts: 105
  • Karma: +0/-0
    • View Profile
Using event on EA start up
« on: August 15, 2017, 02:48:07 pm »
Hi,

I need to run some logic when EA starts up.
Is there event that jumps up and I can catch when EA starts
(besides EA_Connect(EA.Repository repository) which has almost no information on repository obj)

Thanks,
Tzafrir

Uffe

  • EA Practitioner
  • ***
  • Posts: 1274
  • Karma: +93/-8
  • Flutes: 1; Clarinets: 1; Saxes: 5 and counting
    • View Profile
Re: Using event on EA start up
« Reply #1 on: August 15, 2017, 06:41:21 pm »
Hi Tzafrir,

EA_Connect() is fired when EA starts. I'm not sure why they bother passing a Repository there because there may not be one -- for instance, if you just start EA on its own as opposed to launching an .EAP file.

From your question it sounds like you need to run your code not when EA starts, but when it connects to a repository. If that's the case, EA_FileNew(), EA_FileOpen() and EA_OnPostInitialized() may better suit your needs. The last one is probably your best bet.


/Uffe
My theories are always correct, just apply them to the right reality.