Yep, Dave, I was.

I obviously missed that bit of the discussion.

So are you saying that I remove *all* of the original HJ script (following) and replace this with yours?

FocusChangedEvent (handle FocusWindow, handle PrevWindow)
var
handle RealWindow,
string RealWindowName,
handle AppWindow
let RealWindow = GetRealWindow (FocusWindow)
let RealWindowName = GetWindowName (RealWindow)
let AppWindow = GetAppMainWindow (FocusWindow)
if (GlobalPrevApp != AppWindow
&& AppWindow != FocusWindow) then
; we've switched to a different app main window,
; and it does not have the focus, so announce it
SayWindowTypeAndText (AppWindow)
endif
If ((GlobalPrevRealName != RealWindowName) ; name has changed
|| (GlobalPrevReal != RealWindow)) then ; or handle has changed, then
If (((RealWindow != AppWindow) || (GlobalPrevApp == AppWindow))
&& (RealWindow != FocusWindow)) then
SayWindowTypeAndText (RealWindow)
endif
EndIf
let GlobalFocusWindow = FocusWindow
if (GlobalPrevFocus != focusWindow) then
SayFocusedWindow () ; will use global variable GlobalFocusWindow
else
SayFocusedObject ()
EndIf
;above perform will return here to finish this routine
;now set all the global variables for next time.
let GlobalPrevReal = RealWindow
let GlobalPrevRealName = RealWindowName
let GlobalPrevApp = AppWindow
let GlobalPrevFocus = FocusWindow
EndFunction


At 13:48 11/06/99 -0700, David Edick wrote:
>It sounds like you are in the default script file. you need to be in
>jfw.jss which does not have an autostart event. then paste the whole
>script at the end.
> - Visit the jfw ml web page: http://jfw.cjb.net

Reply via email to