[jawsscripts] Re: SysGetTime function failing
- From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
- To: jawsscripts@xxxxxxxxxxxxx
- Date: Wed, 16 Jan 2008 09:27:18 -0500
Make sure you are not passing any null parameters. I recall that
SysGetTime/Date don't like those very well.
On Wed, Jan 16, 2008 at 08:33:33AM -0500, Huskins, Wayne wrote:
Ok! This is getting very strange. I think JFW or at least my copy of
version 9.0.519 is or has lost its collective mind. Definitely
skitzoid...
I have simplified the code below but it essentially displays my
problem.
I have a function that uses the sysGetTime function passing all 4
parameters.
If I call the function from a script, it works as expected.
If I call the same function from the KeyPressedEvent, it results in
the following error:
"Error invalid parameter"
Calling the function when the virtual buffer is active is not the
problem.
The use of the SysGetDate function works as expected.
This coding worked from JAWS version 5.10 to 7.10 and I believe 8 as
well.
Any ideas?
Here is my sample code
include "hjconst.jsh"
Script testing ()
specialProcessing()
EndScript
Void Function KeyPressedEvent (int nKey, string strKeyName, int
nIsBrailleKey, int nIsScriptKey)
If UserBufferIsActive () then
specialProcessing()
endif
endfunction
void function specialProcessing()
saymessage(ot_status,sysGetTime("HH:mm",8,0,0))
saymessage(ot_status,SysGetDate ("yyyy/MM/dd", 6, 27, 1999))
Endfunction
Thanks
Wayne H
__________?
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
--
Doug Lee, Senior Accessibility Programmer
SSB BART Group
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
http://www.freelists.org/list/jawsscripts
- References:
- [jawsscripts] SysGetTime function failing
- From: Huskins, Wayne
Other related posts:
- » [jawsscripts] SysGetTime function failing
- » [jawsscripts] Re: SysGetTime function failing
- » [jawsscripts] Re: SysGetTime function failing
- [jawsscripts] SysGetTime function failing
- From: Huskins, Wayne