[jawsscripts] Re: Need help

  • From: Gordon Luke <Gordon.Luke@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 6 Dec 2011 13:53:32 +0000

Hi Dang

You've changed the type of function return from a void to a string function
in your TestFunc.  Try changing it back to type void and see how you get
on.

Thanks

Gordon Luke
Senior Systems Analyst
Systems Integration (L&P Applications & Testing)

Tel: 01732 429 044
Email: gordon.luke@xxxxxxxxxxxx
Part of the Capita group www.capita.co.uk

Think of the environment...please don't print this e-mail unless you really
need to.


                                                                           
             "Dang Manh Cuong"                                             
             <dangmanhcuong@gm                                             
             ail.com>                                                   To 
             Sent by:                  <jawsscripts@xxxxxxxxxxxxx>         
             jawsscripts-bounc                                          cc 
             e@xxxxxxxxxxxxx                                               
                                                                   Subject 
                                       [jawsscripts] Re: Need help         
                                                                           
                                                                           
             06/12/2011 12:48                                              
                                                                           
             Please respond to                                             
             jawsscripts@freel                                             
                 ists.org                                                  
                                                                           
                                                                           
                                                                           




Thanks for your suggestion
I tried this methot, but it didn't work. Here're my function and script
String Function testFunc ()
PlaySound (GetJAWSSettingsDirectory () +"\\" +"SkypeTyping5.wav")
EndFunction

Script TestScript ()
ScheduleFunction (testFunc (), 500)
EndScript
This script still play the sound file, but didn't delay
Any errors from me?
Please help

________________
Dang Manh Cuong
Course: Psychology and education
Department: HCMC University of Pedagogy:
280 An Duong vuong Str, Dist 5, HCMC Vietnam
Home: 555/2B Le Hong Phong Str, Tan Dong Hiep ward, Di An Town, Binh Duong
Mobile: +84 902-572-300
E-mail: dangmanhcuong@xxxxxxxxx
Yahoo ID: manhcuong0312
Skype name: dangmanhcuong
facebook: Manh Cuong Dang
Blog: http://vi.netlog.com/Cuong_littlecat
Website: http://ngoisaodanduong.com
http://www.saomaicenter.org
Projec-Website: http://code.google.com/p/dangmanhcuong

  ----- Original Message -----
  From: Gordon Luke
  To: jawsscripts@xxxxxxxxxxxxx
  Cc: jawsscripts@xxxxxxxxxxxxx ; jawsscripts-bounce@xxxxxxxxxxxxx
  Sent: Tuesday, December 06, 2011 6:51 PM
  Subject: [jawsscripts] Re: Need help


  Hi Dang

  These very simple two functions should do the job for you.  Add the
script
  one to a keystroke of your choice and change the wav file name to one of
  your own and after that you should be good to go.

  void function PlayMySound()
  ; Play the sound file from the Personal Jaws folder
  PlaySound (FindJAWSSettingsFile ("MySound.wav", false))
  endfunction

  Script PlaySoundInFiveMinutes()
  ; Make the function activate in 5 minutes (i.e. 5 * 60 * 10)
  ScheduleFunction ("PlayMySound", 3000)
  endscript

  This may also need to be put in your default.jss file as switching
between
  applications while these scripts are running will cause the schedule to
be
  removed.

  Hope this is of some use.

  Thanks

  Gordon Luke
  Senior Systems Analyst
  Systems Integration (L&P Applications & Testing)

  Tel: 01732 429 044
  Email: gordon.luke@xxxxxxxxxxxx
  Part of the Capita group www.capita.co.uk

  Think of the environment...please don't print this e-mail unless you
really
  need to.



               "Dang Manh Cuong"

               <dangmanhcuong@gm

               ail.com>
To
               Sent by:                  <jawsscripts@xxxxxxxxxxxxx>

               jawsscripts-bounc
cc
               e@xxxxxxxxxxxxx


Subject
                                         [jawsscripts] Need help



               06/12/2011 10:28


               Please respond to

               jawsscripts@freel

                   ists.org








  Hi listers
  I'd like to write a script that countdown a periot of time. For example
The
  script would delay for 5 minute before playing a sound. I Think the
  scheduleFunction () function can do it, but don't know how to use. Please
  show me how to do it.
  ________________
  Dang Manh Cuong
  Course: Psychology and education
  Department: HCMC University of Pedagogy:
  280 An Duong vuong Str, Dist 5, HCMC Vietnam
  Home: 555/2B Le Hong Phong Str, Tan Dong Hiep ward, Di An Town, Binh
Duong
  Mobile: +84 902-572-300
  E-mail: dangmanhcuong@xxxxxxxxx
  Yahoo ID: manhcuong0312
  Skype name: dangmanhcuong
  facebook: Manh Cuong Dang
  Blog: http://vi.netlog.com/Cuong_littlecat
  Website: http://ngoisaodanduong.com
  http://www.saomaicenter.org
  Projec-Website: http://code.google.com/p/dangmanhcuong
  __________�

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







  This email is confidential and should not be used by anyone who is not
  the original intended recipient. Prudential cannot accept liability
  for statements made which are clearly the sender's own and not made
  on behalf of the Prudential. In addition, no statement should be
  construed as giving investment advice within or outside the United
  Kingdom

  Prudential plc, incorporated and registered in England and Wales.
  Registered Office at Laurence Pountney Hill, London, EC4R 0HH.
  Registered number 1397169. Prudential plc is a holding company,
  subsidiaries of which are authorised and regulated by the Financial
  Services Authority (FSA)

  'Prudential' is a trading name of The Prudential Assurance Company
  Limited, which is incorporated and registered in England and Wales.
  Registered Office at Laurence Pountney Hill, London, EC4R 0HH.
  Registered number 15454. Authorised and regulated by the Financial
  Services Authority. 'Prudential' is also used by other companies within
  the Prudential Group, which between them provide a range of financial
  products including life assurance, pensions, savings and investment
  products

  'Prudential' is also a trading name of Prudential Distribution Limited,
  which is incorporated and registered in Scotland.  Registered Office at
  Craigforth, Stirling, FK9 4UE.  Registered number SC212640. Authorised
  and regulated by the Financial Services Authority.

  A list of other Prudential companies together with their registered
  statutory details can be found in 'About Prudential' on
http://www.prudential.co.uk/prudential-plc/aboutpru

  An email reply to this address may be subject to interception or
  monitoring for operational reasons or for lawful business practices.

  __________�

  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







This email is confidential and should not be used by anyone who is not
the original intended recipient. Prudential cannot accept liability
for statements made which are clearly the sender's own and not made
on behalf of the Prudential. In addition, no statement should be
construed as giving investment advice within or outside the United
Kingdom

Prudential plc, incorporated and registered in England and Wales.
Registered Office at Laurence Pountney Hill, London, EC4R 0HH.
Registered number 1397169. Prudential plc is a holding company,
subsidiaries of which are authorised and regulated by the Financial
Services Authority (FSA)

'Prudential' is a trading name of The Prudential Assurance Company
Limited, which is incorporated and registered in England and Wales.
Registered Office at Laurence Pountney Hill, London, EC4R 0HH.
Registered number 15454. Authorised and regulated by the Financial
Services Authority. 'Prudential' is also used by other companies within
the Prudential Group, which between them provide a range of financial
products including life assurance, pensions, savings and investment
products

'Prudential' is also a trading name of Prudential Distribution Limited, 
which is incorporated and registered in Scotland.  Registered Office at 
Craigforth, Stirling, FK9 4UE.  Registered number SC212640. Authorised 
and regulated by the Financial Services Authority.

A list of other Prudential companies together with their registered
statutory details can be found in 'About Prudential' on 
http://www.prudential.co.uk/prudential-plc/aboutpru

An email reply to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.

__________�

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

Other related posts: