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 ----- 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 = findTopLevelWindow("SystemTray_Main", "") > if hwnd then > let hwnd = getLastWindow(getFirstChild(hwnd)) ; Dialog containing details > let hwnd = getFirstChild(hwnd) > while hwnd && !stringContains(getWindowName(hwnd), "%") > let hwnd = 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, > getWindowName(getNextWindow(hwnd))) > endIf > let hwnd = 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 > > -- > Doug Lee, Senior Accessibility Programmer > SSB BART Group > mailto:doug.lee@xxxxxxxxxxxxxxxx http://www.ssbbartgroup.com > "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 > __________ View the list's information and change your settings at http://www.freelists.org/list/jawsscripts