That idea occurred to me a few minutes ago. However, I get unexpected word IPauseResumeRecording when I compile the script. My global variable is the following: Int IPauseResumeRecording Jaws takes me to this line when I compile the script. I can't figure out what is wrong with this global. Any thoughts? -------------------------------------------------- From: "Sean Randall" <seanr@xxxxxxxxxxxxxxx> Sent: Wednesday, April 08, 2009 6:19 PM To: <jawsscripts@xxxxxxxxxxxxx> Subject: [jawsscripts] Re: executing a script only if another script has been run > Haden, > > Wayne's covered the essentials here. If the first script sets up some > data > in file storage for the second to rely on then obviously the INI approach > works - i.e. if the data doesn't exist then you can hardly process it, so > you can assume the first script was never run. > > I would probably suggest a global variable (similar in scope to how the > autoStartEvent code I sent earlier today works) if the running was a > condition that would reset itself with JAWS. For a more permanent > solution > naturally a file works best. > > On the matter of running the 2nd from the 1st, it does nothing to prevent > the 2nd script being run independently (even by not assigning it a key > your > user could reassign). > > Sean. > > -----Original Message----- > From: jawsscripts-bounce@xxxxxxxxxxxxx > [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Wayne Brumley > Sent: Wednesday, April 08, 2009 10:50 PM > To: jawsscripts@xxxxxxxxxxxxx > Subject: [jawsscripts] Re: executing a script only if another script has > been run > > Hi. > One approach which occurs to me would be to put logic in the first script > which would write a line to an ini file. The second script could read the > ini file as it's first action and check to see if the indicator is there. > If it is there proceed otherwise shut down. > Or you could start the second script from the first script. > > Regards, > Wayne > > __________ > 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 > > __________ 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