Thanks tom. Just wha I needed. Sean. -----Original Message----- From: Tom Kingston [mailto:[EMAIL PROTECTED] Sent: 03 August 2008 14:32 To: [email protected] Subject: Re: Client.OnShutdown query
Virtually every script should be using this event to disconnect events if nothing else. The sub can be anything you want because it's named in the ConnectEvent call as follows. Let's say you have two events connected. Here's how it would look. Dim winEvents(1) ' Note: arrays are 0 indexed. winEvents(0) = ConnectEvent(ClientInformation.Overlap, "OnChildFocus", "ProcessOnChildFocus") winEvents(1) = ConnectEvent(ClientInformation, "OnShutDown", "ProcessOnShutdown") Sub ProcessOnChildFocus(windowObject) ' React to OnChildFocus events End Sub Sub ProcessOnShutdown() ' Disconnect events and any other cleanup procedures required. End Sub Hth, Tom ----- Original Message ----- From: "Sean Farrow" <[EMAIL PROTECTED]> Hi: Are there currently any scripts using the onshutdown event. I carn't seem to get it to work. Should I be using Sub ClientInformation.OnShutdown() Or sub OnShutdown() Do I need to connect to this event as per normal? Cheers Sean. -----Original Message----- From: Aaron Smith [mailto:[EMAIL PROTECTED] Sent: 02 August 2008 15:14 To: [email protected] Subject: Re: Client.OnShutdown query Sean, OnShutdown is only fired when the application that launched the script is closing, or the case of a global script, when Window-Eyes is closing. Aaron Sean Farrow wrote: > Hi: > When is the client.OnShutdown event called, I understand this is called > when an application closes, is it also called when an application loses > focus? > Cheers > Sean. > Sean > > > __________ Information from ESET NOD32 Antivirus, version of virus > signature database 3318 (20080801) __________ > > The message was checked by ESET NOD32 Antivirus. > > http://www.eset.com > > -- To insure that you receive proper support, please include all past correspondence (where applicable), and any relevant information pertinent to your situation when submitting a problem report to the GW Micro Technical Support Team. Aaron Smith GW Micro Phone: 260/489-3671 Fax: 260/489-2608 WWW: http://www.gwmicro.com FTP: ftp://ftp.gwmicro.com Technical Support & Web Development __________ Information from ESET NOD32 Antivirus, version of virus signature database 3318 (20080801) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 3321 (20080803) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 3321 (20080803) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 3322 (20080803) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 3322 (20080803) __________ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
