[jawsscripts] Re: Script Problem

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Mon, 24 Aug 2009 05:35:30 -0400

You can play any sound you like as long as you can find it. :)  A lot
of sound files come in the default JAWS Sounds folder.  You should be
able to use the FindJAWSSoundFile function to get a path for one, and
the Start Menu > Programs > JAWS > Explore My JAWS feature to locate a
sound in the Sounds folder and get its name.  But beware that
PlaySound interrupts itself just like beep() does, so playing two of
them right after each other isn't very helpful without a delay between
them.

On Mon, Aug 24, 2009 at 10:30:04AM +0100, Steven Hicks (HICKSSM) wrote:
Thanks very much indeed.
do I have any other options e.g. could I play a specific sound file by 
calling it or something?
i could create a warning sound then i guess.

----- Original Message ----- 
From: "Doug Lee" <doug.lee@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, August 24, 2009 10:26 AM
Subject: [jawsscripts] Re: Script Problem


> The beep() function produces the system default sound, if there is
> one defined.  You usually can't tell very well between one beep and
> two when there is a system default sound defined, because one
> immediately replaces the other.  A pause or delay between them might
> help with that.  If you undefine the system default sound, you'll
> get an actual PC speaker beep on the host machine.  That would not
> transfer to your RDP client even if you route sound to it though.
> Routing sound can indeed play havock with timing issues in sound
> code, but since your sound remains on the host, RDP should not be
> affecting your results.
>
> On Mon, Aug 24, 2009 at 10:17:20AM +0100, Steven Hicks (HICKSSM) wrote:
> thanks, the script is running on a laptp that I am RDP'd to so this may be
> effecting something.
> The sound has been told to stay on the remote machine.
> I will try the delay, thanks for that.
>
> ----- Original Message ----- 
> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Monday, August 24, 2009 10:07 AM
> Subject: [jawsscripts] Re: Script Problem
>
>
>> Beep may be a confusing name for this function.  On my system it produces
>> the system 'alarm' sound, which is more like a short drum beat.  Also,
>> Jaws
>> scripts are notorious for not waiting for previous lines of code to
>> finish,
>> so you may find this sound seems simultaneous with the start of your
>> speech
>> function.  Try introducing Delay (20, 1) before the beep, which will wait
>> for two seconds.
>>
>>  hth
>>
>> Martin
>>
>>
>> ----- Original Message ----- 
>> From: "Steven Hicks (HICKSSM)" <Steven.HicksSM@xxxxxxxxxxxxx>
>> To: <jawsscripts@xxxxxxxxxxxxx>
>> Sent: Monday, August 24, 2009 9:11 AM
>> Subject: [jawsscripts] Script Problem
>>
>>
>>> Hello friends,
>>> thanks to everyone's help on the list, I have a really useful script
>>> defined.  I just need to attach it to a frame event which shouldn't be a
>>> problem.
>>> Just one issue, the Beep() statement doesn't seem to do anything or
>>> produce any system sound, does anyone know why this may be please?
>>>
>>> My script is below:
>>>
>>> Script OverallStatus ()
>>>
>>> var
>>>
>>> String QueueText,
>>>
>>> Int queueValue
>>>
>>> JAWSCursor()
>>>
>>> MoveTo(177,351)
>>>
>>> ;SayWord()
>>>
>>> Let QueueText=GetWord()
>>>
>>> Let QueueValue=StringToInt(QueueText)
>>>
>>> SayString("Queue Status Is:")
>>>
>>> SayString(QueueText)
>>>
>>> SayInteger(QueueValue)
>>>
>>> If (QueueValue>1) then
>>>
>>> Beep()
>>>
>>> EndIf
>>>
>>> Beep()
>>>
>>> ;SayFrame ("Queue")
>>>
>>> ;;GetTextInFrame (Queue,queueText)
>>>
>>> ;SayFrame("AgentsAvailable")
>>>
>>> ;SayFrame("AgentsLoggedIn")
>>>
>>> ;SayFrame("WaitTime")
>>>
>>> PCCursor()
>>>
>>> EndScript
>>>
>>>
>>> -----------------------------------------------------------------------------------------
>>> The information in this e-mail and any attachments is
>>> confidential and is intended for the attention and use of the
>>> named addressee(s).  It  must not be disclosed to any other
>>> person  without our authority.  If you are not the intended
>>> recipient, or a person responsible for delivering it to
>>> the intended recipient or are aware that this e-mail has been
>>> sent to you in error, you are not authorised to and must not
>>> disclose, copy, distribute, or retain this message or any part of it.
>>>
>>> We sweep all outgoing messages for the presence of computer
>>> viruses. However, we cannot accept any responsibility for any
>>> loss or damage to your systems due to viruses or malicious
>>> code not detected.
>>>
>>> The statements and opinions expressed in this message are
>>> those of the author and do not necessarily reflect those of the
>>> organisations within the Cornwall & Isles of Scilly Health
>>> Community.
>>>
>>> This email may be disclosed under the Freedom of Information
>>> Act 2000 or the Environmental Information Regulations 2004.
>>> -----------------------------------------------------------------------------------------
>>>
>>> __________
>>> Visit and contribute to The JAWS Script Repository 
>>> http://jawsscripts.com
>>>
>>> View the list's information and change your settings at
>>> http://www.freelists.org/list/jawsscripts
>>>
>>
>>
>> --------------------------------------------------------------------------------
>>
>>
>>
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com
>> Version: 8.5.409 / Virus Database: 270.13.65/2323 - Release Date: 
>> 08/24/09
>> 06:05:00
>>
>> __________
>> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>>
>> View the list's information and change your settings at
>> http://www.freelists.org/list/jawsscripts
>>
>
>
> -----------------------------------------------------------------------------------------
> The information in this e-mail and any attachments is
> confidential and is intended for the attention and use of the
> named addressee(s).  It  must not be disclosed to any other
> person  without our authority.  If you are not the intended
> recipient, or a person responsible for delivering it to
> the intended recipient or are aware that this e-mail has been
> sent to you in error, you are not authorised to and must not
> disclose, copy, distribute, or retain this message or any part of it.
>
> We sweep all outgoing messages for the presence of computer
> viruses. However, we cannot accept any responsibility for any
> loss or damage to your systems due to viruses or malicious
> code not detected.
>
> The statements and opinions expressed in this message are
> those of the author and do not necessarily reflect those of the
> organisations within the Cornwall & Isles of Scilly Health
> Community.
>
> This email may be disclosed under the Freedom of Information
> Act 2000 or the Environmental Information Regulations 2004.
> -----------------------------------------------------------------------------------------
> __________?
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
> -- 
> Doug Lee, Senior Accessibility Programmer
> SSB BART Group - Accessibility-on-Demand
> mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
> "While they were saying among themselves it cannot be done,
> it was done." --Helen Keller
> __________
> Visit and contribute to The JAWS Script Repository http://jawsscripts.com
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
> 


-----------------------------------------------------------------------------------------
The information in this e-mail and any attachments is 
confidential and is intended for the attention and use of the 
named addressee(s).  It  must not be disclosed to any other 
person  without our authority.  If you are not the intended 
recipient, or a person responsible for delivering it to 
the intended recipient or are aware that this e-mail has been 
sent to you in error, you are not authorised to and must not 
disclose, copy, distribute, or retain this message or any part of it.

We sweep all outgoing messages for the presence of computer 
viruses. However, we cannot accept any responsibility for any 
loss or damage to your systems due to viruses or malicious 
code not detected.

The statements and opinions expressed in this message are 
those of the author and do not necessarily reflect those of the 
organisations within the Cornwall & Isles of Scilly Health 
Community.

This email may be disclosed under the Freedom of Information  
Act 2000 or the Environmental Information Regulations 2004.
-----------------------------------------------------------------------------------------
__________?
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: