Ah, if all you want to do is use the Foobar plug-in, why not write a JAWS script to grab the current time, add two hours to it, open the plug-in dialog and type in the relevant information. Then JAWS doesn't need to handle the timing part, Foobar can do it itself. Just a thought. But then perhaps you have other uses for this kind of thing as well, so a complete JAWS sleep timer may be what you want. Cheers, Andrew. On 15/06/2012 6:39 PM, David Truong wrote: > Hi Andy, > > Thanks mate for your help. I just wanted to make a simple sleep timer where > you would enter the time for a set of commands to execute E.G. 2 hours. Then > after after two hours, the set of commands you specified would be executed > and then the timer would reset itself ready for the next time you wanted to > use it. A use for this sort've sleep timer might be in Foobar where you are > playing an audio book and you want to set the book to set a time marker after > two hours and then stop the file. I realise Foobar has a scheduling plugin > but you have to enter date, time etc every time you want to use it and you > can't get it to put a time marker in the file. > > I will look at your suggestions though and again thanks mate for your help. > > > David Truong > > Email: blindboxer@xxxxxx > > MS Messenger: davidtruong@xxxxxxxxxxxxxxx > > Phone: 07 3844 1678 > Mobile: 0400 557 511 > > Facebook: http://facebook.com/Changa181 > Skype: blindboxer1967 > > > > -----Original Message----- > From: jawsscripts-bounce@xxxxxxxxxxxxx > [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Hart > Sent: Saturday, 16 June 2012 12:08 AM > To: jawsscripts@xxxxxxxxxxxxx > Subject: [jawsscripts] Re: Sleep timer using Jaws scripting. > > Dave, > > You can use ScheduleFunction with GetSystemTime and the Run function. > It's not clear to me if what you want is more of a general timer, which goes > off at specific times, or a sleep timer, which goes off after a specified > amount of time has elapsed. If you require the timer to go off at a > particular time, then GetSystemtime will probably be more convenient to use. > If you need the timer to go off after a specified amount of time has elapsed, > then GetTickCount may be more convenient. > > As for scheduling functions and the like, provided you want the timer system > to remain active in the background all the time while JAWS is running, check > out the Cuckoo clock scripts for an example of how this can be done. Btw, > looking back at those scripts, the one second scheduling used there is > probably overkill and it would be more efficient to use a scheduling interval > that shrinks as an event is approached and which becomes larger when events > are distant. However, it all depends what degree of sophistocation is > required of the timer, e.g., do you need to schedule just one event or > multiple events at different times with different actions, and do you wish to > be able to dynamically modify events and/or their times while the timer is > running, etc. If you don't have the Cuckoo scripts any more, I can send them > along; just let me know. > > Cheers, > Andrew. > > > On 14/06/2012 6:49 PM, David Truong wrote: >> Hi guys, >> >> I want to create a sleep timer using Jaws scripting. This sleep timer would >> activate program specific commands or jaws specific commands or both when >> the specified time is reached. I'd appreciate any ideas how I would go about >> achieving this. >> >> Thanks in advance for any suggestions, >> >> >> David Truong >> >> Email: blindboxer@xxxxxx >> >> MS Messenger: davidtruong@xxxxxxxxxxxxxxx >> >> Phone: 07 3844 1678 >> Mobile: 0400 557 511 >> >> Facebook: http://facebook.com/Changa181 >> Skype: blindboxer1967 >> >> >> >> >> >> __________ >> >> View the list's information and change your settings at >> //www.freelists.org/list/jawsscripts >> >> >> > > > __________ > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > __________� > > View the list's information and change your settings at > //www.freelists.org/list/jawsscripts > > > __________� View the list's information and change your settings at //www.freelists.org/list/jawsscripts