home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD1.iso / Editor / DVD!FX17.LHA / FrexxEd / fpl / KillNotify.FPL < prev    next >
Encoding:
Text File  |  1995-02-20  |  397 b   |  14 lines

  1. int export KilledNotify_hook(int ID)
  2. {
  3.   string port = ReadInfo("_notifyport", ID);
  4.   if(strlen(port)) {
  5.     ARexxSend(port, "!"); /* just send anything, don't wait for reply! */
  6.   }
  7.   if (ReadInfo("_iconify_when_quit"))
  8.     Iconify();
  9. }
  10.  
  11. ConstructInfo("_notifyport", "", "", "HLS", "", 0, 0);
  12. ConstructInfo("_iconify_when_quit", "", "", "HLB", "", 0, 0);
  13. Hook("BufferKill", "KilledNotify_hook");
  14.