[jawsscripts] Re: Scripting question for creating a window with text and also hyperlinks or similar.

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

Other related posts: