Hi David,
That is an excellent example of manipulating JFW to do what you want it to
do via it's scripts!
Thanks,
Dennis Brown, [EMAIL PROTECTED]
Visit the Blind Programming site at http://www.mindspring.com/~brown99/
----- Original Message -----
From: David Edick <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 10, 1999 11:55 PM
Subject: a little fun with the script tips 6 and 7
> since I never have had a problem with JAWS loosing focus, I just went
> to the start menu or something, it never really bothered me and I never
> gave it much attension. I wanted to see how often it happened. so I
> decided to have a little fun with these two new scripts. I threw in a
> couple of SayStrings so jaws would tell me when it used these scripts.
> here goes.
>
> to add a bit of humor to JAWS and check things out, place these extra
> lines in the scripts. I will place the entire scripts in here so you see
> where they go.
>
> 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.
> SayString("hmmm where am I?")
> 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.
> SayString("Okay, I am lost. One of you Icons pull me to the desktop,
> please?")
> LeftMouseButton()
> EndIf
> EndFunction
>
> 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 ()
> SayString("Sorry, JAWS is the only thing running.")
> EndIf
> ; If it isn't still the JAWS Window, then act normal!
> EndScript
> -
> Visit the jfw ml web page: http://jfw.cjb.net
-
Visit the jfw ml web page: http://jfw.cjb.net