Hi Can: Did you copy Doug's script in to the Default.jss file? I think that you need to put this in to a separate jss file. then you save and compile this file. Now you will need to put a Use statement near the top of default.jss. this would look like=20 use "ScriptName.jsb"=20 ScriptName will be the name of the new file that you compiled. I think that the reason you got the Unknown script message is because you were calling the script within that same script. If you were moving back to the Default.jsb file in the call stack, you should have been able to reach that script in the default.jsb. I am sure that Doug can explain much better than that, but that is likely your problem. David Farough Application Accessibility Coordinator/coordonateur de l'accessibilit=E9=20 Information Technology Services Directorate / Direction des services d'information technologiques Public Service Commission / Commission de la fonction publique Email / Courriel: David.Farough@xxxxxxxxxxxxx Tel. / T=E9l: (613) 992-2779=20 >>> "Can Kirca" <cankirca@xxxxxxxxx> 05:59 am Friday, May 23, 2008 >>> hello, first of all thank you for replying me that quickly. I try it. I copyed the script you send. it ran. but, when i press ones, jaws says "unknown script call to say battery level" when i press twice, jaws says "x %" that mins it's running thanks for your interest. ----- Original Message -----=20 From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx> To: <jawsscripts@xxxxxxxxxxxxx> Sent: Friday, May 23, 2008 12:46 PM Subject: [jawsscripts] Re: to make laptop battery say >I have run with the following script in my custom default.jss for > quite a while now. It lets a single SayBatteryLevel (Shift+JAWSKey+B) > command run the original JAWS code but runs custom code if you type > the command twice quickly. I wrote this a while back for myself > because sometimes JAWS is unable to find the battery information on my > laptop. It will attempt to say three things, in this order: > Percentage of battery power remaining even if running on AC, then > current power source (AC Power or batteries), then time remaining > ("unknown" when on AC power generally). > > script sayBatteryLevel() > var > handle hwnd > if !isSameScript() then > performScript sayBatteryLevel() > return > endIf > let hwnd =3D findTopLevelWindow("SystemTray_Main", "") > if hwnd then > let hwnd =3D getLastWindow(getFirstChild(hwnd)) ; Dialog containing details > let hwnd =3D getFirstChild(hwnd) > while hwnd && !stringContains(getWindowName(hwnd), "%") > let hwnd =3D getNextWindow(hwnd) > endWhile > if stringContains(getWindowName(hwnd), "%") then > ; Say total remaining battery power percentage, even if on AC power. > sayMessage(OT_User_Requested_Information, getWindowName(hwnd)) > ; Then say "AC Power" or "Batteries" to indicate which is in effect. > sayMessage(OT_User_Requested_Information,=20 > getWindowName(getNextWindow(hwnd))) > endIf > let hwnd =3D getLastWindow(hwnd) ; Time remaining > sayMessage(OT_User_Requested_Information, getWindowName(hwnd)) > return > endIf > performScript sayBatteryLevel() > endScript > > > On Fri, May 23, 2008 at 12:18:35PM +0300, Can K?rca wrote: > hi friends, > I'm using jaws 9.0 and turkish version windows. > the jaws that I'm using doesn't say the battery state. > when i try to make it say, jaws says; "battery status not found" > what shall i do? > i would be glad if you could help me. > Can K?rca > > __________? > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts=20 > > --=20 > Doug Lee, Senior Accessibility Programmer > SSB BART Group > mailto:doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com=20 > "While they were saying among themselves it cannot be done, > it was done." --Helen Keller > __________ > View the list's information and change your settings at > http://www.freelists.org/list/jawsscripts=20 >=20 __________=20 View the list's information and change your settings at=20 http://www.freelists.org/list/jawsscripts=20 100 Years Merits a Celebration! =20 http://www.psc-cfp.gc.ca/100/index-eng.htm=20 100 ans, =E7a m=E9rite une c=E9l=E9bration! =20 http://www.psc-cfp.gc.ca/100/index-fra.htm=20 __________ View the list's information and change your settings at http://www.freelists.org/list/jawsscripts