[jawsscripts] unknown variable in the click baloon script
- From: "Negoslav Sabev" <negi4a@xxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Sat, 22 Mar 2008 09:18:18 +0200
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
- Follow-Ups:
- [jawsscripts] Re: unknown variable in the click baloon script
- From: John Greer
Other related posts:
- » [jawsscripts] unknown variable in the click baloon script
- » [jawsscripts] Re: unknown variable in the click baloon script
- » [jawsscripts] Re: unknown variable in the click baloon script
- » [jawsscripts] Re: unknown variable in the click baloon script
- » [jawsscripts] Re: unknown variable in the click baloon script
- » [jawsscripts] Re: unknown variable in the click baloon script
- » [jawsscripts] Re: unknown variable in the click baloon script
- [jawsscripts] Re: unknown variable in the click baloon script
- From: John Greer