ScriptTip#107:  MoveToDesktop Script.
This script will move you to the Desktop when the Alt+Tab key is pressed
from within the JAWS window, and there are no other applications opened at
the time.

When JAWS window is the only application open, hitting the Alt+Tab does
nothing, and to get to the Desktop, you need to use something like the
Insert+F6, MinimizeAllApps() function.  This script will issue that function
automatically, when the Alt+Tab is pressed, and it notices that you're still
in the same JAWS window.

Here are the steps to add this script to the JFW.JSS script file.

1)  Hit Insert+J to get to the JAWS window, then hit Insert+0 to launch the
Script Manager with JFW.JSS loaded into the editor.
2)  Hit Control+End to reach the bottom of the file, then whack Enter a
couple of times to give yourself some work space.
3)  Type in, or Cut and Paste, the following script:

Script MoveToDesktop ()
; This script allows the Alt+Tab keypress to move to the Desktop
; whenever JAWS is the only open item on the TaskBar.
{Alt+Tab}           ; issue an Alt+Tab to move to next opened app.
If(GetWindowName(GetTopLevelWindow (GetCurrentWindow ())) == "JAWS" &&
(GetWindowName(GetParent(GetCurrentWindow ())) == "JAWS") &&
GetWindowName(GetCurrentWindow()) == "") Then
; Hey!  I just hit Alt+Tab and I'm still in the JAWS window, so
; I'll just use the following command to get to the Desktop!
MinimizeAllApps ()
EndIf
; If it isn't still the JAWS Window, then act normal!
EndScript

4)  Hit Control+S to compile this new script.
5)  Hit Insert+8 to launch the Keyboard Manager.
6)  Hit the letter "J" to get to the .jkm files starting with  that letter,
then arrow down to "JFW.JKM", and hit Tab.
This will put you in a list of keystrokes, and the scripts they are assigned
to.  If you don't notice the new MoveToDesktop script as one that is in this
list, set your listing filters to "All Scripts" by hitting Alt+O, and
selecting "Filters...", then use your up/down arrows to select "All
scripts", then whack Enter.
7)  Arrow to the MoveToDesktop script and you'll notice it has "None" as the
assigned keystroke.  Hit Control+A to "Add" a keystroke.
8)  Hit Alt+Tab, and when it gives you the "It's  already assigned..." tab
to Ok and whack Enter.
You should now see the Alt+Tab is assigned to that script.

9)  Hit Alt+F4 to exit the Keyboard Manager, and do the same for the Script
Manager.



Give  these a try by closing all apps except JAWS, then Alt+Tab and see what
results you get.


Hope this helps!


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


6)  Once this file is loaded into the editor,8


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

Reply via email to