[jawsscripts] Re: Can I use perform script at a variable?

  • From: "Dang Manh Cuong" <dangmanhcuong@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 23 Jul 2012 21:09:47 +0700

It worked very wel. Thanks for your help
  ----- Original Message ----- 
  From: Doug Lee 
  To: jawsscripts@xxxxxxxxxxxxx 
  Sent: Monday, July 23, 2012 8:44 PM
  Subject: [jawsscripts] Re: Can I use perform script at a variable?

  UYou must either quote the script name in the call or use a variable:

  var string scr let scr = "myScript"
  runScript(scr)

  should do the same as performScript myScript().

  I use this method of calling scripts in some projects, though not
  many.

  On Mon, Jul 23, 2012 at 08:40:01PM +0700, Dang Manh Cuong wrote:
  Hello Dug
  It didn't work. When I create a test script and call this function, if i 
don't put the script name in quotation, i can't compile, and if I put it in 
quotation mark, I can compile, but it didn't call the script I want. Anyway, 
Thanks for your suggestion.
    ----- Original Message ----- 
    From: Doug Lee 
    To: jawsscripts@xxxxxxxxxxxxx 
    Sent: Monday, July 23, 2012 8:25 PM
    Subject: [jawsscripts] Re: Can I use perform script at a variable?

    Not sure this will help much, but I think it's what you're requesting:

    void function runScript(string sScriptName)
    formatStringWithEmbeddedFunctions("<$" +sScriptName +">")
    endFunction

    On Mon, Jul 23, 2012 at 08:16:57PM +0700, Dang Manh Cuong wrote:
    Hi listers
    In some cases i have more than one script wich have the same body, but the 
last line of it calls an other script (perform script). So is their anyway to 
write a function with a parameter, and use the perform script method at a 
variable? If we can do that, I think the script will be much smaller.
    Thanks for any advisor
    ________________
    Dang Manh Cuong
    HCMC University of Pedagogy:
    The Psychology and education
    Mobile: +84 902-572-300
    E-mail: dangmanhcuong@xxxxxxxxx 
    Yahoo! ID: manhcuong0312
    Skype name: dangmanhcuong
    facebook: http://facebook.com/dangmanhcuong
    Blog: http://vi.netlog.com/Cuong_littlecat
    Website: http://ngoisaodanduong.com
    http://www.saomaicenter.org
    Projec-Website: http://dangmanhcuong.googlecode.com 
    __________???

    View the list's information and change your settings at 
    //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
    __________???

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

  ________________
  Dang Manh Cuong
  HCMC University of Pedagogy:
  The Psychology and education
  Mobile: +84 902-572-300
  E-mail: dangmanhcuong@xxxxxxxxx 
  Yahoo! ID: manhcuong0312
  Skype name: dangmanhcuong
  facebook: http://facebook.com/dangmanhcuong
  Blog: http://vi.netlog.com/Cuong_littlecat
  Website: http://ngoisaodanduong.com
  http://www.saomaicenter.org
  Projec-Website: http://dangmanhcuong.googlecode.com 
  __________???

  View the list's information and change your settings at 
  //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
  __________�

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

________________
Dang Manh Cuong
HCMC University of Pedagogy:
The Psychology and education
Mobile: +84 902-572-300
E-mail: dangmanhcuong@xxxxxxxxx 
Yahoo! ID: manhcuong0312
Skype name: dangmanhcuong
facebook: http://facebook.com/dangmanhcuong
Blog: http://vi.netlog.com/Cuong_littlecat
Website: http://ngoisaodanduong.com
http://www.saomaicenter.org
Projec-Website: http://dangmanhcuong.googlecode.com 
__________�

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

Other related posts: