Thanks Udo. Unfortunately, this app doesn't support UIA according to BX,
plus I haven't done any scripting with UIA, but really need to read up on
it. Thanks anyway, best steve.
-----Original Message-----
From: Udo Egner-Walter
Sent: Tuesday, March 19, 2019 6:17 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Any other options rather than ControlIsChecked?
Hi Steve,
if your off screen window supports UIA and you can get the windows
handle perhaps you can use this function:
<begin code>
int Function IsCheckBoxChecked (object oCheckbox)
var
object oToggleState
oToggleState = oCheckbox.GetTogglePattern()
If oToggleState.toggleState == 1 then
Return True
else
Return False
EndIf
EndFunction
Script CheckState ()
var
object oCheckbox
; ... use UIA functions to get the object here
If IsCheckBoxChecked (oCheckBox) then
; ... do what you want
else
; ... do what you want
EndIf
EndScript
<end code>
Hope this helps
Udo
Am 19.03.19 um 17:10 schrieb Steve Spamer:
Hi folks. I want to query if a control is checked or not, and the jaws__________�
function ControlIsChecked() doesn't take any parameters, as the
description
says it's only for the current window. So, are there other options? This
control resides in an off screen/open window. THX Steve.
Follow me on Twitter: @stevesax123
Visit the samplitude Access website. Jaws scripts for pro recording with
Samplitude in Windows: www.samplitudeaccess.org.uk
__________�
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts