[jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: "John Robichaud" <JRobichaud@xxxxxxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Wed, 22 Oct 2008 18:32:15 -0400
Demetry,
You need to use ElIf instead of If for the second and third choices and you
are missing an EndIf at the end. Shouldn't your third choice be "nYourChoice
== 3"? Like this:
Script ChooseGame ()
var
int nYourChoice
let nYourChoice = DlgSelectItemInList(GameList, WelcomeDialogWindow,
False)
if (nYourChoice == 1) then SayFormattedMessage(OT_JAWS_MESSAGE, MsgGame1)
Elif (nYourChoice == 2) then SayFormattedMessage(OT_JAWS_MESSAGE,
MsgGame2)
Elif (nYourChoice == 3) then SayFormattedMessage(OT_JAWS_MESSAGE, MsgExit)
EndIf
EndScript
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Demetry Yousifidou
Sent: Wednesday, October 22, 2008 5:33 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Scripting question for creating a window with
text and also hyperlinks or similar.
Hi John,
Script ChooseGame ()
var
int nYourChoice
let nYourChoice = DlgSelectItemInList(GameList, WelcomeDialogWindow,
False)
if (nYourChoice == 1) then SayFormattedMessage(OT_JAWS_MESSAGE, MsgGame1)
if (nYourChoice == 2) then SayFormattedMessage(OT_JAWS_MESSAGE, MsgGame2)
if (nYourChoice == 2) then SayFormattedMessage(OT_JAWS_MESSAGE, MsgExit)
EndScript
Demetry
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
- References:
- [jawsscripts] Scripting question for creating a window with text and also hyperlinks or similar.
- From: Demetry Yousifidou
- [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: John Robichaud
- [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: Demetry Yousifidou
- [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: John Robichaud
- [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: Demetry Yousifidou
Other related posts:
- » [jawsscripts] Scripting question for creating a window with text and also hyperlinks or similar.
- » [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- » [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- » [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- » [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- » [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- » [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- » [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- [jawsscripts] Scripting question for creating a window with text and also hyperlinks or similar.
- From: Demetry Yousifidou
- [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: John Robichaud
- [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: Demetry Yousifidou
- [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: John Robichaud
- [jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.
- From: Demetry Yousifidou