I think that concept would work. But the last handle would need to be stored as a global variable instead of a local variable. Since global variables retain their values between function calls, you would need to be careful to make sure the value is initialized and reset properly in all situations. Don Marang ----- Original Message ----- From: "Rui Fontes" <rui.fontes@xxxxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Saturday, January 31, 2009 11:36 AM Subject: [jawsscripts] Comparing Handles > Hi, > > Trying to scripting a app that calls AutoStartEvent 4 times when it is > launched and twice when receives focus... > > How can I determine if it is necessary to do something or not? My > suggestion > is to get the window handle and compaire it with the last handle stored... > > But, how can I make something like: > If (hActualHandle == hLastHandle) Then > > Rui > > > -- > Estou utilizando a versão gratuita de SPAMfighter para usuários privados. > Foi removido 58937 emails de spam até hoje. > Os usuários pagantes não têm esta mensagem nos seus emails. > Adquira SPAMfighter grátis aqui: http://www.spamfighter.com/lpt > > > __________ > Visit and contribute to The JAWS Script Repository http://jawsscripts.com > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at //www.freelists.org/list/jawsscripts