Hi Dennis and all.

Thanks for the good work that you are doing Dennis.  I would like to ask you a favour. 
 Is it possible for you to create a zipfile of all your tips and send it to the mail 
list web site?  Of course you would have to include explainations of the tips in the 
script file.  This would help users who have missed any of your previous scripts.  
specially those new script writers.

I would like to Extend this suggestion to everyone who writes scripts in the same 
fashion.

Cheers
Sean.

>>> "Dennis Brown" <[EMAIL PROTECTED]> 06/11 11:12 AM >>>

ScriptTip#106:  3.3 Lost Focus Fix.
Gives a fix for JFW3.3's loss of focus when all applications are closed, and
JAWS is the only remaining window.
What seems to happen is that instead of JFW fixing it's focus on either the
JAWS window, or the Desktop, it stays somewhere in-between!  This state
returns some pretty unique values to the controls Windows uses to determine
just where you are and what you are doing there, so we can use the values to
recognize that state, and issue a LeftMouseButton command, which puts  the
focus onto the Desktop!
Since while in the JAWS window, the script file it uses is "JFW.JSS", so
this is where we need the routines that check for, then escapes from, this
state of unfocused limbo.

The steps to add this temporary fix to your JFW.JSS script file are as
follows:

1)  Hit Insert+J to bring up the JAWS window.
2)  Hit Insert+0 to launch the Script Manager with the file JFW.JSS loaded
in the editor.
3)  Hit Control+End to reach the bottom of the script file and hit Enter a
few times to give yourself working room.
4)  Type in, or Cut and Paste, the following AutoStartEvent script:

function AutoStartEvent()
;This routine is a temporary fix for JFW 33025 getting lost when
; closing apps and JFW is the only thing on TaskBar.
; It has enough conditional statements to ensure it only gets executed
; when this particular focus loss occurs.

If(GetWindowTypeCode(GetCurrentWindow()) == -1) &&
(GetWindowSubTypeCode(GetCurrentWindow()) == -1) &&
(GetControlID (GetCurrentWindow ()) == 0) Then
; If  this unique info is returned, then click the left mouse button
; to get focus placed on the Desktop.
LeftMouseButton()
EndIf
EndFunction

4)  Hit Control+S to compile the modification, then Alt+F4 to exit the
Script Manager.


Try opening an  application or two and see if you get  the expected results
when exiting them.


Hope this helps!

Thanks,
Dennis Brown, [EMAIL PROTECTED] 
Visit the Blind Programming site at http://www.mindspring.com/~brown99/ 





-
Visit the jfw ml web page: http://jfw.cjb.net

-
Visit the jfw ml web page: http://jfw.cjb.net

Reply via email to