[jawsscripts] Re: Share data between scripts

  • From: "Paul Magill" <magills@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 25 Feb 2013 21:32:01 +1100

Hi Dung,

I am not clear on what you mean here, so if what I suggest is not what you 
needed, please ask again with a little more description.

Global variables can store data between running of scripts, and the data 
remains stored in them while Jaws is active.

Near the top of the script file:

Globals
string G_StringData,
int G_IntegerData

Script SampleScript1 ()
; the lines of actions that need doing in one of your scripts


LET G_StringData = "the result of your actions"
LET G_IntegerData = 99 ; sample result of actions
EndScript

Script SampleScript2 ()
SayString (G_StringData) ; or any other action you want with the data from 
the first script
SayInteger (G_IntegerData)
EndScript

Regards,
Paul from Australia

----- Original Message ----- 
From: "Nguyen Van Dung" <dungnv1984@xxxxxxxxx>


Hi all
I have some scripts and combine  them with some different eksykeys. These
scripts need to use a same data (the next script uses output of previous
script).
At the moment, I am concerring to use file to store sharee data.
Does anyone know if we can store  the shared data in the memory for my
scripts?
Thank all.
Regards,
Dung Nguyen.

__________�

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

Other related posts: