[jawsscripts] Re: unknown variable in the click baloon script

A quick and dirty but not Freedom Scientific approved method is to replace the entire SayFormattedMessage lines with
SayString ("help balloon clicked")
and
SayString ("help balloon not found")

Using SayString won't get you a job working for Freedom Scientific but it works for quick fixes. Having tried the script though, it seems to be doing the opposite of what it is supposed to do. It seems that it clicks the tooltip instead of the help balloons. ----- Original Message ----- From: "Negoslav Sabev" <negi4a@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, March 22, 2008 5:54 AM
Subject: [jawsscripts] Re: unknown variable in the click baloon script


Thank you. So what can I do to include it?
Negoslav

----- Original Message ----- From: "John Greer" <jpgreer17@xxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, March 22, 2008 11:25 AM
Subject: [jawsscripts] Re: unknown variable in the click baloon script


Looks to me like that particular Jaws Message is not included in the Jaws 8 jsm file that it is calling for ----- Original Message ----- From: "Negoslav Sabev" <negi4a@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Saturday, March 22, 2008 1:18 AM
Subject: [jawsscripts] unknown variable in the click baloon script



Hello,

I tried to transfer the click baloon script from jaws 9 in my jaws 8. I follow the below procedure:
"First, select the entire script text and copy it
to the clipboard. Then, hit insert f2 and bring up script manager.Once
script manager opens, press control shift d to bring up the default script
file.
Then move to the bottom of it with control end. then,hit enter once or twice
to make sure your on a blank line,,and paste the contents of the script.
Then
move into the body of the script and hit control d. Once you do, a script information dialogue box will appear. Tab through it and fill in the various fields, leaving the script name box intact. You can fill in the synopsis and
description fields if you wish. Make sure the can be attached to key
checkbox
is checked. You can use any keystroke you wish that won't conflict
with another keystroke. I used control shift l myself. Then click ok and
hit control s to recompile the default script file, and use alt f4 to close
the
dialogue. After that, when a help balloon appears, you should be able to use
the keystroke you assigned to click it."

By doing this I get the folowing error
"Compile Error
Unknown variable OT_NO_Disable
OK".

This is the script itself.

Script clickhelpballoon ()

Var

String SClass, ; The name of the window class.

String SName, ; The name of the window.

Handle HWND ; The handle of the current window.

Let SClass = GetWindowClass (GetFirstWindow (FindTopLevelWindow

("Shell_TrayWnd", "")))

Let SName = GetWindowName (GetFirstWindow (FindTopLevelWindow

("Shell_TrayWnd", "")))

Let HWND = GetFocus ()

GetFocus ()

If SClass == "tooltips_class32"

& SName != "" then ; Click the balloon.

SayFormattedMessage (OT_NO_Disable, "Clicked help balloon.", "Clicked.")

SetFocus (GetFirstWindow (FindTopLevelWindow ("Shell_TrayWnd", "")))

SaveCursor ()

RouteJAWSToPc ()

RoutePcToJAWS ()

{LeftMouseButton}

SetFocus (HWND) ; Return the focus to its previous window.

Else

if SClass != "tooltips_class32"

|| SName == "" then ; State that a help balloon wasn't found.

SayFormattedMessage (OT_No_Disable, "Help balloon not found.", "Not found.")

EndIf

EndIf

EndScript

I'm not a scripter and my knolage is very limited, so please keep it simple.
Negoslav
__________ View the list's information and change your settings at http://www.freelists.org/list/jawsscripts



__________ View the list's information and change your settings at http://www.freelists.org/list/jawsscripts


__________ View the list's information and change your settings at http://www.freelists.org/list/jawsscripts



__________ 
View the list's information and change your settings at http://www.freelists.org/list/jawsscripts

Other related posts: