The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.
From:
Kevin Huber <kevin.huber1@gmail.com>Subject:
[No Subject]Date:
Fri, Jan 13, 2012 4:04:17 pmHi:
In my Proofreading script, the eventhandler that I use to save
settings does not work as it should.
the code is as follows:
Function DialogEventHandler(dObj, dEvent, dId, dControl)
DialogEventHandler = False
if Keyboard.KeyDescriberActive then
silence
exit function
end if
Select Case dId
Case "button_yes"
If dEvent = buttonClicked Then
activesettings.save
Speak mystrings("ActiveSettingsSaved")
DialogEventHandler = True
isVisible = 0
dObj.Close
Exit Function
End If
Case "button_no"
If dEvent = buttonClicked Then
Speak mystrings("ActiveSettingsNotSaved")
DialogEventHandler = True
isVisible = 0
dObj.Close
Exit Function
End If
End Select
End Function
The problem is that the code in the "yes" case should save the
settings but it appears to do nothing.
I think that the "settings.save" command isn't working.
Is there a work-around for this?
Kevin Huber
In my Proofreading script, the eventhandler that I use to save
settings does not work as it should.
the code is as follows:
Function DialogEventHandler(dObj, dEvent, dId, dControl)
DialogEventHandler = False
if Keyboard.KeyDescriberActive then
silence
exit function
end if
Select Case dId
Case "button_yes"
If dEvent = buttonClicked Then
activesettings.save
Speak mystrings("ActiveSettingsSaved")
DialogEventHandler = True
isVisible = 0
dObj.Close
Exit Function
End If
Case "button_no"
If dEvent = buttonClicked Then
Speak mystrings("ActiveSettingsNotSaved")
DialogEventHandler = True
isVisible = 0
dObj.Close
Exit Function
End If
End Select
End Function
The problem is that the code in the "yes" case should save the
settings but it appears to do nothing.
I think that the "settings.save" command isn't working.
Is there a work-around for this?
Kevin Huber


