Hello friends, while scripting an application, I found that this application uses other addins or plugins. we shall call main app for the main app, and addin app for the one that changes the interface. so I scripted one of them, And created my version of focus changed event function that should switch to the addin when required, and in that addin app.jss, I created another version of the same function, which switches back to the Main app when owning app name is detected. so, now the problem is: this function switches to the addin app, and when the point comes for which that addin app is told to switch back to the main app, it switches for sure, but the main app function changes back even only one condition is true, the real name of the window. so you please suggest me how to correct this problem. ;Main app function. Void Function FocusChangedEvent (handle FocusWindow, handle PrevWindow) Var String Sname, String srealname Let Sname = GetOwningAppName (GetCurrentWindow ()) Let SrealName = GetWindowName (GetRealWindow (GetCurrentWindow ())) if DialogActive () then If StringContains (Srealname, "MyApp") && !Sname == "MainApp.exe" then If AlertsOn () then ;this is another function which tells to read the change message or not. Say string( "The new app is active") EndIf Delay (1, true) SwitchToConfiguration ("MyApp") Return EndIf EndIf HSCFocusChanged (GetWindowname (GetTopLevelWindow (FocusWindow))) ; now call the version in default.jss. FocusChangedEvent (FocusWindow, PrevWindow) EndFunction ;Function from the addin app. Void Function FocusChangedEvent (handle FocusWindow, handle PrevWindow) Var String Sname Let Sname = GetOwningAppName (GetCurrentWindow ()) If Sname == "mainApp.exe" then If AlertsOn () then SayString ("Main app is active") EndIf Delay (1, true) SwitchToConfiguration ("MainApp") EndIf FocusChangedEvent (FocusWindow, PrevWindow) EndFunction Thanks for your Help, Jitendra. __________ Visit and contribute to The JAWS Script Repository http://jawsscripts.com View the list's information and change your settings at http://www.freelists.org/list/jawsscripts