Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Main.OnUnload event

Got a good idea? You can suggest new features here.
Post Reply
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Main.OnUnload event

Post by WharfRat »

Can we get a new event that fires when a configuration file is unloaded, something that is the mirror image of Main.OnInit ?

Motivation: I need to broadcast an event over the LAN when the configuration is closed, so that the other computers know that they should not use Network Event Sender or Broadcaster etc. to send events to this computer.

I already trap Main.OnClose for when EventGhost closes, but that does not help when changing XML configuration files.

The name of it is not important, Main.OnQuit or whatever, but the purpose would be useful.
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
User avatar
WharfRat
Experienced User
Posts: 159
Joined: Wed Dec 25, 2013 11:56 am

Re: Main.OnUnload event

Post by WharfRat »

Here is another situation I just ran into where it is needed.

I have added a recurring task to eg.Scheduler.

If I close the configuration and then reopen it later, the callback function gets called twice.
(And the callback function gets called more often the more times I reopen the configuration tree)
EventGhost 0.4.1.r1640
PHX01RN plugin v3.0.1
Windows XP 32bit (v5.1 Build 2600 Service Pack 2)
Windows7 64bit (v6.1 Build 7601 Service Pack 1)
Post Reply