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:
"David" <elephant@tele2.no>Subject:
XML dialog - seems I am missing somethingDate:
Fri, Mar 23, 2012 11:35:17 amThis is a multi-part message in MIME format.
------=_NextPart_000_0032_01CD0912.EDF61080
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
OK, I have an app, which will playback some sound clips. All that stuff works OK.
I wanted to let the user set the actual volume the clips should be using, when played back.
When scrolling through the alternatives, I found that maybe a TrackBar would be the right thing to use, for this purpose. I did look through the examples found in the manual, and also looked at classes 13, 14 and 30 of Chip's scripting series.
Then, I thought I was ready to go. But, it sure seems I am missing something quite basic in the whole concept here. Any feedback is greatly appreciated. As it stands, the TrackBar won't even show up under the Help and Settings in the App manager.
Here is what I have got so far. By using the UI-design app, the following line was automatically created and added to my XML file:
<dialog id="Playback"><group id="Volume"><trackbar id="VolumeTrackBar" minimum="10" maximum="90" position="35" ticks="auto" tickposition="both" tickinterval="10" downarrow="right" thumb="variable"/><![CDATA[Sound clip volume]]></group></dialog></language>
Then in my VBS code, I changed the MenuProc function (created by the Framework app), to read as follows:
dim vtb
Function MenuProc(menuObj, id)
MenuProc = False
Select Case id
Case "menu_help"
If Not SO_StandardHelpDialog Is Nothing Then
Queue "ScriptHelp"
End If
MenuProc = True
Exit Function
Case "VolumeTrackBar":
VTB = VolumeTrackBar
MenuProc = True
Exit Function
End Select
End Function
Speak VTB &". "
What am I missing here? What do I need to change, in the code, or in the XML?
Thanks alot,
------=_NextPart_000_0032_01CD0912.EDF61080
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>OK, I have an app, which will playback some sound
clips. All that stuff works OK.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>I wanted to let the user set the actual volume the
clips should be using, when played back.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>When scrolling through the alternatives, I found
that maybe a TrackBar would be the right thing to use, for this purpose. I did
look through the examples found in the manual, and also looked at classes 13, 14
and 30 of Chip's scripting series.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>Then, I thought I was ready to go. But, it sure
seems I am missing something quite basic in the whole concept here. Any feedback
is greatly appreciated. As it stands, the TrackBar won't even show up under the
Help and Settings in the App manager.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>Here is what I have got so far. By using the
UI-design app, the following line was automatically created and added to my XML
file:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial> <dialog id="Playback"><group
id="Volume"><trackbar id="VolumeTrackBar" minimum="10" maximum="90"
position="35" ticks="auto" tickposition="both" tickinterval="10"
downarrow="right" thumb="variable"/><![CDATA[Sound clip
volume]]></group></dialog></language></FONT></DIV>
<DIV> </DIV><FONT size=2 face=Arial>
<DIV><BR>Then in my VBS code, I changed the MenuProc function (created by the
Framework app), to read as follows:</DIV>
<DIV> </DIV>
<DIV>dim vtb<BR>Function MenuProc(menuObj, id)<BR> MenuProc =
False<BR> Select Case id<BR> Case "menu_help"<BR> If Not
SO_StandardHelpDialog Is Nothing Then<BR> Queue
"ScriptHelp"<BR> End If<BR> MenuProc =
True<BR> Exit Function<BR> Case "VolumeTrackBar":
<BR> VTB = VolumeTrackBar<BR> MenuProc =
True<BR> Exit Function<BR> End Select<BR>End Function<BR>Speak
VTB &". "</DIV>
<DIV> </DIV>
<DIV><BR>What am I missing here? What do I need to change, in the code, or in
the XML? </DIV>
<DIV> </DIV>
<DIV>Thanks alot,</FONT></DIV></BODY></HTML>
------=_NextPart_000_0032_01CD0912.EDF61080--
------=_NextPart_000_0032_01CD0912.EDF61080
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
OK, I have an app, which will playback some sound clips. All that stuff works OK.
I wanted to let the user set the actual volume the clips should be using, when played back.
When scrolling through the alternatives, I found that maybe a TrackBar would be the right thing to use, for this purpose. I did look through the examples found in the manual, and also looked at classes 13, 14 and 30 of Chip's scripting series.
Then, I thought I was ready to go. But, it sure seems I am missing something quite basic in the whole concept here. Any feedback is greatly appreciated. As it stands, the TrackBar won't even show up under the Help and Settings in the App manager.
Here is what I have got so far. By using the UI-design app, the following line was automatically created and added to my XML file:
<dialog id="Playback"><group id="Volume"><trackbar id="VolumeTrackBar" minimum="10" maximum="90" position="35" ticks="auto" tickposition="both" tickinterval="10" downarrow="right" thumb="variable"/><![CDATA[Sound clip volume]]></group></dialog></language>
Then in my VBS code, I changed the MenuProc function (created by the Framework app), to read as follows:
dim vtb
Function MenuProc(menuObj, id)
MenuProc = False
Select Case id
Case "menu_help"
If Not SO_StandardHelpDialog Is Nothing Then
Queue "ScriptHelp"
End If
MenuProc = True
Exit Function
Case "VolumeTrackBar":
VTB = VolumeTrackBar
MenuProc = True
Exit Function
End Select
End Function
Speak VTB &". "
What am I missing here? What do I need to change, in the code, or in the XML?
Thanks alot,
------=_NextPart_000_0032_01CD0912.EDF61080
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19190">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>OK, I have an app, which will playback some sound
clips. All that stuff works OK.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>I wanted to let the user set the actual volume the
clips should be using, when played back.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>When scrolling through the alternatives, I found
that maybe a TrackBar would be the right thing to use, for this purpose. I did
look through the examples found in the manual, and also looked at classes 13, 14
and 30 of Chip's scripting series.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>Then, I thought I was ready to go. But, it sure
seems I am missing something quite basic in the whole concept here. Any feedback
is greatly appreciated. As it stands, the TrackBar won't even show up under the
Help and Settings in the App manager.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial>Here is what I have got so far. By using the
UI-design app, the following line was automatically created and added to my XML
file:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=2 face=Arial> <dialog id="Playback"><group
id="Volume"><trackbar id="VolumeTrackBar" minimum="10" maximum="90"
position="35" ticks="auto" tickposition="both" tickinterval="10"
downarrow="right" thumb="variable"/><![CDATA[Sound clip
volume]]></group></dialog></language></FONT></DIV>
<DIV> </DIV><FONT size=2 face=Arial>
<DIV><BR>Then in my VBS code, I changed the MenuProc function (created by the
Framework app), to read as follows:</DIV>
<DIV> </DIV>
<DIV>dim vtb<BR>Function MenuProc(menuObj, id)<BR> MenuProc =
False<BR> Select Case id<BR> Case "menu_help"<BR> If Not
SO_StandardHelpDialog Is Nothing Then<BR> Queue
"ScriptHelp"<BR> End If<BR> MenuProc =
True<BR> Exit Function<BR> Case "VolumeTrackBar":
<BR> VTB = VolumeTrackBar<BR> MenuProc =
True<BR> Exit Function<BR> End Select<BR>End Function<BR>Speak
VTB &". "</DIV>
<DIV> </DIV>
<DIV><BR>What am I missing here? What do I need to change, in the code, or in
the XML? </DIV>
<DIV> </DIV>
<DIV>Thanks alot,</FONT></DIV></BODY></HTML>
------=_NextPart_000_0032_01CD0912.EDF61080--


