// Constants var L_PhoneNumberLegit_Text = "\\map=\"one \\pau=100\\ eight hundred R U le jit\"=\"1-800-R U LEGIT\"\\"; var g_strRegionSetting = ""; var g_strKeyboardSetting = ""; var g_strLangSetting = " "; // ************************* Common Scripts/Functions ************************* // function Agent_AddCommonCommands() { g_AgentCharacter.Commands.RemoveAll(); var L_AddCommonCommands1_Text = "&Close Menu"; g_AgentCharacter.Commands.Add("CloseMenu", L_AddCommonCommands1_Text); if (g_bAgentShowSpecialISPCommands) { var L_AddCommonCommands2_Text = "Tell me &about Internet signup"; var L_AddCommonCommands3_Text = "&Re-start Internet signup"; var L_AddCommonCommands4_Text = "&Skip Internet signup"; try { g_AgentCharacter.Commands.Add(kpszISPSpecialCommand1, L_AddCommonCommands2_Text); g_AgentCharacter.Commands.Add(kpszISPSpecialCommand2, L_AddCommonCommands3_Text); g_AgentCharacter.Commands.Add(kpszISPSpecialCommand3, L_AddCommonCommands4_Text); } catch (e) { } } } function Agent_AddAssistantanceCommand() { if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { var L_AddAssistantanceCommand1_Text = "Who can I call &for more assistance?"; g_AgentCharacter.Commands.Add("Agent_OnCommand_AboutAssistance", L_AddAssistantanceCommand1_Text); } } function Agent_OnCommand_AboutAssistance() { Agent_StopAll(); var L_AboutAssistance1_Text = "Contact your computer manufacturer at %s."; var re = /%s/i; var L_AboutAssistance2_Text = "Contact your computer manufacturer."; // NOTE: OEM phone number. This comes from an API // exposed by oobeinfo.ini and can be configured by the OEM. var strPhoneNumber = window.external.GetSupportPhoneNum(); if (strPhoneNumber == "") Agent_Speak(L_AboutAssistance2_Text); else Agent_Speak(L_AboutAssistance1_Text.replace(re, strPhoneNumber)); Agent_Play("ReadReturn"); } function Agent_AddWhatToDoNextCommand() { var L_AddWhatToDoNextCommand1_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnCommand_WhatToDoNext", L_AddWhatToDoNextCommand1_Text); } function Agent_OnCommand_WhatToDoNext() { Agent_StopAll(); if (g.btnNext.style.visibility == 'visible') { if (window.parent.document.dir == "rtl") { Agent_MoveToElement(g.btnNext, "TopCenterWidth"); } else { Agent_MoveToElement(g.btnNext, "TopLeft"); } Agent_Play("PointDown"); var L_WhatToDoNext1_Text = "To continue, click the Next button."; Agent_Speak(L_WhatToDoNext1_Text); Agent_Play("RestPose"); } if (g.btnBack.style.visibility == 'visible') { if (window.parent.document.dir == "rtl") { Agent_MoveToElement(g.btnBack, "TopLeft"); } else { Agent_MoveToElement(g.btnBack, "TopCenterWidth"); } Agent_Play("PointDown"); var L_WhatToDoNext2_Text = "To return to the previous step, click the Back button."; Agent_Speak(L_WhatToDoNext2_Text); Agent_Play("RestPose"); } if (g.btnSkip.style.visibility == 'visible') { if (window.parent.document.dir == "rtl") { Agent_MoveToElement(g.btnSkip, "TopCenterWidth"); } else { Agent_MoveToElement(g.btnSkip, "TopLeft"); } Agent_Play("PointDown"); var L_WhatToDoNext3_Text = "You can also skip this entire step by clicking the Skip button."; Agent_Speak(L_WhatToDoNext3_Text); Agent_Play("RestPose"); } } function Agent_DoSpecialISPCommand1() { // This handles the ISP special signup command // Tell me about Internet signup Agent_MoveToElement(document.all("AssistImg"),"BottomCenterWidthExactBottom"); var L_ISPSpecialTellMeAboutInternetSignup1_Text = "You are currently working through the process of signing up for Internet access."; Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup1_Text); var L_ISPSpecialTellMeAboutInternetSignup2_Text = "If you have any trouble continuing, click me or press F1,"; Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup2_Text); var L_ISPSpecialTellMeAboutInternetSignup3_Text = "And I'll display commands on my menu you can choose to start again or skip to the next section."; Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup3_Text); } function Agent_DoSpecialISPCommand2() { // This handles the ISP special signup command // Re-start Internet signup // call the OOBE function to go back to the isp.htm page window.parent.GoBack(); } function Agent_DoSpecialISPCommand3() { // This handles the ISP special signup command // Skip the Internet signup window.parent.GoCancel(); } function Agent_EncourageNextButton() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_EncourageNextButton1_Text = "Click the Next button. | Just click the Next button! | Please click the Next button. | Click the Next button to move on to the next step."; Agent_Speak(L_EncourageNextButton1_Text); Agent_Play("RestPose"); } function Agent_OnF1() { var L_OnF1_Text = "How can I help you? | How can I assist you?"; Agent_Speak(L_OnF1_Text); Agent_Play("RestPose"); } // ************************* Pre-Welcome Page Scripts ************************* // function Agent_PreWelcome() { g_bAgentPreWelcome = true; Agent_PreWelcomeScript(); } function Agent_PreWelcomeScript() { Agent_Play("Shimmer"); var L_PreWelcomeScript1_Text = "Welcome to Windows XP!";//product name is hard coded for now...API doesn't appear to be loaded at this point in the script, otherwise, we could use g_ProductName Agent_Speak(L_PreWelcomeScript1_Text); var L_PreWelcomeScript2_Text = "I'm here to help you set up your computer."; Agent_Speak(L_PreWelcomeScript2_Text); var L_PreWelcomeScript3_Text = "I can explain things as you move along."; Agent_Speak(L_PreWelcomeScript3_Text); Agent_MoveToElement(document.all("AssistImg"), "LeftCenter"); // Make the Assistant span visible here, it should be hidden at this point. var L_PreWelcomeScript4_Text = "Any time you need help, just click me with the mouse or press the F1 key."; Agent_Speak(L_PreWelcomeScript4_Text); Agent_Play("PointLeft"); var L_PreWelcomeScript5_Text = "I'll be right here if you need me."; Agent_Speak(L_PreWelcomeScript5_Text); Agent_Play("RestPose"); g_AgentRequestHideImage = g_AgentCharacter.Hide(); } // ************************* Welcome Page Scripts ************************* // function Agent_WelcomeAddCommands() { // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. var L_WelcomeAddCommands1_Text = "&Tell me about this process"; var L_WelcomeAddCommands2_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnWelcomeCommand_AboutProcess", L_WelcomeAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_OnWelcomeCommand_WhatToDoNext", L_WelcomeAddCommands2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM, otherwise don't display 'Call for assistance' menu option { Agent_AddAssistantanceCommand(); } } function Agent_WelcomeIntro() { // If we haven't completely finished playing the intro, // play it. Otherwise, play the shorter version. if (!g_bAgentPreWelcome) Agent_PreWelcome(); else return; } function Agent_OnWelcomeCommand_WhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_MoveToElement(g.btnNext, "TopCenterWidth"); } else { Agent_MoveToElement(g.btnNext, "TopLeft"); } Agent_Play("PointDown"); var L_WelcomeWhatToDoNext1_Text = "If you are ready to begin, click the Next button."; Agent_Speak(L_WelcomeWhatToDoNext1_Text); Agent_Play("RestPose"); } function Agent_OnWelcomeCommand_AboutProcess() { Agent_StopAll(); var L_AboutProcess1_Text = "What you see behind me is the first in a series of screens designed to help you make sure that your computer is set up the way you want."; Agent_Speak(L_AboutProcess1_Text); var L_AboutProcess2_Text = "Each screen will ask you to make a choice or type some information, or it will advise you about what to do next."; Agent_Speak(L_AboutProcess2_Text); var L_AboutProcess3_Text = "Here's a quick preview of the steps we'll take in the next few minutes:"; Agent_Speak(L_AboutProcess3_Text); var L_AboutProcess4_Text = "First, we'll make sure your computer hardware, like your speakers, keyboard, and clock, are working properly."; Agent_Speak(L_AboutProcess4_Text); var L_AboutProcess5_Text = "We'll also make sure your computer is correctly joined to a network if you want it to be."; Agent_Speak(L_AboutProcess5_Text); var L_AboutProcess6_Text = "Second, we'll review the licensing agreement that outlines the terms of use of %1."; Agent_Speak(ApiObj.FormatMessage(L_AboutProcess6_Text, g_ProductName)); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { var L_AboutProcess7_Text = "If your computer has a working modem or network connection, you'll have the option to register with Microsoft and %1 so we can send you information on product updates and offers you might be interested in."; Agent_Speak(ApiObj.FormatMessage(L_AboutProcess7_Text, g_OEMNameStr)); } else //Product is retail { var L_AboutProcess7_Text = "If your computer has a working modem or network connection, you'll have the option to register with Microsoft so we can send you information on product updates and offers you might be interested in."; Agent_Speak(L_AboutProcess7_Text); } var L_AboutProcess8_Text = "And you'll also have the option to verify the authenticity of %1 to make sure you're using a legal copy."; Agent_Speak(ApiObj.FormatMessage(L_AboutProcess8_Text, g_ProductName)); var L_AboutProcess9_Text = "Third, I'll help you connect to the Internet if you like."; Agent_Speak(L_AboutProcess9_Text); var L_AboutProcess10_Text = "If you decide to skip this step, you can always connect on your own later."; Agent_Speak(L_AboutProcess10_Text); var L_AboutProcess11_Text = "And fourth, I'll help you make this computer customizable for each person who will use it. "; Agent_Speak(L_AboutProcess11_Text); var L_AboutProcess12_Text = "That's about it. We don't have far to go, so let's get started!"; Agent_Speak(L_AboutProcess12_Text); if (window.parent.document.dir == "rtl") { Agent_MoveToElement(g.btnNext, "TopCenterWidth"); } else { Agent_MoveToElement(g.btnNext, "TopLeft"); } Agent_Play("PointDown"); var L_AboutProcess13_Text = "To begin, click the Next button."; Agent_Speak(L_AboutProcess13_Text); Agent_Play("RestPose"); } // ************************* Time Zone Page (timezone.htm) Scripts ************************* // function Agent_TimeZoneAddCommands() { var L_TimeZoneCommand1_Text = "&Tell me about this step"; var L_TimeZoneCommand2_Text = "H&ow do I select my time zone?"; g_AgentCharacter.Commands.Add("Agent_OnTimeZoneCommand_AboutStep", L_TimeZoneCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnTimeZoneCommand_SelectZone", L_TimeZoneCommand2_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnTimeZonePreDisplayMenu() //Display 'What is daylight savings time?' menu item if applicable, remove if not. { if (g.document.all("daylight").disabled) { try { g_AgentCharacter.Commands.Remove("Agent_OnTimeZoneCommand_DaylightSavings"); } catch (e) { } } else { var L_TimeZoneMenuCommand3_Text = "Wh&at is daylight savings time?"; try { g_AgentCharacter.Commands.Insert("Agent_OnTimeZoneCommand_DaylightSavings","Agent_OnCommand_WhatToDoNext",true,L_TimeZoneMenuCommand3_Text); } catch (e) { } } } function Agent_OnTimeZoneCommand_AboutStep() { var L_ExplainTimeZoneStep1_Text = "Tell us the time zone in which you'll use your computer, and Windows will set your computer's clock accordingly."; Agent_Speak(L_ExplainTimeZoneStep1_Text); var L_ExplainTimeZoneStep2_Text = "And, if you like, you can have Windows automatically update the clock for daylight savings time."; Agent_Speak(L_ExplainTimeZoneStep2_Text); var L_ExplainTimeZoneStep3_Text = "This is the last step that involves your hardware."; Agent_Speak(L_ExplainTimeZoneStep3_Text); var L_ExplainTimeZoneStep4_Text = "Next, we'll move on to the license agreement."; Agent_Speak(L_ExplainTimeZoneStep4_Text); } function Agent_OnTimeZoneCommand_SelectZone() { Agent_GestureAtElement(g.document.all("selTimeZone"),"Left"); var L_TellUserHowToSelectTimeZone1_Text = "The time zones in this list appear as Greenwich Mean Time, or GMT, plus or minus a number of hours."; Agent_Speak(L_TellUserHowToSelectTimeZone1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("selTimeZone"),"Left"); var L_TellUserHowToSelectTimeZone2_Text = "Click here or press the Tab key on your keyboard until you reach it. "; Agent_Speak(L_TellUserHowToSelectTimeZone2_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("selTimeZone"),"Right"); var L_TellUserHowToSelectTimeZone3_Text = "Then click these small arrow buttons, or use the up and down arrow keys on your keyboard, to scroll through the time zones. "; Agent_Speak(L_TellUserHowToSelectTimeZone3_Text); Agent_Play("RestPose"); var L_TellUserHowToSelectTimeZone4_Text = "When you see the time zone you want, click it or press Enter on your keyboard."; Agent_Speak(L_TellUserHowToSelectTimeZone4_Text); var L_TellUserHowToSelectTimeZone5_Text = "The time zone you just selected will appear highlighted."; Agent_Speak(L_TellUserHowToSelectTimeZone5_Text); Agent_GestureAtElement(g.document.all("daylight"),"Left"); var L_TellUserHowToSelectTimeZone6_Text = "If you live in an area that uses daylight savings time, position your pointer here, and click once to 'check' this option."; Agent_Speak(L_TellUserHowToSelectTimeZone6_Text); Agent_Play("RestPose"); var L_TellUserHowToSelectTimeZone7_Text = "Windows will automatically adjust your computer's clock twice a year."; Agent_Speak(L_TellUserHowToSelectTimeZone7_Text); } function Agent_OnTimeZoneCommand_DaylightSavings() { Agent_GestureAtElement(g.document.all("daylight"),"Left"); var L_TellUserAboutDaylightOption1_Text = "In some time zones, clocks are set ahead and back during certain times of the year to adjust for the differences in the amount of daylight."; Agent_Speak(L_TellUserAboutDaylightOption1_Text); Agent_Play("RestPose"); var L_TellUserAboutDaylightOption2_Text = "If you want Windows to automatically adjust your computer's clock when this occurs, check this option by positioning the pointer here and then clicking once."; Agent_Speak(L_TellUserAboutDaylightOption2_Text); } // ************************* OEMHW Page (oemhw.htm) Scripts ************************* // function Agent_OEMHWAddCommands() { var L_OEMHWMenuCommand1_Text = "&Tell me about this step"; var L_OEMHWMenuCommand2_Text = "H&ow do I know if my sound system is working?"; var L_OEMHWMenuCommand3_Text = "Wh&at if I my sound isn't working?"; var L_OEMHWMenuCommand4_Text = "How &do I indicate my answer?"; g_AgentCharacter.Commands.Add("Agent_OnOEMHWAboutThisScreen", L_OEMHWMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnOEMHWHowDoIKnow", L_OEMHWMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnOEMHWIsNotWorking", L_OEMHWMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnOEMHWIndicateAnswer", L_OEMHWMenuCommand4_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnOEMHWAboutThisScreen() { var L_OEMHWAboutThisScreen1_Text = "This is the screen where you make sure your computer's sound system is working."; Agent_Speak(L_OEMHWAboutThisScreen1_Text); var L_OEMHWAboutThisScreen2_Text = "The sound system is made up of your speakers, a sound card inside your computer, and the %1 software that lets you play sound."; Agent_Speak(ApiObj.formatMessage(L_OEMHWAboutThisScreen2_Text, g_ProductName)); } function Agent_OnOEMHWHowDoIKnow() { var L_OEMHWHowDoIKnow1_Text = "If you're hearing a sound right now, then it's working."; Agent_Speak(L_OEMHWHowDoIKnow1_Text); var L_OEMHWHowDoIKnow2_Text = "If you don't hear a sound, first check the speaker volume to make sure it is not set too low."; Agent_Speak(L_OEMHWHowDoIKnow2_Text); var L_OEMHWHowDoIKnow3_Text = "If that doesn't fix things, we'll look at other possibilities."; Agent_Speak(L_OEMHWHowDoIKnow3_Text); } function Agent_OnOEMHWIsNotWorking() { var L_OEMHWIsNotWorking1_Text = "First, make sure that your speakers are switched on."; Agent_Speak(L_OEMHWIsNotWorking1_Text); var L_OEMHWIsNotWorking2_Text = "Some speakers have a light to indicate that they're on."; Agent_Speak(L_OEMHWIsNotWorking2_Text); var L_OEMHWIsNotWorking3_Text = "Second, make sure they're set to a volume that you can hear."; Agent_Speak(L_OEMHWIsNotWorking3_Text); var L_OEMHWIsNotWorking4_Text = "If you're still not hearing sound coming from them..."; Agent_Speak(L_OEMHWIsNotWorking4_Text); var L_OEMHWIsNotWorking5_Text = "Third, make sure that your speakers are plugged into an electrical outlet, and that they're also properly plugged into your computer."; Agent_Speak(L_OEMHWIsNotWorking5_Text); var L_OEMHWIsNotWorking6_Text = "It's easy to mistake your computer's microphone plug for its speaker plug."; Agent_Speak(L_OEMHWIsNotWorking6_Text); var L_OEMHWIsNotWorking7_Text = "Fourth, if you have a set of stereo speakers, make sure they're connected to each other."; Agent_Speak(L_OEMHWIsNotWorking7_Text); var L_OEMHWIsNotWorking8_Text = "Finally, if you're still not hearing sound, try borrowing a set of speakers from another computer."; Agent_Speak(L_OEMHWIsNotWorking8_Text); var L_OEMHWIsNotWorking9_Text = "If the borrowed speakers work but your own speakers don't, then you need to replace or repair your speakers."; Agent_Speak(L_OEMHWIsNotWorking9_Text); } function Agent_OnOEMHWIndicateAnswer() { Agent_GestureAtElement(g.document.all("Sound_Yes"), "Left"); var L_OEMHWIndicateAnswer1_Text = "Simply position the mouse pointer in the white circle to the left of your answer,"; Agent_Speak(L_OEMHWIndicateAnswer1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("radioNoSound"), "Left"); var L_OEMHWIndicateAnswer2_Text = "and click once."; Agent_Speak(L_OEMHWIndicateAnswer2_Text); Agent_Play("RestPose"); var L_OEMHWIndicateAnswer3_Text = "If you want to use your keyboard to indicate your answer, press the Tab key until you see a faint rectangle around the white circle you want to fill in, and press the Spacebar."; Agent_Speak(L_OEMHWIndicateAnswer3_Text); } // ************************* CompName Page (compname.htm) Scripts ************************* // function Agent_CompNameAddCommands() { var L_CompNameMenuCommand1_Text = "&Tell me about this step"; var L_CompNameMenuCommand2_Text = "H&ow do I rename the computer later?"; g_AgentCharacter.Commands.Add("Agent_OnCompNameAboutThisScreen", L_CompNameMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnCompNameHowToRename", L_CompNameMenuCommand2_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnCompNameAboutThisScreen() { var L_CompNameAboutThisScreen1_Text = "This is the screen where you give your computer a name."; Agent_Speak(L_CompNameAboutThisScreen1_Text); var L_CompNameAboutThisScreen2_Text = "This name identifies your computer to other users if this computer is connected to other computers on a network."; Agent_Speak(L_CompNameAboutThisScreen2_Text); } function Agent_OnCompNameHowToRename() { var L_CompNameHowToRename1_Text = "After you finish setting up Windows, click Control Panel on the Start menu."; Agent_Speak(L_CompNameHowToRename1_Text); var L_CompNameHowToRename2_Text = "Click the System icon under Performance and Maintenance and then follow the instructions on the Computer Name tab."; Agent_Speak(L_CompNameHowToRename2_Text); var L_CompNameHowToRename3_Text = "If you forget these steps, click Help and Support on the Start menu to find the answer to your questions, and other valuable information."; Agent_Speak(L_CompNameHowToRename3_Text); } // ************************* SECURITYPASS Page (security.htm) Scripts ************************* // function Agent_SECURITYPASSAddCommands() { var L_SECURITYPASSMenuCommand1_Text = "&Tell me about this step"; var L_SECURITYPASSMenuCommand2_Text = "Wh&at's the best way to create a password?"; g_AgentCharacter.Commands.Add("Agent_OnSECURITYPASSAboutThisScreen", L_SECURITYPASSMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnSECURITYPASSBestWay", L_SECURITYPASSMenuCommand2_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnSECURITYPASSAboutThisScreen() { var L_SECURITYPASSAboutThisScreen1_Text = "This is the screen where you create a password if you want to protect this computer from unauthorized access."; Agent_Speak(L_SECURITYPASSAboutThisScreen1_Text); var L_SECURITYPASSAboutThisScreen2_Text = "One thing to note: if this computer is connected to other computers on a network, the individual who logs on with the \"Administrator\" user name and the valid password can access the entire network."; Agent_Speak(L_SECURITYPASSAboutThisScreen2_Text); var L_SECURITYPASSAboutThisScreen3_Text = "So, it's strongly recommended that you require an Administrator password to protect your computer-- and your network, if you have one."; Agent_Speak(L_SECURITYPASSAboutThisScreen3_Text); } function Agent_OnSECURITYPASSBestWay() { var L_SECURITYPASSBestWay1_Text = "To improve the security of a password, it should contain at least two of these elements: uppercase letters, lowercase letters, and numbers."; Agent_Speak(L_SECURITYPASSBestWay1_Text); var L_SECURITYPASSBestWay2_Text = "Also, the more random the sequence of characters, the more secure the password."; Agent_Speak(L_SECURITYPASSBestWay2_Text); var L_SECURITYPASSBestWay3_Text = "Passwords can be up to 127 characters long."; Agent_Speak(L_SECURITYPASSBestWay3_Text); var L_SECURITYPASSBestWay4_Text = "But, if you're using Windows on a network that also has computers using Windows 95 or Windows 98,and you want to be able to log on to your network from those computers, consider using passwords not longer than 14 characters."; Agent_Speak(L_SECURITYPASSBestWay4_Text); } // ************************* JOINDOMAIN Page (jndomain.htm) Scripts ************************* // function Agent_JOINDOMAINAddCommands() { var L_JOINDOMAINMenuCommand1_Text = "&Tell me about this step"; var L_JOINDOMAINMenuCommand2_Text = "Wh&at's a domain?"; var L_JOINDOMAINMenuCommand3_Text = "H&ow do I join a domain?"; var L_JOINDOMAINMenuCommand4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINAboutThisScreen", L_JOINDOMAINMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINDifference", L_JOINDOMAINMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINHowToName", L_JOINDOMAINMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINWhatToDoNext", L_JOINDOMAINMenuCommand4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnJOINDOMAINAboutThisScreen() { var L_JOINDOMAINAboutThisScreen1_Text = "This is the screen where you decide whether you want to make this computer a member of a domain or not."; Agent_Speak(L_JOINDOMAINAboutThisScreen1_Text); var L_JOINDOMAINAboutThisScreen2_Text = "If you choose to join a domain, you must type the name of the domain that this computer is joining."; Agent_Speak(L_JOINDOMAINAboutThisScreen2_Text); } function Agent_OnJOINDOMAINDifference() { var L_JOINDOMAINDifference1_Text = "A domain is a group of computers that are administered as a unit."; Agent_Speak(L_JOINDOMAINDifference1_Text); var L_JOINDOMAINDifference2_Text = "For example, a business might add all the computers in its Seattle office to a domain so that they share the same access privileges and connect to the same printers."; Agent_Speak(L_JOINDOMAINDifference2_Text); var L_JOINDOMAINDifference3_Text = "If you're not sure which option you want, select No and click the Next button."; Agent_Speak(L_JOINDOMAINDifference3_Text); } function Agent_OnJOINDOMAINHowToName() { Agent_GestureAtElement(g.document.all("radioYesDomain"), "Left"); var L_JOINDOMAINHowToName1_Text = "If you check the option to join a domain,"; Agent_Speak(L_JOINDOMAINHowToName1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("textboxDomain"), "Left"); var L_JOINDOMAINHowToName2_Text = "you can type a name in the box below that option."; Agent_Speak(L_JOINDOMAINHowToName2_Text); Agent_Play("RestPose"); var L_JOINDOMAINHowToName3_Text = "You can't type a name if you didn't choose the join domain option."; Agent_Speak(L_JOINDOMAINHowToName3_Text); var L_JOINDOMAINHowToName4_Text = "So, the box remains gray to indicate that you can't type in it until you choose the join domain option."; Agent_Speak(L_JOINDOMAINHowToName4_Text); var L_JOINDOMAINHowToName5_Text = "If you're joining this computer to a domain, ask your network administrator for a valid domain name."; Agent_Speak(L_JOINDOMAINHowToName5_Text); var L_JOINDOMAINHowToName6_Text = "If you're not joining a domain, you won't have to specify a name."; Agent_Speak(L_JOINDOMAINHowToName6_Text); } function Agent_OnJOINDOMAINWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_JOINDOMAINWhatToDoNext1_Text = "After you make a selection, click the Next button."; Agent_Speak(L_JOINDOMAINWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_JOINDOMAINWhatToDoNext2_Text = "You can also choose to go back to the previous screen by clicking the Back button."; Agent_Speak(L_JOINDOMAINWhatToDoNext2_Text); Agent_Play("RestPose"); } // ************************* JNDOM_A Page (jndom_a.htm) Scripts ************************* function Agent_JNDOM_AAddCommands() { var L_JNDOMAMenuCommand1_Text = "&Tell me about this step"; var L_JNDOMAMenuCommand2_Text = "How do I enter the user name and &password?"; var L_JNDOMAMenuCommand3_Text = "Wh&at's a domain?"; var L_JNDOMAMenuCommand4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AAboutThisStep", L_JNDOMAMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AHowToEnter", L_JNDOMAMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AWhatIsDomain", L_JNDOMAMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AWhatToDoNext", L_JNDOMAMenuCommand4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnJNDOM_AAboutThisStep() { var L_JNDOM_A_AboutThisStep1_Text = "This is the screen where you identify the person who is authorized to join this computer to a domain."; Agent_Speak(L_JNDOM_A_AboutThisStep1_Text); } function Agent_OnJNDOM_AHowToEnter() { Agent_GestureAtElement(g.textboxDomUser, "Right"); var L_JNDOM_A_HowToEnter1_Text = "The name you type here must be unique among the other user names within the domain."; Agent_Speak(L_JNDOM_A_HowToEnter1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.textboxDomPass, "Right"); var L_JNDOM_A_HowToEnter2_Text = "The password you type here must match the password in that user's account."; Agent_Speak(L_JNDOM_A_HowToEnter2_Text); Agent_Play("RestPose"); var L_JNDOM_A_HowToEnter3_Text = "If you don't know which user name and password to use, contact your network administrator."; Agent_Speak(L_JNDOM_A_HowToEnter3_Text); } function Agent_OnJNDOM_AWhatIsDomain() { var L_JNDOM_A_WhatIsDomain1_Text = "A domain is a group of computers that are administered as a unit."; Agent_Speak(L_JNDOM_A_WhatIsDomain1_Text); var L_JNDOM_A_WhatIsDomain2_Text = "For example, a business might add all the computers in its Seattle office to a domain so that they share the same access privileges and connect to the same printers."; Agent_Speak(L_JNDOM_A_WhatIsDomain2_Text); Agent_Play("RestPose"); } function Agent_OnJNDOM_AWhatToDoNext() { Agent_GestureAtElement(g.textboxDomUser, "Right"); var L_JNDOM_A_WhatToDoNext1_Text = "After you type the user name here"; Agent_Speak(L_JNDOM_A_WhatToDoNext1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.textboxDomPass, "Right"); var L_JNDOM_A_WhatToDoNext2_Text = "and that user's password here,"; Agent_Speak(L_JNDOM_A_WhatToDoNext2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_JNDOM_A_WhatToDoNext3_Text = "click the Next button."; Agent_Speak(L_JNDOM_A_WhatToDoNext3_Text); Agent_Play("RestPose"); } // ************************* Activation Page (activate.htm) Scripts ************************* // function Agent_ActivationAddCommands() { var L_ActivationMenuCommand1_Text = "&Tell me about this step"; var L_ActivationMenuCommand2_Text = "Tell &me about activation"; var L_ActivationMenuCommand3_Text = "H&ow do I activate later?"; var L_ActivationMenuCommand4_Text = "How &do I activate if I'm not connected to the Internet?"; var L_ActivationMenuCommand5_Text = "Wh&at happens if I don't activate?"; var L_ActivationMenuCommand6_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnActivationAboutThisScreen", L_ActivationMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationAboutActivation", L_ActivationMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationHowToActivateLater", L_ActivationMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationHowToActivateUnconnected", L_ActivationMenuCommand4_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationWhatHappensNoActivate", L_ActivationMenuCommand5_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationWhatToDoNext", L_ActivationMenuCommand6_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnActivationAboutThisScreen() { Agent_MoveToElement(g.rb_act_2, "Left"); var L_ActivationAboutThisScreen1_Text = "This is the screen where you decide whether to activate %1 now or later."; Agent_Speak(ApiObj.FormatMessage(L_ActivationAboutThisScreen1_Text, g_ProductName)); var L_ActivationAboutThisScreen2_Text = "If you wait until later, you can run the Product Activation Wizard from the Start menu."; Agent_Speak(L_ActivationAboutThisScreen2_Text); var L_ActivationAboutThisScreen3_Text = "And we'll remind you every few days to activate Windows so that you can continue to use it."; Agent_Speak(L_ActivationAboutThisScreen3_Text); } function Agent_OnActivationAboutActivation() { var L_ActivationAboutActivation1_Text = "When you get a new debit card or credit card from your bank, your bank typically asks you to 'activate' the card before you can begin using it."; Agent_Speak(L_ActivationAboutActivation1_Text); var L_ActivationAboutActivation2_Text = "Activation protects you and your bank from unauthorized use of your card."; Agent_Speak(L_ActivationAboutActivation2_Text); var L_ActivationAboutActivation3_Text = "%1 activation works the same way, except that you can use %2 for the specified activation period before you're required to activate it."; Agent_Speak(ApiObj.FormatMessage(L_ActivationAboutActivation3_Text, g_ProductName, g_ProductName)); } function Agent_OnActivationHowToActivateLater() { var L_ActivationHowToActivateLater1_Text = "If you skip activation for now, a small reminder will appear on the %1 desktop every few days."; Agent_Speak(ApiObj.FormatMessage(L_ActivationHowToActivateLater1_Text, g_ProductName)); var L_ActivationHowToActivateLater2_Text = "You can then run the Product Activation Wizard by going to the Start menu and clicking Activate Windows."; Agent_Speak(L_ActivationHowToActivateLater2_Text); var L_ActivationHowToActivateLater3_Text = "If you forget these steps, go to the Start menu and click Help and Support to find the answer to your questions and other valuable information."; Agent_Speak(L_ActivationHowToActivateLater3_Text); } function Agent_OnActivationHowToActivateUnconnected() { Agent_GestureAtElement(g.rb_act_2, "Left"); var L_ActivationHowToActivateUnconnected1_Text = "Simply choose \"No\" here."; Agent_Speak(L_ActivationHowToActivateUnconnected1_Text); Agent_Play("RestPose"); var L_ActivationHowToActivateUnconnected2_Text = "Once you finish setting up Windows, you can run the Product Activation Wizard by clicking Activate Windows on the Start menu."; Agent_Speak(L_ActivationHowToActivateUnconnected2_Text); var L_ActivationHowToActivateUnconnected3_Text = "The wizard will show you a telephone number that you can call to activate Windows over the phone."; Agent_Speak(L_ActivationHowToActivateUnconnected3_Text); } function Agent_OnActivationWhatHappensNoActivate() { var L_ActivationWhatHappensNoActivate1_Text = "You can continue using %1 until the activation period expires."; Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate1_Text, g_ProductName)); var L_ActivationWhatHappensNoActivate2_Text = "But at the end of that period, you must activate %1 in order to continue using it."; Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate2_Text, g_ProductName)); var L_ActivationWhatHappensNoActivate3_Text = "If you let the activation period expire, you will no longer be able to use %1."; Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate3_Text, g_ProductName)); } function Agent_OnActivationWhatToDoNext() { Agent_GestureAtElement(g.act_spn1, "Left"); var L_ActivationWhatToDoNext1_Text = "After you select the answer to this question,"; Agent_Speak(L_ActivationWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ActivationWhatToDoNext2_Text = "click the Next button."; Agent_Speak(L_ActivationWhatToDoNext2_Text); Agent_Play("RestPose"); } // ************************* Activation Error Page (acterror.htm) Scripts ************************* // function Agent_ActivationErrorAddCommands() { var L_ActivationErrorMenuCommand1_Text = "&Tell me about this step"; var L_ActivationErrorMenuCommand2_Text = "Tell &me about activation"; var L_ActivationErrorMenuCommand3_Text = "H&ow do I activate later?"; var L_ActivationErrorMenuCommand4_Text = "How &do I activate if I'm not connected to the Internet?"; var L_ActivationErrorMenuCommand5_Text = "Wh&at happens if I don't activate?"; g_AgentCharacter.Commands.Add("Agent_OnActivationErrorAboutThisScreen", L_ActivationErrorMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationErrorAboutActivation", L_ActivationErrorMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationErrorHowToActivateLater", L_ActivationErrorMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationErrorHowToActivateUnconnected", L_ActivationErrorMenuCommand4_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationErrorWhatHappensNoActivate", L_ActivationErrorMenuCommand5_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnActivationErrorAboutThisScreen() { var L_ActivationErrorAboutThisScreen1_Text = "This screen appears because you were unable to reach our activation center."; Agent_Speak(L_ActivationErrorAboutThisScreen1_Text); var L_ActivationErrorAboutThisScreen2_Text = "Once you finish setting up %1, you can run the Product Activation Wizard by clicking Activate Windows on the Start menu."; Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorAboutThisScreen2_Text, g_ProductName)); } function Agent_OnActivationErrorAboutActivation() { var L_ActivationErrorAboutActivation1_Text = "When you get a new debit card or credit card from your bank, your bank typically asks you to 'activate' the card before you can begin using it."; Agent_Speak(L_ActivationErrorAboutActivation1_Text); var L_ActivationErrorAboutActivation2_Text = "Activation protects you and your bank from unauthorized use of your card."; Agent_Speak(L_ActivationErrorAboutActivation2_Text); var L_ActivationErrorAboutActivation3_Text = "%1 activation works the same way, except that you can use %2 for a specified number of days before you're required to activate it."; Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorAboutActivation3_Text, g_ProductName, g_ProductName)); } function Agent_OnActivationErrorHowToActivateLater() { var L_ActivationErrorHowToActivateLater1_Text = "If you skip activation for now, a small reminder will appear on the %1 desktop every few days."; Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorHowToActivateLater1_Text, g_ProductName)); var L_ActivationErrorHowToActivateLater2_Text = "You can then run the Product Activation Wizard by going to the Start menu and clicking Activate Windows."; Agent_Speak(L_ActivationErrorHowToActivateLater2_Text); var L_ActivationErrorHowToActivateLater3_Text = "If you forget these steps, go to the Start menu and click Help and Support to find the answer to your questions and other valuable information."; Agent_Speak(L_ActivationErrorHowToActivateLater3_Text); } function Agent_OnActivationErrorHowToActivateUnconnected() { var L_ActivationErrorHowToActivateUnconnected1_Text = "Once you finish setting up Windows, you can run the Product Activation Wizard by clicking Activate Windows on the Start menu."; Agent_Speak(L_ActivationErrorHowToActivateUnconnected1_Text); var L_ActivationErrorHowToActivateUnconnected2_Text = "The wizard will show you a telephone number that you can call to activate Windows over the phone."; Agent_Speak(L_ActivationErrorHowToActivateUnconnected2_Text); } function Agent_OnActivationErrorWhatHappensNoActivate() { var L_ActivationErrorWhatHappensNoActivate1_Text = "You can continue using %1 until the Activation period expires."; Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorWhatHappensNoActivate1_Text, g_ProductName)); var L_ActivationErrorWhatHappensNoActivate2_Text = "But at the end of that period, you must activate %1 in order to continue using it."; Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorWhatHappensNoActivate2_Text, g_ProductName)); var L_ActivationErrorWhatHappensNoActivate3_Text = "If you let the Activation period expire, you will no longer be able to use %1."; Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorWhatHappensNoActivate3_Text, g_ProductName)); } // ************************* Activation Privacy Policy Page (act_plcy.htm) Scripts ************************* // function Agent_ActivationPrivacyPolicyAddCommands() { var L_ActivationPrivacyPolicyMenuCommand1_Text = "&Tell me about this step"; var L_ActivationPrivacyPolicyMenuCommand2_Text = "Tell &me about activation"; var L_ActivationPrivacyPolicyMenuCommand3_Text = "H&ow do I activate later?"; var L_ActivationPrivacyPolicyMenuCommand4_Text = "How &do I activate if I'm not connected to the Internet?"; var L_ActivationPrivacyPolicyMenuCommand5_Text = "Wh&at happens if I don't activate?"; g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyAboutThisScreen", L_ActivationPrivacyPolicyMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyAboutActivation", L_ActivationPrivacyPolicyMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyHowToActivateLater", L_ActivationPrivacyPolicyMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyHowToActivateUnconnected", L_ActivationPrivacyPolicyMenuCommand4_Text); g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyWhatHappensNoActivate", L_ActivationPrivacyPolicyMenuCommand5_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnActivationPrivacyPolicyAboutThisScreen() { var L_ActivationPrivacyPolicyAboutThisScreen1_Text = "This screen explains how your privacy is protected when you activate %1."; Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyAboutThisScreen1_Text, g_ProductName)); } function Agent_OnActivationPrivacyPolicyAboutActivation() { var L_ActivationPrivacyPolicyAboutActivation1_Text = "When you get a new debit card or credit card from your bank, your bank typically asks you to 'activate' the card before you can begin using it."; Agent_Speak(L_ActivationPrivacyPolicyAboutActivation1_Text); var L_ActivationPrivacyPolicyAboutActivation2_Text = "Activation protects you and your bank from unauthorized use of your card."; Agent_Speak(L_ActivationPrivacyPolicyAboutActivation2_Text); var L_ActivationPrivacyPolicyAboutActivation3_Text = "%1 activation works the same way, except that you can use %2 for the specified activation period before you're required to activate it."; Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyAboutActivation3_Text, g_ProductName, g_ProductName)); } function Agent_OnActivationPrivacyPolicyHowToActivateLater() { var L_ActivationPrivacyPolicyHowToActivateLater1_Text = "If you skip activation for now, a small reminder will appear on the %1 desktop every few days."; Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyHowToActivateLater1_Text, g_ProductName)); var L_ActivationPrivacyPolicyHowToActivateLater2_Text = "You can then run the Product Activation Wizard by going to the Start menu and clicking Activate Windows."; Agent_Speak(L_ActivationPrivacyPolicyHowToActivateLater2_Text); var L_ActivationPrivacyPolicyHowToActivateLater3_Text = "If you forget these steps, go to the Start menu and click Help and Support to find the answer to your questions and other valuable information."; Agent_Speak(L_ActivationPrivacyPolicyHowToActivateLater3_Text); } function Agent_OnActivationPrivacyPolicyHowToActivateUnconnected() { var L_ActivationPrivacyPolicyHowToActivateUnconnected1_Text = "Once you finish setting up Windows, you can run the Product Activation Wizard by clicking Activate Windows on the Start menu."; Agent_Speak(L_ActivationPrivacyPolicyHowToActivateUnconnected1_Text); var L_ActivationPrivacyPolicyHowToActivateUnconnected2_Text = "The wizard will show you a telephone number that you can call to activate Windows over the phone."; Agent_Speak(L_ActivationPrivacyPolicyHowToActivateUnconnected2_Text); } function Agent_OnActivationPrivacyPolicyWhatHappensNoActivate() { var L_ActivationPrivacyPolicyWhatHappensNoActivate1_Text = "You can continue using %1 until the ActivationPrivacyPolicy period expires."; Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyWhatHappensNoActivate1_Text, g_ProductName)); var L_ActivationPrivacyPolicyWhatHappensNoActivate2_Text = "But at the end of that period, you must activate %1 in order to continue using it."; Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyWhatHappensNoActivate2_Text, g_ProductName)); var L_ActivationPrivacyPolicyWhatHappensNoActivate3_Text = "If you let the ActivationPrivacyPolicy period expire, you will no longer be able to use %1."; Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyWhatHappensNoActivate3_Text, g_ProductName)); } // ************************* DSLMAIN Page (dslmain.htm) Scripts ************************* // function Agent_DSLMAINAddCommands() { var L_DSLMAINMenuCommand1_Text = "&Tell me about this step"; var L_DSLMAINMenuCommand2_Text = "&Some reasons to require a username and password"; var L_DSLMAINMenuCommand3_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnDSLMAINAboutThisScreen", L_DSLMAINMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnDSLMAINSomeReasons", L_DSLMAINMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnDSLMAINWhatToDoNext", L_DSLMAINMenuCommand3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnDSLMAINAboutThisScreen() { var L_DSLMAINAboutThisScreen1_Text = "This is the screen where you decide whether a user name and password will be required to access the Internet from this computer."; Agent_Speak(L_DSLMAINAboutThisScreen1_Text); } function Agent_OnDSLMAINSomeReasons() { var L_DSLMAINHowToMoveOn1_Text = "If you're the only person who will use this computer, then it's convenient to let %1 automatically store your user name and password."; Agent_Speak(ApiObj.FormatMessage(L_DSLMAINHowToMoveOn1_Text, g_ProductName)); var L_DSLMAINHowToMoveOn2_Text = "That way, you won't need to type that information each time you want to connect to the Internet."; Agent_Speak(L_DSLMAINHowToMoveOn2_Text); var L_DSLMAINHowToMoveOn3_Text = "But if you share this computer with others, and you don't want to share your Internet account with them, then you can protect your account with a user name and password."; Agent_Speak(L_DSLMAINHowToMoveOn3_Text); var L_DSLMAINHowToMoveOn4_Text = "For example, you might want to share this computer with your children so they can play games on it."; Agent_Speak(L_DSLMAINHowToMoveOn4_Text); var L_DSLMAINHowToMoveOn5_Text = "But you might not want them to surf the Internet without your permission."; Agent_Speak(L_DSLMAINHowToMoveOn5_Text); } function Agent_OnDSLMAINWhatToDoNext() { Agent_GestureAtElement(g.dslmain_TitleText, "Left"); var L_DSLMAINWhatToDoNext1_Text = "After you select the answer to this question,"; Agent_Speak(L_DSLMAINWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_DSLMAINWhatToDoNext2_Text = "click the Next button."; Agent_Speak(L_DSLMAINWhatToDoNext2_Text); Agent_Play("RestPose"); } // ************************* DSL_A Page (dsl_a.htm) Scripts ************************* // function Agent_DSL_AAddCommands() { var L_DSLAMenuCommand1_Text = "&Tell me about this step"; var L_DSLAMenuCommand2_Text = "Wh&at exactly is the Internet?"; var L_DSLAMenuCommand3_Text = "What &do I need to connect to the Internet?"; var L_DSLAMenuCommand4_Text = "T&ell me about Internet signup-up"; g_AgentCharacter.Commands.Add("Agent_DSL_AAboutThisStep", L_DSLAMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_DSL_AWhatIsInternet", L_DSLAMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_DSL_ANeedToConnect", L_DSLAMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_DSL_AInternetSignup", L_DSLAMenuCommand4_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_DSL_AAboutThisStep() { var L_DSL_A_AboutThisStep1_Text = "This is the screen where you set up your account with an Internet service provider, or \"ISP\" for short, so that you can connect to the Internet from this computer."; Agent_Speak(L_DSL_A_AboutThisStep1_Text); } function Agent_DSL_AWhatIsInternet() { var L_DSL_A_WhatIsInternet1_Text = "The Internet is a worldwide network of computers."; Agent_Speak(L_DSL_A_WhatIsInternet1_Text); var L_DSL_A_WhatIsInternet2_Text = "If you have access to the Internet, you can retrieve information that is publicly available from millions of sources, including schools, governments, businesses, and individuals."; Agent_Speak(L_DSL_A_WhatIsInternet2_Text); var L_DSL_A_WhatIsInternet3_Text = "The World Wide Web, or \"the Web\" for short, is a system for exploring the Internet by using hyperlinks."; Agent_Speak(L_DSL_A_WhatIsInternet3_Text); var L_DSL_A_WhatIsInternet4_Text = "Hyperlinks are text or pictures that, when clicked, take you to another Web page or another part of the same page, or carry out a specific action like opening a program."; Agent_Speak(L_DSL_A_WhatIsInternet4_Text); var L_DSL_A_WhatIsInternet5_Text = "To navigate the Web, you use a Web browser, which is a program that displays information on the Internet in the form of text, pictures, sounds, and digital movies."; Agent_Speak(L_DSL_A_WhatIsInternet5_Text); var L_DSL_A_WhatIsInternet6_Text = "Microsoft offers two Web browsers:"; Agent_Speak(L_DSL_A_WhatIsInternet6_Text); var L_DSL_A_WhatIsInternet7_Text = "MSN Explorer, which is great for beginners and people who use their computers at home, and Internet Explorer."; Agent_Speak(L_DSL_A_WhatIsInternet7_Text); } function Agent_DSL_ANeedToConnect() { var L_DSL_A_NeedToConnect1_Text = "You need only three things to connect to the Internet."; Agent_Speak(L_DSL_A_NeedToConnect1_Text); var L_DSL_A_NeedToConnect2_Text = "First, you need a computer, which you already have."; Agent_Speak(L_DSL_A_NeedToConnect2_Text); var L_DSL_A_NeedToConnect3_Text = "Second, you need an Internet service provider, or \"ISP\" for short."; Agent_Speak(L_DSL_A_NeedToConnect3_Text); var L_DSL_A_NeedToConnect4_Text = "An ISP provides Internet service or access, in the same way that your phone company provides phone service."; Agent_Speak(L_DSL_A_NeedToConnect4_Text); var L_DSL_A_NeedToConnect5_Text = "When we get to the part about setting up your computer for Internet access, I'll help you find an ISP if you don't already have one."; Agent_Speak(L_DSL_A_NeedToConnect5_Text); var L_DSL_A_NeedToConnect6_Text = "Third, you need a device that makes the physical connection between your computer and your ISP."; Agent_Speak(L_DSL_A_NeedToConnect6_Text); var L_DSL_A_NeedToConnect7_Text = "That's the purpose of this screen."; Agent_Speak(L_DSL_A_NeedToConnect7_Text); } function Agent_DSL_AInternetSignup() { var L_DSL_A_AboutThisScreen1_Text = "If you already have an Internet account, then your Internet service provider will have already provided this information."; Agent_Speak(L_DSL_A_AboutThisScreen1_Text); var L_DSL_A_AboutThisScreen2_Text = "You don't need to set up a new Internet account just because you have a new computer."; Agent_Speak(L_DSL_A_AboutThisScreen2_Text); var L_DSL_A_AboutThisScreen3_Text = "You can use the exact same account information that you used with your old computer."; Agent_Speak(L_DSL_A_AboutThisScreen3_Text); var L_DSL_A_AboutThisScreen4_Text = "If you've never connected to the Internet from your own computer, you may have received Internet account information when you purchased this computer."; Agent_Speak(L_DSL_A_AboutThisScreen4_Text); var L_DSL_A_AboutThisScreen5_Text = "If your dealer gave you a piece of paper with a user name, password, and ISP name, then type that information on this screen."; Agent_Speak(L_DSL_A_AboutThisScreen5_Text); } // ************************* DSL_B Page (dsl_b.htm) Scripts ************************* // function Agent_DSL_BAddCommands() { var L_DSL_B_MenuCommand1_Text = "&Tell me about this step"; var L_DSL_B_MenuCommand2_Text = "Wh&at does IP mean?"; var L_DSL_B_MenuCommand3_Text = "What &does DNS mean?"; var L_DSL_B_MenuCommand4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnDSL_BAboutThisScreen", L_DSL_B_MenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnDSL_BWhatIsIP", L_DSL_B_MenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnDSL_BWhatIsDNS", L_DSL_B_MenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnDSL_BWhatToDoNext", L_DSL_B_MenuCommand4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnDSL_BAboutThisScreen() { var L_DSL_B_AboutThisScreen1_Text = "On the last screen, you told us how you will connect to the Internet by providing your Internet account information."; Agent_Speak(L_DSL_B_AboutThisScreen1_Text); var L_DSL_B_AboutThisScreen2_Text = "On this screen, you need to tell us how this computer will establish the physical connection to the Internet."; Agent_Speak(L_DSL_B_AboutThisScreen2_Text); } function Agent_OnDSL_BWhatIsIP() { var L_DSL_B_WhatIsIP1_Text = "Every computer connected to the Internet has an Internet Protocol or \"IP\" address, which is a unique number that identifies one computer to the other computers on the Internet."; Agent_Speak(L_DSL_B_WhatIsIP1_Text); var L_DSL_B_WhatIsIP2_Text = "When you connect, your ISP usually grants your computer an IP address automatically."; Agent_Speak(L_DSL_B_WhatIsIP2_Text); var L_DSL_B_WhatIsIP3_Text = "In this case, though, you need to enter the IP address manually."; Agent_Speak(L_DSL_B_WhatIsIP3_Text); Agent_GestureAtElement(g.dsl_intl_staticip, "Left"); var L_DSL_B_WhatIsIP4_Text = "Your ISP should provide you with an IP address to type here."; Agent_Speak(L_DSL_B_WhatIsIP4_Text); Agent_Play("RestPose"); } function Agent_OnDSL_BWhatIsDNS() { var L_DSL_B_WhatIsDNS1_Text = "To find addresses on the Internet, your computer needs to connect to a Domain Name Server (DNS), which assigns IP addresses to the computers on the Internet."; Agent_Speak(L_DSL_B_WhatIsDNS1_Text); var L_DSL_B_WhatIsDNS2_Text = "In most cases, a DNS address is automatically assigned by your ISP."; Agent_Speak(L_DSL_B_WhatIsDNS2_Text); var L_DSL_B_WhatIsDNS3_Text = "Your ISP requires that you set the DNS address on your computer."; Agent_Speak(L_DSL_B_WhatIsDNS3_Text); Agent_GestureAtElement(g.dsl_intl_prefdns, "Left"); var L_DSL_B_WhatIsDNS4_Text = "Your ISP should provide you with a preferred DNS to type here"; Agent_Speak(L_DSL_B_WhatIsDNS4_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.dsl_lbl_altdns, "Left"); var L_DSL_B_WhatIsDNS5_Text = "and possibly an alternate DNS to use if the preferred DNS is unavailable."; Agent_Speak(L_DSL_B_WhatIsDNS5_Text); Agent_Play("RestPose"); Agent_MoveToElement(g.dsl_lbl_altdns, "Bottom"); } function Agent_OnDSL_BWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_DSL_B_WhatToDoNext1_Text = "Click the Next button to continue."; Agent_Speak(L_DSL_B_WhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_DSL_B_WhatToDoNext2_Text = "You can also click the Back button to go back to the previous step."; Agent_Speak(L_DSL_B_WhatToDoNext2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_DSL_B_WhatToDoNext3_Text = "Or, if you changed your mind, click \"Skip\" to continue without setting up this computer for Internet access."; Agent_Speak(L_DSL_B_WhatToDoNext3_Text); Agent_Play("RestPose"); } // ************************* ICONNECT Page (iconnect.htm) Scripts ************************* // function Agent_ICONNECTAddCommands() { var L_ICONNECTMenuCommand1_Text = "&Tell me about this step"; var L_ICONNECTMenuCommand2_Text = "Wh&at is a static IP address?"; var L_ICONNECTMenuCommand3_Text = "What &does DNS mean?"; var L_ICONNECTMenuCommand4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnICONNECTAboutThisScreen", L_ICONNECTMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnICONNECTWhatIsStaticIP", L_ICONNECTMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnICONNECTWhatIsDNS", L_ICONNECTMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnICONNECTWhatToDoNext", L_ICONNECTMenuCommand4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnICONNECTAboutThisScreen() { var L_ICONNECTAboutThisScreen1_Text = "On the last screen, you told us how you will connect to the Internet by providing your Internet account information."; Agent_Speak(L_ICONNECTAboutThisScreen1_Text); var L_ICONNECTAboutThisScreen2_Text = "On this screen, you need to tell us how this computer will establish the physical connection to the Internet."; Agent_Speak(L_ICONNECTAboutThisScreen2_Text); } function Agent_OnICONNECTWhatIsStaticIP() { var L_ICONNECTWhatIsStaticIP1_Text = "Every computer connected to the Internet has an Internet Protocol or \"IP\" address, which is a unique number that identifies one computer to the other computers on the Internet."; Agent_Speak(L_ICONNECTWhatIsStaticIP1_Text); var L_ICONNECTWhatIsStaticIP2_Text = "When you connect, your ISP usually grants your computer an IP address automatically."; Agent_Speak(L_ICONNECTWhatIsStaticIP2_Text); var L_ICONNECTWhatIsStaticIP3_Text = "In this case, though, you need to enter the IP address manually."; Agent_Speak(L_ICONNECTWhatIsStaticIP3_Text); Agent_GestureAtElement(g.iconnect_spn_staticIP, "Left"); var L_ICONNECTWhatIsStaticIP4_Text = "Your ISP should provide you with an IP address to type here."; Agent_Speak(L_ICONNECTWhatIsStaticIP4_Text); Agent_Play("RestPose"); } function Agent_OnICONNECTWhatIsDNS() { var L_ICONNECTWhatIsDNS1_Text = "To find addresses on the Internet, your computer needs to connect to a Domain Name Server (DNS), which assigns IP addresses to the computers on the Internet."; Agent_Speak(L_ICONNECTWhatIsDNS1_Text); var L_ICONNECTWhatIsDNS2_Text = "In most cases, a DNS address is automatically assigned by your ISP."; Agent_Speak(L_ICONNECTWhatIsDNS2_Text); var L_ICONNECTWhatIsDNS3_Text = "Your ISP requires that you set the DNS address on your computer."; Agent_Speak(L_ICONNECTWhatIsDNS3_Text); Agent_GestureAtElement(g.iconnect_spn_prefrDNS, "Left"); var L_ICONNECTWhatIsDNS4_Text = "Your ISP should provide you with a preferred DNS to type here"; Agent_Speak(L_ICONNECTWhatIsDNS4_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.iconnect_spn_alterDNS, "Left"); var L_ICONNECTWhatIsDNS5_Text = "and possibly an alternate DNS to use if the preferred DNS is unavailable."; Agent_Speak(L_ICONNECTWhatIsDNS5_Text); Agent_Play("RestPose"); } function Agent_OnICONNECTWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ICONNECTWhatToDoNext1_Text = "Click the Next button to continue."; Agent_Speak(L_ICONNECTWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_ICONNECTWhatToDoNext2_Text = "Or, if you changed your mind, click \"Skip\" to continue without setting up this computer for Internet access."; Agent_Speak(L_ICONNECTWhatToDoNext2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_ICONNECTWhatToDoNext3_Text = "You can also go back to the previous screen by clicking the Back button."; Agent_Speak(L_ICONNECTWhatToDoNext3_Text); Agent_Play("RestPose"); } // ################################################################################################## BEGIN NEED AGENT TEXT ############# // ************************* ICNTLAST Page (icntlast.htm) Scripts ************************* // function Agent_ICNTLASTAddCommands() { var L_ICNTLASTMenuCommand1_Text = "Tell me what to do &next"; var L_ICNTLASTMenuCommand2_Text = "Tell me about this &screen"; var L_ICNTLASTMenuCommand3_Text = "Tell me how to &move to the next screen"; // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. g_AgentCharacter.Commands.Add("Agent_OnICNTLASTWhatToDoNext", L_ICNTLASTMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnICNTLASTAboutThisScreen", L_ICNTLASTMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnICNTLASTHowToMoveOn", L_ICNTLASTMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnICNTLASTWhatToDoNext() { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); var L_ICNTLASTWhatToDoNext1_Text = "Some temporary string here ...icntlast.htm do next"; Agent_Speak(L_ICNTLASTWhatToDoNext1_Text); } function Agent_OnICNTLASTAboutThisScreen() { var L_ICNTLASTAboutThisScreen_Text = "Some temporary string here ...icntlast.htm about step"; Agent_Speak(L_ICNTLASTAboutThisScreen_Text); } function Agent_OnICNTLASTHowToMoveOn() { var L_ICNTLASTHowToMoveOn_Text = "Some more temporary string here ...icntlast.htm move on"; Agent_Speak(L_ICNTLASTHowToMoveOn_Text); } // ************************* SCONNECT Page (sconnect.htm) Scripts ************************* // function Agent_SCONNECTAddCommands() { var L_SCONNECTMenuCommand1_Text = "Tell me what to do &next"; var L_SCONNECTMenuCommand2_Text = "Tell me about this &screen"; var L_SCONNECTMenuCommand3_Text = "Tell me how to &move to the next screen"; // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. g_AgentCharacter.Commands.Add("Agent_OnSCONNECTWhatToDoNext", L_SCONNECTMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnSCONNECTAboutThisScreen", L_SCONNECTMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnSCONNECTHowToMoveOn", L_SCONNECTMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnSCONNECTWhatToDoNext() { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); var L_SCONNECTWhatToDoNext1_Text = "Some temporary string here ...sconnect.htm do next"; Agent_Speak(L_SCONNECTWhatToDoNext1_Text); Agent_Play("RestPose"); } function Agent_OnSCONNECTAboutThisScreen() { var L_SCONNECTAboutThisScreen_Text = "Some temporary string here ...sconnect.htm about step"; Agent_Speak(L_SCONNECTAboutThisScreen_Text); } function Agent_OnSCONNECTHowToMoveOn() { var L_SCONNECTHowToMoveOn_Text = "Some more temporary string here ...sconnect.htm move on"; Agent_Speak(L_SCONNECTHowToMoveOn_Text); } // ************************* SCNTLAST Page (scntlast.htm) Scripts ************************* // function Agent_SCNTLASTAddCommands() { var L_SCNTLASTMenuCommand1_Text = "Tell me what to do &next"; var L_SCNTLASTMenuCommand2_Text = "Tell me about this &screen"; var L_SCNTLASTMenuCommand3_Text = "Tell me how to &move to the next screen"; // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. g_AgentCharacter.Commands.Add("Agent_OnSCNTLASTWhatToDoNext", L_SCNTLASTMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnSCNTLASTAboutThisScreen", L_SCNTLASTMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnSCNTLASTHowToMoveOn", L_SCNTLASTMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnSCNTLASTWhatToDoNext() { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); var L_SCNTLASTWhatToDoNext1_Text = "Some temporary string here ...scntlast.htm do next"; Agent_Speak(L_SCNTLASTWhatToDoNext1_Text); Agent_Play("RestPose"); } function Agent_OnSCNTLASTAboutThisScreen() { var L_SCNTLASTAboutThisScreen_Text = "Some temporary string here ...scntlast.htm about step"; Agent_Speak(L_SCNTLASTAboutThisScreen_Text); } function Agent_OnSCNTLASTHowToMoveOn() { var L_SCNTLASTHowToMoveOn_Text = "Some more temporary string here ...scntlast.htm move on"; Agent_Speak(L_SCNTLASTHowToMoveOn_Text); } // ################################################################################################## END NEED AGENT TEXT ############# // ************************* BadPID Page (badpkey.htm) Scripts ************************* // function Agent_BadPIDAddCommands() { var L_BadPIDMenuCommand1_Text = "&Tell me about this step"; var L_BadPIDMenuCommand2_Text = "H&ow do I enter my product key?"; var L_BadPIDMenuCommand3_Text = "Wh&at if I don't know my product key?"; var L_BadPIDMenuCommand4_Text = "What &if my product key isn't working?"; var L_BadPIDMenuCommand5_Text = "Who can I call for mo&re help?"; var L_BadPIDMenuCommand6_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnBadPIDAboutThisStep", L_BadPIDMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnBadPIDHowToEnter", L_BadPIDMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnBadPIDWhatIfNotKnown", L_BadPIDMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnBadPIDWhatIfNotWorking", L_BadPIDMenuCommand4_Text); g_AgentCharacter.Commands.Add("Agent_OnBadPIDWhoCanICall", L_BadPIDMenuCommand5_Text); g_AgentCharacter.Commands.Add("Agent_OnBadPIDWhatToDoNext", L_BadPIDMenuCommand6_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnBadPIDAboutThisStep() { var L_BadPIDAboutThisStep1_Text = "The product key that you typed on the previous screen is not valid."; Agent_Speak(L_BadPIDAboutThisStep1_Text); var L_BadPIDAboutThisStep2_Text = "That means that it doesn't match a product key for an authentic copy of Windows XP."; Agent_Speak(L_BadPIDAboutThisStep2_Text); var L_BadPIDAboutThisStep3_Text = "And Windows won't work without a valid product key."; Agent_Speak(L_BadPIDAboutThisStep3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_BadPIDAboutThisStep4_Text = "If you think you might have mistyped it, click the Back button and type the correct key."; Agent_Speak(L_BadPIDAboutThisStep4_Text); Agent_Play("RestPose"); var L_BadPIDAboutThisStep5_Text = "But if you're sure you typed it correctly, or if you tried several times without success, then you might have an illegal copy of Windows."; Agent_Speak(L_BadPIDAboutThisStep5_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_BadPIDAboutThisStep6_Text = "If that's the case, click the Shutdown button to turn off your computer."; Agent_Speak(L_BadPIDAboutThisStep6_Text); Agent_Play("RestPose"); var L_BadPIDAboutThisStep7_Text = "Then call 1-800-RU-LEGIT in the U.S. or Canada."; Agent_Speak(L_BadPIDAboutThisStep7_Text); var L_BadPIDAboutThisStep8_Text = "In all other countries/regions, contact your local Microsoft subsidiary office."; Agent_Speak(L_BadPIDAboutThisStep8_Text); } function Agent_OnBadPIDHowToEnter() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_BadPIDHowToEnter1_Text = "Click the Back button to return to the previous screen."; Agent_Speak(L_BadPIDHowToEnter1_Text); Agent_Play("RestPose"); var L_BadPIDHowToEnter2_Text = "The pointer, which looks like a blinking vertical line, will already be positioned in the first box that you need to type in."; Agent_Speak(L_BadPIDHowToEnter2_Text); var L_BadPIDHowToEnter3_Text = "After you type the first 5 characters, the pointer will automatically move to the next box so you can type the next 5 characters."; Agent_Speak(L_BadPIDHowToEnter3_Text); var L_BadPIDHowToEnter4_Text = "Don't type hyphens or worry about the capitalization."; Agent_Speak(L_BadPIDHowToEnter4_Text); var L_BadPIDHowToEnter5_Text = "Then click the Next button to continue."; Agent_Speak(L_BadPIDHowToEnter5_Text); } function Agent_OnBadPIDWhatIfNotKnown() { var L_BadPIDWhatIfNotKnown1_Text = "If the product key doesn't appear on the CD cover, check the Certificate of Authenticity sticker on your PC or on the back of the \"getting started\" book."; Agent_Speak(L_BadPIDWhatIfNotKnown1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_BadPIDWhatIfNotKnown2_Text = "After you find the product key, click the Back button and type the product key in the boxes on the previous screen."; Agent_Speak(L_BadPIDWhatIfNotKnown2_Text); Agent_Play("RestPose"); var L_BadPIDWhatIfNotKnown3_Text = "If you can't find your product key, call your computer manufacturer at %s."; var re = /%s/i; var L_BadPIDWhatIfNotKnown4_Text = "If you can't find your product key, contact your computer manufacturer."; var strPhoneNumber = window.external.GetSupportPhoneNum(); if (strPhoneNumber == "") Agent_Speak(L_BadPIDWhatIfNotKnown4_Text); else Agent_Speak(L_BadPIDWhatIfNotKnown3_Text.replace(re, strPhoneNumber)); } function Agent_OnBadPIDWhatIfNotWorking() { var L_BadPIDWhatIfNotWorking1_Text = "You might have mistyped it."; Agent_Speak(L_BadPIDWhatIfNotWorking1_Text); var L_BadPIDWhatIfNotWorking2_Text = "You need to include all 25 characters of the product key."; Agent_Speak(L_BadPIDWhatIfNotWorking2_Text); var L_BadPIDWhatIfNotWorking3_Text = "Each part should consist of 5 letters or numbers."; Agent_Speak(L_BadPIDWhatIfNotWorking3_Text); var L_BadPIDWhatIfNotWorking4_Text = "You must type a valid product key before you can begin using Windows."; Agent_Speak(L_BadPIDWhatIfNotWorking4_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_BadPIDWhatIfNotWorking5_Text = "If you think you might have mistyped it, click the Back button and type the correct key."; Agent_Speak(L_BadPIDWhatIfNotWorking5_Text); Agent_Play("RestPose"); var L_BadPIDWhatIfNotWorking6_Text = "But if you're sure you typed it correctly, or if you tried several times without success, then you might have an illegal copy of Windows."; Agent_Speak(L_BadPIDWhatIfNotWorking6_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_BadPIDWhatIfNotWorking7_Text = "If that's the case, click the Shutdown button to turn off your computer."; Agent_Speak(L_BadPIDWhatIfNotWorking7_Text); Agent_Play("RestPose"); var L_BadPIDWhatIfNotWorking8_Text = "Then call 1-800-RU-LEGIT in the U.S. or Canada."; Agent_Speak(L_BadPIDWhatIfNotWorking8_Text); var L_BadPIDWhatIfNotWorking9_Text = "In all other countries/regions, contact your local Microsoft subsidiary office."; Agent_Speak(L_BadPIDWhatIfNotWorking9_Text); } function Agent_OnBadPIDWhoCanICall() { var L_BadPIDWhoCanICall1_Text = "If your product key is not being accepted, call 1-800-RU-LEGIT in the U.S. or Canada."; Agent_Speak(L_BadPIDWhoCanICall1_Text); var L_BadPIDWhoCanICall2_Text = "In all other countries/regions, contact your local Microsoft subsidiary office."; Agent_Speak(L_BadPIDWhoCanICall2_Text); } function Agent_OnBadPIDWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_BadPIDWhatToDoNext1_Text = "Click the Back button and type the correct key."; Agent_Speak(L_BadPIDWhatToDoNext1_Text); var L_BadPIDWhatToDoNext2_Text = "If your product key is not being accepted, then you might have an illegal copy of Windows."; Agent_Speak(L_BadPIDWhatToDoNext2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_BadPIDWhatToDoNext3_Text = "If that's the case, click the Shutdown button to turn off your computer. "; Agent_Speak(L_BadPIDWhatToDoNext3_Text); Agent_Play("RestPose"); var L_BadPIDWhatToDoNext4_Text = "Then call 1-800-RU-LEGIT in the U.S. or Canada."; Agent_Speak(L_BadPIDWhatToDoNext4_Text); var L_BadPIDWhatToDoNext5_Text = "In all other countries/regions, contact your local Microsoft subsidiary office."; Agent_Speak(L_BadPIDWhatToDoNext5_Text); } // ************************* ICONN Page (iconn.htm) Scripts ************************* // function Agent_IconnAddCommands() { var L_IconnMenuCommand1_Text = "&Tell me about this step"; var L_IconnMenuCommand2_Text = "Which o&ption should I choose?"; var L_IconnMenuCommand3_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_IconnAboutThisStep", L_IconnMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_IconnWhichOption", L_IconnMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnIconnWhatToDoNext", L_IconnMenuCommand3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_IconnAboutThisStep() { var L_IconnAboutThisStep1_Text = "You have successfully installed Windows Windows XP on your computer!"; Agent_Speak(L_IconnAboutThisStep1_Text); var L_IconnAboutThisStep2_Text = "At this point, I can help you set up your computer for Internet access."; Agent_Speak(L_IconnAboutThisStep2_Text); var L_IconnAboutThisStep3_Text = "If you're not ready to do that now, you can run the Internet Connection Wizard from the Start menu after you finish setting up Windows."; Agent_Speak(L_IconnAboutThisStep3_Text); } function Agent_IconnWhichOption() { var L_IconnWhichOption1_Text = "Select No if you plan to use an Internet service provider, or \"ISP\" for short, that requires you to install its own software."; Agent_Speak(L_IconnWhichOption1_Text); var L_IconnWhichOption2_Text = "You'll know this is the case if you already have a CD from that ISP."; Agent_Speak(L_IconnWhichOption2_Text); var L_IconnWhichOption3_Text = "Then set up your computer for Internet access after you finish setting up Windows."; Agent_Speak(L_IconnWhichOption3_Text); } function Agent_OnIconnWhatToDoNext() { Agent_GestureAtElement(g.radioYesIconn, "Left"); var L_IconnWhatToDoNext1_Text = "If you would like assistance with setting up a connection to the Internet, click the Yes option."; Agent_Speak(L_IconnWhatToDoNext1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.radioNoIconn, "Left"); var L_IconnWhatToDoNext2_Text = "Or, if you don't want to establish an Internet connection at this time, choose \"No\""; Agent_Speak(L_IconnWhatToDoNext2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_IconnWhatToDoNext3_Text = "Then, click the Next button to continue."; Agent_Speak(L_IconnWhatToDoNext3_Text); Agent_Play("RestPose"); } // ************************* ISP Page (isp.htm) Scripts ************************* // function Agent_ISPAddCommands() { var L_ISPMenuCommand1_Text = "&Tell me about this step"; var L_ISPMenuCommand2_Text = "Wh&at if my computer dealer gave me account information?"; var L_ISPMenuCommand3_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_ISPAboutThisStep", L_ISPMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_ISPWhatIfGivenAccount", L_ISPMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_ISPWhatToDoNext", L_ISPMenuCommand3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_ISPAboutThisStep() { var L_ISPAboutThisStep1_Text = "On this screen you select how you want to access the Internet."; Agent_Speak(L_ISPAboutThisStep1_Text); Agent_GestureAtElement(g.radioGetNewISP, "Left"); var L_ISPAboutThisStep2_Text = "You can use MSN,"; Agent_Speak(L_ISPAboutThisStep2_Text); Agent_Play("RestPose"); if (g.radioMigrateISP != null) { Agent_GestureAtElement(g.radioMigrateISP, "Left"); var L_ISPAboutThisStep3_Text = "or a different Internet service provider."; Agent_Speak(L_ISPAboutThisStep3_Text); Agent_Play("RestPose"); } Agent_GestureAtElement(g.radioSkip, "Left"); var L_ISPAboutThisStep4_Text = "Or you can continue without setting up an Internet connection at this time."; Agent_Speak(L_ISPAboutThisStep4_Text); Agent_Play("RestPose"); } function Agent_ISPWhatIfGivenAccount() { var L_ISPWhatIfGivenAccount1_Text = "When you purchased your computer, your dealer may have given you Internet account information on paper."; Agent_Speak(L_ISPWhatIfGivenAccount1_Text); var L_ISPWhatIfGivenAccount2_Text = "That account information includes a user name, password, and Internet service provider name and phone number."; Agent_Speak(L_ISPWhatIfGivenAccount2_Text); var L_ISPWhatIfGivenAccount3_Text = "If you have this information, then you already have an Internet account."; Agent_Speak(L_ISPWhatIfGivenAccount3_Text); Agent_GestureAtElement(g.radioGetNewISP, "Left"); var L_ISPWhatIfGivenAccount4_Text = "If the ISP name is MSN, select this first option."; Agent_Speak(L_ISPWhatIfGivenAccount4_Text); Agent_Play("RestPose"); if (g.radioMigrateISP != null) { Agent_GestureAtElement(g.radioMigrateISP, "Left"); var L_ISPWhatIfGivenAccount5_Text = "If the ISP name isn't MSN, select this second option instead."; Agent_Speak(L_ISPWhatIfGivenAccount5_Text); Agent_Play("RestPose"); } Agent_GestureAtElement(g.radioSkip, "Left"); var L_ISPWhatIfGivenAccount6_Text = "Or, if you want to wait until later to set up your Internet connection on this computer, select this last option."; Agent_Speak(L_ISPWhatIfGivenAccount6_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPWhatIfGivenAccount7_Text = "Then click the Next button."; Agent_Speak(L_ISPWhatIfGivenAccount7_Text); Agent_Play("RestPose"); } function Agent_ISPWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPWhatToDoNext1_Text = "After you choose an option, click the Next button."; Agent_Speak(L_ISPWhatToDoNext1_Text); Agent_Play("RestPose"); } // ************************* ICS Page (ics.htm) Scripts ************************* // function Agent_ICSAddCommands() { var L_ICSAddCommands1_Text = "&Tell me about this step"; var L_ICSAddCommands2_Text = "Wh&at is the Internet Connection Firewall?"; var L_ICSAddCommands3_Text = "What &is the Home Networking Wizard?"; g_AgentCharacter.Commands.Add("Agent_ICSAboutThisStep", L_ICSAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ICSWhatIsFirewall", L_ICSAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_ICSWhatIsNetworkWizard", L_ICSAddCommands3_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_ICSAboutThisStep() { var L_ICSAboutThisStep1_Text = "This screen is where you choose how you want this computer to access the Internet."; Agent_Speak(L_ICSAboutThisStep1_Text); var L_ICSAboutThisStep2_Text = "If this computer is connected to a network of other computers, you can use the network to access the Internet."; Agent_Speak(L_ICSAboutThisStep2_Text); var L_ICSAboutThisStep3_Text = "Otherwise, the computer can be set up to make a direct connection to the Internet."; Agent_Speak(L_ICSAboutThisStep3_Text); var L_ICSAboutThisStep4_Text = "Regardless of which option you choose, Windows XP protects you with an Internet connection firewall to safeguard your computer from unauthorized access by other Internet users."; Agent_Speak(L_ICSAboutThisStep4_Text); } function Agent_ICSWhatIsFirewall() { var L_ICSWhatIsFirewall1_Text = "A firewall is a security system that's designed to protect your computer - or your computer network - against external threats, such as hackers, coming from another network, such as the Internet."; Agent_Speak(L_ICSWhatIsFirewall1_Text); var L_ICSWhatIsFirewall2_Text = "When you set up a network in Windows XP, Windows XP's Internet Connection Firewall feature is automatically turned on."; Agent_Speak(L_ICSWhatIsFirewall2_Text); var L_ICSWhatIsFirewall3_Text = "And it's also turned on if this computer isn't part of a network but accesses the Internet directly."; Agent_Speak(L_ICSWhatIsFirewall3_Text); } function Agent_ICSWhatIsNetworkWizard() { var L_ICSWhatIsNetworkWizard1_Text = "This wizard guides you through each step in setting up a network in your home or place of business."; Agent_Speak(L_ICSWhatIsNetworkWizard1_Text); var L_ICSWhatIsNetworkWizard2_Text = "If you don't want to connect this computer to a network during this process, you can do it later."; Agent_Speak(L_ICSWhatIsNetworkWizard2_Text); var L_ICSWhatIsNetworkWizard3_Text = "Just go to the Start menu and click More Programs."; Agent_Speak(L_ICSWhatIsNetworkWizard3_Text); var L_ICSWhatIsNetworkWizard4_Text = "Then click Accessories and Communications to find the Home Networking Wizard."; Agent_Speak(L_ICSWhatIsNetworkWizard4_Text); var L_ICSWhatIsNetworkWizard5_Text = "If you forget these steps, click Help and Support on the Start menu to find the answer to your questions and other valuable information."; Agent_Speak(L_ICSWhatIsNetworkWizard5_Text); } // ************************* ICS DISCONNECT ERROR Page (icsdc.htm) Scripts ************************* // function Agent_ICSDCAddCommands() { var L_ICSDCAddCommands1_Text = "&Tell me about this step"; var L_ICSDCAddCommands2_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_ICSDCAboutThisStep", L_ICSDCAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ICSDCWhatToDoNext", L_ICSDCAddCommands2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_ICSDCAboutThisStep() { var L_ICSDCAboutThisStep1_Text = "This screen explains that your computer has become disconnected from the Internet."; Agent_Speak(L_ICSDCAboutThisStep1_Text); } function Agent_ICSDCWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ICSDCWhatToDoNext1_Text = "Click the Retry button to try reconnecting to the Internet."; Agent_Speak(L_ICSDCWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_ICSDCWhatToDoNext2_Text = "Or click \"Skip\" to continue without connecting to the Internet."; Agent_Speak(L_ICSDCWhatToDoNext2_Text); Agent_Play("RestPose"); } // ************************* Identities 1 Page (ident1.htm) Scripts ************************* // function Agent_Ident1AddCommands() { var L_Ident1AddCommands1_Text = "&Tell me about this step"; var L_Ident1AddCommands2_Text = "Wh&at is a user account?"; var L_Ident1AddCommands3_Text = "What a&re the benefits of setting up user accounts?"; var L_Ident1AddCommands4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_Ident1Command_AboutThisStep", L_Ident1AddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_Ident1Command_WhatIsUserAccount", L_Ident1AddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_Ident1Command_Benefits", L_Ident1AddCommands3_Text); g_AgentCharacter.Commands.Add("Agent_Ident1WhatToDoNext", L_Ident1AddCommands4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_Ident1Command_AboutThisStep() { var L_Ident1AboutThisStep1_Text = "This is the screen where you identify the other people who will use this computer."; Agent_Speak(L_Ident1AboutThisStep1_Text); var L_Ident1AboutThisStep2_Text = "If you share this computer with others, then each user can personalize Windows XP by setting up an account for each person."; Agent_Speak(L_Ident1AboutThisStep2_Text); var L_Ident1AboutThisStep3_Text = "This way, each user can have their own computer settings, privileges, private files, Web site links, and other options, without affecting the way you've personalized it for yourself."; Agent_Speak(L_Ident1AboutThisStep3_Text); var L_Ident1AboutThisStep4_Text = "When you start your computer, the Welcome screen will show you all the names you type on this screen in alphabetical order."; Agent_Speak(L_Ident1AboutThisStep4_Text); var L_Ident1AboutThisStep5_Text = "And it will even show you a picture for each individual."; Agent_Speak(L_Ident1AboutThisStep5_Text); var L_Ident1AboutThisStep6_Text = "And you can always change these names later by clicking Control Panel on the Start menu, and clicking the User Accounts icon."; Agent_Speak(L_Ident1AboutThisStep6_Text); } function Agent_Ident1Command_WhatIsUserAccount() { var L_Ident1WhatIsUserAccount1_Text = "If you share a computer with other people in your home or office, you'll like user accounts."; Agent_Speak(L_Ident1WhatIsUserAccount1_Text); var L_Ident1WhatIsUserAccount2_Text = "With user accounts, you can:"; Agent_Speak(L_Ident1WhatIsUserAccount2_Text); var L_Ident1WhatIsUserAccount3_Text = "Personalize the way you want Windows to organize and display information, without affecting other user preferences;"; Agent_Speak(L_Ident1WhatIsUserAccount3_Text); var L_Ident1WhatIsUserAccount4_Text = "Require a password for access to your files;"; Agent_Speak(L_Ident1WhatIsUserAccount4_Text); var L_Ident1WhatIsUserAccount5_Text = "Remember your personal list of Web Favorites and recently visited sites;"; Agent_Speak(L_Ident1WhatIsUserAccount5_Text); var L_Ident1WhatIsUserAccount6_Text = "Protect your important computer settings;"; Agent_Speak(L_Ident1WhatIsUserAccount6_Text); var L_Ident1WhatIsUserAccount7_Text = "Customize the desktop for each user; and"; Agent_Speak(L_Ident1WhatIsUserAccount7_Text); var L_Ident1WhatIsUserAccount8_Text = "Simplify logging on and quickly switching between computer users."; Agent_Speak(L_Ident1WhatIsUserAccount8_Text); } function Agent_Ident1Command_Benefits() { var L_Ident1Benefits1_Text = "Sharing a computer used to mean that other users could see your private files, install games or other software you didn't want, or change your computer settings."; Agent_Speak(L_Ident1Benefits1_Text); var L_Ident1Benefits2_Text = "Now that's all changed!"; Agent_Speak(L_Ident1Benefits2_Text); var L_Ident1Benefits3_Text = "When you set up user accounts, each user can personalize Windows without affecting the other users of this computer."; Agent_Speak(L_Ident1Benefits3_Text); var L_Ident1Benefits4_Text = "To learn more about user accounts, click Help and Support on the Start menu to find the answer to your questions and other valuable information."; Agent_Speak(L_Ident1Benefits4_Text); } function Agent_Ident1WhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_Ident1WhatToDoNext1_Text = "After you type the names of the other individuals who will use this computer, click the Next button to continue."; Agent_Speak(L_Ident1WhatToDoNext1_Text); Agent_Play('RestPose'); var L_Ident1WhatToDoNext2_Text = "You can change these names and add more users later after you finish setting up Windows."; Agent_Speak(L_Ident1WhatToDoNext2_Text); var L_Ident1WhatToDoNext3_Text = "Just click Control Panel on the Start menu, and choose User Accounts."; Agent_Speak(L_Ident1WhatToDoNext3_Text); } // ************************* Identities Page (ident2.htm) Scripts ************************* // function Agent_IdentitiesAddCommands() { var L_IdentitiesAddCommands1_Text = "&Tell me about this step"; var L_IdentitiesAddCommands2_Text = "Wh&at is a user account?"; var L_IdentitiesAddCommands3_Text = "What a&re the benefits of setting up user accounts?"; var L_IdentitiesAddCommands4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_IdentitiesCommand_AboutThisStep", L_IdentitiesAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_IdentitiesCommand_WhatIsUserAccount", L_IdentitiesAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_IdentitiesCommand_Benefits", L_IdentitiesAddCommands3_Text); g_AgentCharacter.Commands.Add("Agent_IdentitiesWhatToDoNext", L_IdentitiesAddCommands4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_IdentitiesCommand_AboutThisStep() { var L_IdentitiesAboutThisStep1_Text = "This is the screen where you identify the other people who will use this computer."; Agent_Speak(L_IdentitiesAboutThisStep1_Text); var L_IdentitiesAboutThisStep2_Text = "If you share this computer with others, then each user can personalize Windows XP by setting up an account for each person."; Agent_Speak(L_IdentitiesAboutThisStep2_Text); var L_IdentitiesAboutThisStep3_Text = "This way, each user can have their own computer settings, privileges, private files, Web site links, and other options, without affecting the way you've personalized it for yourself."; Agent_Speak(L_IdentitiesAboutThisStep3_Text); var L_IdentitiesAboutThisStep4_Text = "When you start your computer, the Welcome screen will show you all the names you type on this screen in alphabetical order."; Agent_Speak(L_IdentitiesAboutThisStep4_Text); var L_IdentitiesAboutThisStep5_Text = "And it will even show you a picture for each individual."; Agent_Speak(L_IdentitiesAboutThisStep5_Text); var L_IdentitiesAboutThisStep6_Text = "And you can always change these names later by clicking Control Panel on the Start menu, and clicking the User Accounts icon."; Agent_Speak(L_IdentitiesAboutThisStep6_Text); } function Agent_IdentitiesCommand_WhatIsUserAccount() { var L_IdentitiesWhatIsUserAccount1_Text = "If you share a computer with other people in your home or office, you'll like user accounts."; Agent_Speak(L_IdentitiesWhatIsUserAccount1_Text); var L_IdentitiesWhatIsUserAccount2_Text = "With user accounts, you can:"; Agent_Speak(L_IdentitiesWhatIsUserAccount2_Text); var L_IdentitiesWhatIsUserAccount3_Text = "Personalize the way you want Windows to organize and display information, without affecting other user preferences;"; Agent_Speak(L_IdentitiesWhatIsUserAccount3_Text); var L_IdentitiesWhatIsUserAccount4_Text = "Require a password for access to your files;"; Agent_Speak(L_IdentitiesWhatIsUserAccount4_Text); var L_IdentitiesWhatIsUserAccount5_Text = "Remember your personal list of Web Favorites and recently visited sites;"; Agent_Speak(L_IdentitiesWhatIsUserAccount5_Text); var L_IdentitiesWhatIsUserAccount6_Text = "Protect your important computer settings;"; Agent_Speak(L_IdentitiesWhatIsUserAccount6_Text); var L_IdentitiesWhatIsUserAccount7_Text = "Customize the desktop for each user; and"; Agent_Speak(L_IdentitiesWhatIsUserAccount7_Text); var L_IdentitiesWhatIsUserAccount8_Text = "Simplify logging on and quickly switching between computer users."; Agent_Speak(L_IdentitiesWhatIsUserAccount8_Text); } function Agent_IdentitiesCommand_Benefits() { var L_IdentitiesBenefits1_Text = "Sharing a computer used to mean that other users could see your private files, install games or other software you didn’t want, or change your computer settings."; Agent_Speak(L_IdentitiesBenefits1_Text); var L_IdentitiesBenefits2_Text = "Now that's all changed!"; Agent_Speak(L_IdentitiesBenefits2_Text); var L_IdentitiesBenefits3_Text = "When you set up user accounts, each user can personalize Windows without affecting the other users of this computer."; Agent_Speak(L_IdentitiesBenefits3_Text); var L_IdentitiesBenefits4_Text = "To learn more about user accounts, click Help and Support on the Start menu to find the answer to your questions and other valuable information."; Agent_Speak(L_IdentitiesBenefits4_Text); } function Agent_IdentitiesWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_IdentitiesWhatToDoNext1_Text = "After you type the names of the other individuals who will use this computer, click the Next button to continue."; Agent_Speak(L_IdentitiesWhatToDoNext1_Text); Agent_Play('RestPose'); var L_IdentitiesWhatToDoNext2_Text = "You can change these names and add more users later after you finish setting up Windows."; Agent_Speak(L_IdentitiesWhatToDoNext2_Text); var L_IdentitiesWhatToDoNext3_Text = "Just click Control Panel on the Start menu, and choose User Accounts."; Agent_Speak(L_IdentitiesWhatToDoNext3_Text); } // ************************* Keybd Page (keybd.htm) Scripts ************************* // function Agent_KeybdAddCommands() { var L_KeybdMenuCommand1_Text = "&Tell me about this step"; var L_KeybdMenuCommand2_Text = "How &do I select my region?"; var L_KeybdMenuCommand3_Text = "How d&o I select my language?"; var L_KeybdMenuCommand4_Text = "How do I &select my keyboard?"; g_AgentCharacter.Commands.Add("Agent_KeybdAboutThisStep", L_KeybdMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_KeybdHowToSelectRegion", L_KeybdMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_KeybdHowToSelectLanguage", L_KeybdMenuCommand3_Text); g_AgentCharacter.Commands.Add("Agent_KeybdHowToSelectKeyboard", L_KeybdMenuCommand4_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_KeybdAboutThisStep() { var L_KeybdAboutThisStep1_Text = "On the next few screens, you can tell Windows how to display text, dates, and numbers based upon your language preferences, region, and time zone."; Agent_Speak(L_KeybdAboutThisStep1_Text); var L_KeybdAboutThisStep2_Text = "For example, on this screen, select the region of the world closest to where you live, the language you'll use most frequently on your computer, and the keyboard you're using."; Agent_Speak(L_KeybdAboutThisStep2_Text); var L_KeybdAboutThisStep3_Text = "Windows will make sure to display the date, time, and currency correctly."; Agent_Speak(L_KeybdAboutThisStep3_Text); var L_KeybdAboutThisStep4_Text = "For example, if you select the United States as your region and English as your language, then monetary amounts will appear in U.S. dollars."; Agent_Speak(L_KeybdAboutThisStep4_Text); var L_KeybdAboutThisStep5_Text = "But if you select the United Kingdom as your region instead, they'll appear in British pounds."; Agent_Speak(L_KeybdAboutThisStep5_Text); } function Agent_KeybdHowToSelectRegion() { Agent_GestureAtElement(g.selRegion, "Left"); var L_KeybdHowToSelectRegion1_Text = "The regions of the world appear in this list in alphabetical order."; Agent_Speak(L_KeybdHowToSelectRegion1_Text); var L_KeybdHowToSelectRegion2_Text = "Click inside this list, or press the Tab key on your keyboard until you reach it."; Agent_Speak(L_KeybdHowToSelectRegion2_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.selRegion, "Right"); var L_KeybdHowToSelectRegion3_Text = "Then click these small arrow buttons, or use the up and down arrow keys on your keyboard, to scroll through the regions."; Agent_Speak(L_KeybdHowToSelectRegion3_Text); var L_KeybdHowToSelectRegion4_Text = "When you see the region closest to where you live, click it or press Enter on your keyboard."; Agent_Speak(L_KeybdHowToSelectRegion4_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.RegionName, "Left"); var L_KeybdHowToSelectRegion5_Text = "The region you select will appear in this box."; Agent_Speak(L_KeybdHowToSelectRegion5_Text); Agent_Play("RestPose"); } function Agent_KeybdHowToSelectLanguage() { var L_KeybdHowToSelectLanguage1_Text = "Choose the language that you communicate in most often."; Agent_Speak(L_KeybdHowToSelectLanguage1_Text); var L_KeybdHowToSelectLanguage2_Text = "For example, if you speak most often in Spanish, but the computer programs and files you work with are typically in English, choose English here."; Agent_Speak(L_KeybdHowToSelectLanguage2_Text); Agent_GestureAtElement(g.selLang, "Left"); var L_KeybdHowToSelectLanguage3_Text = "Languages appear in this list in alphabetical order."; Agent_Speak(L_KeybdHowToSelectLanguage3_Text); var L_KeybdHowToSelectLanguage4_Text = "Click here or press the Tab key on your keyboard until you reach it."; Agent_Speak(L_KeybdHowToSelectLanguage4_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.selLang, "Right"); var L_KeybdHowToSelectLanguage5_Text = "Then click these small arrow buttons, or use the up and down arrow keys on your keyboard, to scroll through the regions."; Agent_Speak(L_KeybdHowToSelectLanguage5_Text); var L_KeybdHowToSelectLanguage6_Text = "When you see the language you want, click it or press Enter on your keyboard."; Agent_Speak(L_KeybdHowToSelectLanguage6_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.LangName, "Left"); var L_KeybdHowToSelectLanguage7_Text = "The language you select will appear in this box."; Agent_Speak(L_KeybdHowToSelectLanguage7_Text); Agent_Play("RestPose"); } function Agent_KeybdHowToSelectKeyboard() { var L_KeybdHowToSelectKeyboard1_Text = "Keyboards appear in this list in alphabetical order."; Agent_Speak(L_KeybdHowToSelectKeyboard1_Text); Agent_GestureAtElement(g.selKeyboard, "Left"); var L_KeybdHowToSelectKeyboard2_Text = "Click here or press the Tab key on your keyboard until you reach it."; Agent_Speak(L_KeybdHowToSelectKeyboard2_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.selKeyboard, "Right"); var L_KeybdHowToSelectKeyboard3_Text = "Then click these small arrow buttons, or use the up and down arrow keys on your keyboard, to scroll through the list."; Agent_Speak(L_KeybdHowToSelectKeyboard3_Text); var L_KeybdHowToSelectKeyboard4_Text = "When you see the keyboard you're using with this computer, click it or press Enter on your keyboard."; Agent_Speak(L_KeybdHowToSelectKeyboard4_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.KeyboardName, "Left"); var L_KeybdHowToSelectKeyboard5_Text = "The keyboard you select will appear in this box."; Agent_Speak(L_KeybdHowToSelectKeyboard5_Text); Agent_Play("RestPose"); } // ************************* Eula Page (neweula.htm) Scripts ************************* // function Agent_EulaAddCommands() { var L_EulaCommand1_Text = "&Tell me about this step"; var L_EulaCommand2_Text = "H&ow do I indicate my answer"; var L_EulaCommand3_Text = "Wh&at exactly is the EULA?"; var L_EulaCommand4_Text = "What &does the EULA say?"; var L_EulaCommand5_Text = "Why &isn't the Next button available?"; var L_EulaCommand6_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_EulaAboutThisStep", L_EulaCommand1_Text); g_AgentCharacter.Commands.Add("Agent_EulaHowToAnswer", L_EulaCommand2_Text); g_AgentCharacter.Commands.Add("Agent_EulaWhatIsEula", L_EulaCommand3_Text); g_AgentCharacter.Commands.Add("Agent_EulaWhatDoesEulaSay", L_EulaCommand4_Text); g_AgentCharacter.Commands.Add("Agent_EulaWhereIsNextButton", L_EulaCommand5_Text); g_AgentCharacter.Commands.Add("Agent_EulaWhatToDoNext", L_EulaCommand6_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnEulaPreDisplayMenu() { if (g.btnNext.disabled) { var L_EulaMenuCommand5_Text = "Why &isn't the Next button available?"; try { g_AgentCharacter.Commands.Insert("Agent_EulaWhereIsNextButton", "Agent_EulaWhatToDoNext",false,L_EulaMenuCommand5_Text); } catch (e) { } } else { try { g_AgentCharacter.Commands.Remove("Agent_OnEulaMenuCommand5"); } catch (e) { } } } function Agent_EulaAboutThisStep() { var L_EulaAboutThisStep1_Text = "This is the screen where you can view the Microsoft Windows license agreement, and then indicate whether you accept it."; Agent_Speak(L_EulaAboutThisStep1_Text); Agent_GestureAtElement(g.txtEULA,"Left"); var L_EulaAboutThisStep2_Text = "In order to use Windows, you must accept this agreement."; Agent_Speak(L_EulaAboutThisStep2_Text); Agent_Play("RestPose"); } function Agent_EulaHowToAnswer() { Agent_GestureAtElement(g.radioAgree,"Left"); var L_EulaHowToAnswer1_Text = "Simply position the pointer in the white circle to the left of your answer, and click once."; Agent_Speak(L_EulaHowToAnswer1_Text); Agent_Play("RestPose"); var L_EulaHowToAnswer2_Text = "Then press the Next button."; Agent_Speak(L_EulaHowToAnswer2_Text); } function Agent_EulaWhatIsEula() { var L_EulaWhatIsEula1_Text = "Your use of Microsoft products is governed by the terms of the end user license agreement (EULA), as well as by copyright law."; Agent_Speak(L_EulaWhatIsEula1_Text); var L_EulaWhatIsEula2_Text = "The EULA is the contract that outlines your legal use of the licensed product, and it grants you a specific right to use that product on your computer."; Agent_Speak(L_EulaWhatIsEula2_Text); } function Agent_EulaWhatDoesEulaSay() { var L_EulaWhatDoesEulaSay1_Text = "Once you accept its terms, the EULA gives you permission to use Windows XP and grants you some additional rights."; Agent_Speak(L_EulaWhatDoesEulaSay1_Text); var L_EulaWhatDoesEulaSay2_Text = "It also imposes certain restrictions on your use of Windows XP."; Agent_Speak(L_EulaWhatDoesEulaSay2_Text); Agent_GestureAtElement(g.txtEULA,"Right"); var L_EulaWhatDoesEulaSay3_Text = "To read the details, scroll down to the 'Grant of License' section."; Agent_Speak(L_EulaWhatDoesEulaSay3_Text); Agent_Play("RestPose"); var L_EulaWhatDoesEulaSay4_Text = "The EULA also describes the limited warranty, and the terms under which you may make a backup or archival copy of Windows XP."; Agent_Speak(L_EulaWhatDoesEulaSay4_Text); } function Agent_EulaWhereIsNextButton() { var L_EulaWhereIsNextButton1_Text = "The Next button is not yet available because you have not chosen whether you accept this license agreement."; Agent_Speak(L_EulaWhereIsNextButton1_Text); var L_EulaWhereIsNextButton2_Text = "You must first click the Yes or No option."; Agent_Speak(L_EulaWhereIsNextButton2_Text); } function Agent_EulaWhatToDoNext() { Agent_GestureAtElement(g.radioAgree,"Left"); var L_EulaWhatToDoNext1_Text = "After you've read the license agreement, click Yes to accept it."; Agent_Speak(L_EulaWhatToDoNext1_Text); Agent_Play("RestPose"); var L_EulaWhatToDoNext2_Text = "Or if you don't want to accept it, click No."; Agent_Speak(L_EulaWhatToDoNext2_Text); var L_EulaWhatToDoNext3_Text = "You must accept this agreement if you want to continue using Windows."; Agent_Speak(L_EulaWhatToDoNext3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_EulaWhatToDoNext4_Text = "Then click the Next button to move to the next screen."; Agent_Speak(L_EulaWhatToDoNext4_Text); Agent_Play("RestPose"); } // ************************* BadEula Page (badeula.htm) Scripts ************************* // function Agent_BadEulaAddCommands() { var L_BadEulaCommand1_Text = "&Tell me about this step"; var L_BadEulaCommand2_Text = "Wh&at does the EULA say?"; var L_BadEulaCommand3_Text = "What &if I don't accept the EULA?"; var L_BadEulaCommand4_Text = "&What should I do next"; g_AgentCharacter.Commands.Add("Agent_BadEulaAboutThisStep", L_BadEulaCommand1_Text); g_AgentCharacter.Commands.Add("Agent_BadEulaWhatDoesEulaSay", L_BadEulaCommand2_Text); g_AgentCharacter.Commands.Add("Agent_BadEulaWhatIfIDontAcceptEula", L_BadEulaCommand3_Text); g_AgentCharacter.Commands.Add("Agent_BadEulaWhatToDoNext", L_BadEulaCommand4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_BadEulaAboutThisStep() { var L_BadEulaAboutThisStep1_Text = "On the previous screen you chose not to accept the license agreement."; Agent_Speak(L_BadEulaAboutThisStep1_Text); var L_BadEulaAboutThisStep2_Text = "As a result, you will not be able to use Windows."; Agent_Speak(L_BadEulaAboutThisStep2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_BadEulaAboutThisStep3_Text = "But you can return to the previous screen by clicking the Back button, and accept the agreement."; Agent_Speak(L_BadEulaAboutThisStep3_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_BadEulaAboutThisStep4_Text = "Or confirm that you want to stop using Windows and turn off your computer."; Agent_Speak(L_BadEulaAboutThisStep4_Text); Agent_Play("RestPose"); } function Agent_BadEulaWhatDoesEulaSay() { var L_BadEulaWhatDoesEulaSay1_Text = "Once you accept its terms, the EULA gives you permission to use Windows XP and grants you some additional rights."; Agent_Speak(L_BadEulaWhatDoesEulaSay1_Text); var L_BadEulaWhatDoesEulaSay2_Text = "It also imposes certain restrictions on your use of Windows XP."; Agent_Speak(L_BadEulaWhatDoesEulaSay2_Text); var L_BadEulaWhatDoesEulaSay3_Text = "To read the details, click the Back button, open the EULA, and scroll down to the 'Grant of License' section."; Agent_Speak(L_BadEulaWhatDoesEulaSay3_Text); var L_BadEulaWhatDoesEulaSay4_Text = "The EULA also describes the limited warranty, and the terms under which you may make a backup or archival copy of Windows XP."; Agent_Speak(L_BadEulaWhatDoesEulaSay4_Text); } function Agent_BadEulaWhatIfIDontAcceptEula() { var L_BadEulaWhatIfIDontAcceptEula1_Text = "Since the EULA grants you permission to use Windows XP, you must accept this agreement before you can begin using Windows XP."; Agent_Speak(L_BadEulaWhatIfIDontAcceptEula1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_BadEulaWhatIfIDontAcceptEula2_Text = "If you decide not to accept it, then you can turn off your computer by clicking the Shutdown button."; Agent_Speak(L_BadEulaWhatIfIDontAcceptEula2_Text); Agent_Play("RestPose"); var L_BadEulaWhatIfIDontAcceptEula3_Text = "When you restart your computer, you'll return to this screen."; Agent_Speak(L_BadEulaWhatIfIDontAcceptEula3_Text); } function Agent_BadEulaWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_BadEulaWhatToDoNext1_Text = "If you decide to accept the license agreement, click the Back button."; Agent_Speak(L_BadEulaWhatToDoNext1_Text); Agent_Play("RestPose"); var L_BadEulaWhatToDoNext2_Text = "You must accept the agreement in order to continue this process and begin using Windows."; Agent_Speak(L_BadEulaWhatToDoNext2_Text); var L_BadEulaWhatToDoNext3_Text = "If you decide not to accept it, click the Shutdown button to turn off your computer."; Agent_Speak(L_BadEulaWhatToDoNext3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_BadEulaWhatToDoNext4_Text = "When you restart your computer, you'll return to this screen."; Agent_Speak(L_BadEulaWhatToDoNext4_Text); Agent_Play("RestPose"); } // ************************* Product Key Page(prodkey.htm) Scripts ************************* // function Agent_ProductKeyAddCommands() { var L_ProductKeyAddCommands1_Text = "&Tell me about this step"; var L_ProductKeyAddCommands2_Text = "Wh&at is a product key?"; var L_ProductKeyAddCommands4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_ProductKeyAboutThisStep", L_ProductKeyAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ProductKeyWhatIsProdKey", L_ProductKeyAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_ProductKeyWhatToDoNext",L_ProductKeyAddCommands4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnProductKeyPreDisplayMenu() { if (g.btnNext.disabled) { var L_ProductKeyAddCommands3_Text = "Why &isn't the next button available?"; try { g_AgentCharacter.Commands.Insert("Agent_ProductKeyWhyNextNotAvailable","Agent_ProductKeyWhatToDoNext",false,L_ProductKeyAddCommands3_Text); } catch (e) { } } else { try { g_AgentCharacter.Commands.Remove("Agent_ProductKeyWhyNextNotAvailable"); } catch (e) { } } } function Agent_ProductKeyAboutThisStep() { var L_ProductKeyAboutThisStep1_Text = "This is the screen where you type your 25-character product key that should have been provided by your computer manufacturer."; Agent_Speak(L_ProductKeyAboutThisStep1_Text); var L_ProductKeyAboutThisStep2_Text = "If the product key doesn't appear on the CD cover, check the Certificate of Authenticity sticker on your PC or on the back of the 'getting started' book."; Agent_Speak(L_ProductKeyAboutThisStep2_Text); Agent_GestureAtElement(g.pid1,"Left"); var L_ProductKeyAboutThisStep3_Text = "Any letters you type here will automatically be capitalized for you."; Agent_Speak(L_ProductKeyAboutThisStep3_Text); Agent_Play("RestPose"); var L_ProductKeyAboutThisStep4_Text = "After this step, you can register your computer and your copy of Microsoft Windows."; Agent_Speak(L_ProductKeyAboutThisStep4_Text); var L_ProductKeyAboutThisStep5_Text = "It's easy, and registering Windows makes all sorts of great benefits available to you."; Agent_Speak(L_ProductKeyAboutThisStep5_Text); } function Agent_ProductKeyWhatIsProdKey() { var L_ProductKeyWhatIsProdKey1_Text = "Every copy of Windows produced by Microsoft is coded with a unique product key."; Agent_Speak(L_ProductKeyWhatIsProdKey1_Text); var L_ProductKeyWhatIsProdKey2_Text = "The product key helps assure you that you have purchased a genuine Microsoft product."; Agent_Speak(L_ProductKeyWhatIsProdKey2_Text); var L_ProductKeyWhatIsProdKey3_Text = "And it helps protect you from a pirated copy of Windows."; Agent_Speak(L_ProductKeyWhatIsProdKey3_Text); var L_ProductKeyWhatIsProdKey4_Text = "The product key also qualifies you for certain customer benefits, such as support, marketing services, upgrades and Web offers."; Agent_Speak(L_ProductKeyWhatIsProdKey4_Text); } function Agent_ProductKeyWhyNextNotAvailable() { var L_ProductKeyWhyNextNotAvailable1_Text = "The Next button is not available because you have not typed a valid product key."; Agent_Speak(L_ProductKeyWhyNextNotAvailable1_Text); var L_ProductKeyWhyNextNotAvailable2_Text = "You must type a valid product key."; Agent_Speak(L_ProductKeyWhyNextNotAvailable2_Text); var L_ProductKeyWhyNextNotAvailable3_Text = "Then you will be able to click the Next button to go on."; Agent_Speak(L_ProductKeyWhyNextNotAvailable3_Text); } function Agent_ProductKeyWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ProductKeyWhatToDoNext1_Text = "After you type a valid product key, click the Next button."; Agent_Speak(L_ProductKeyWhatToDoNext1_Text); Agent_Play("RestPose"); } // ************************* Reg1 Page (reg1.htm) Scripts ************************* // function Agent_Reg1AddCommands() { var L_Reg1Command1_Text = "&Tell me about this step"; var L_Reg1Command2_Text = "T&ell me about registration"; var L_Reg1Command3_Text = "H&ow do I register now?"; var L_Reg1Command4_Text = "Can I ®ister later?"; var L_Reg1Command5_Text = "Wh&at's the value of registering?"; var L_Reg1Command6_Text = "Tell &me about sharing information"; g_AgentCharacter.Commands.Add("Agent_Reg1AboutThisStep", L_Reg1Command1_Text); g_AgentCharacter.Commands.Add("Agent_Reg1AboutRegistration", L_Reg1Command2_Text); g_AgentCharacter.Commands.Add("Agent_Reg1HowToRegister", L_Reg1Command3_Text); g_AgentCharacter.Commands.Add("Agent_Reg1RegisterLater", L_Reg1Command4_Text); g_AgentCharacter.Commands.Add("Agent_Reg1WhyRegister", L_Reg1Command5_Text); g_AgentCharacter.Commands.Add("Agent_Reg1AboutSharingInfo", L_Reg1Command6_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_Reg1AboutThisStep() { var L_Reg1AboutThisStep1_Text = "This is the beginning of the registration section."; Agent_Speak(L_Reg1AboutThisStep1_Text); var L_Reg1AboutThisStep2_Text = "Here you will be able to register your copy of Windows."; Agent_Speak(L_Reg1AboutThisStep2_Text); var L_Reg1AboutThisStep3_Text = "When you do, you become eligible for a number of Microsoft customer benefits."; Agent_Speak(L_Reg1AboutThisStep3_Text); var L_Reg1AboutThisStep4_Text = "These include being notified of product updates, and having access to Microsoft's award-winning product support services."; Agent_Speak(L_Reg1AboutThisStep4_Text); var L_Reg1AboutThisStep5_Text = "On this screen, you can decide how you would like to register."; Agent_Speak(L_Reg1AboutThisStep5_Text); Agent_GestureAtElement(g.txtMSReglink,"Left"); var L_Reg1AboutThisStep6_Text = "And if you want to find out more about Microsoft's privacy policy, click this link."; Agent_Speak(L_Reg1AboutThisStep6_Text); Agent_Play("RestPose"); } function Agent_Reg1AboutRegistration() { Agent_GestureAtElement(g.rb_reg_ms_yes,"Left"); var L_Reg1AboutRegistration1_Text = "Click here to begin the registration process, then click the Next button."; Agent_Speak(L_Reg1AboutRegistration1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.rb_reg_ms_no,"Left"); var L_Reg1AboutRegistration2_Text = "But if you prefer not to register, click this second option instead, then click \"Next\"."; Agent_Speak(L_Reg1AboutRegistration2_Text); Agent_Play("RestPose"); } function Agent_Reg1HowToRegister() { Agent_GestureAtElement(g.rb_reg_ms_yes,"Left"); var L_Reg1HowToRegister1_Text = "To register your copy of Windows, make sure the Yes option is selected."; Agent_Speak(L_Reg1HowToRegister1_Text); Agent_Play("RestPose"); var L_Reg1HowToRegister2_Text = "Then click the Next button to continue."; Agent_Speak(L_Reg1HowToRegister2_Text); } function Agent_Reg1RegisterLater() { var L_Reg1RegisterLater1_Text = "If you skip registration now, you can register your copy of Windows after you finish setting up Windows."; Agent_Speak(L_Reg1RegisterLater1_Text); var L_Reg1RegisterLater2_Text = "Just click Run on the Start menu and type regwiz /r."; Agent_Speak(L_Reg1RegisterLater2_Text); var L_Reg1RegisterLater3_Text = "If you forget these steps, click Help and Support on the Start menu to find the answer to your questions and other valuable information."; Agent_Speak(L_Reg1RegisterLater3_Text); } function Agent_Reg1WhyRegister() { var L_Reg1WhyRegister1_Text = "When you register your copy of Windows, you become eligible for a number of Microsoft customer benefits."; Agent_Speak(L_Reg1WhyRegister1_Text); var L_Reg1WhyRegister2_Text = "These include being notified of product updates and having access to Microsoft's award-winning product support services."; Agent_Speak(L_Reg1WhyRegister2_Text); } function Agent_Reg1AboutSharingInfo() { if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_GestureAtElement(g.reg1_spn3,"Left"); var L_Reg1AboutSharingInfo1_Text = "When you check these options, you choose to share your registration information with Microsoft and with your computer's manufacturer."; Agent_Speak(L_Reg1AboutSharingInfo1_Text); Agent_Play("RestPose"); } else { Agent_GestureAtElement(g.reg1_spn3,"Left"); var L_Reg1AboutSharingInfo1_Text = "When you check these options, you choose to share your registration information with Microsoft."; Agent_Speak(L_Reg1AboutSharingInfo1_Text); Agent_Play("RestPose"); } Agent_GestureAtElement(g.txtMSReglink,"Left"); var L_Reg1AboutSharingInfo2_Text = "To learn more about Microsoft's privacy policy, click this link."; Agent_Speak(L_Reg1AboutSharingInfo2_Text); Agent_Play("RestPose"); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_GestureAtElement(g.reg1_spn3,"Left"); var L_Reg1AboutSharingInfo3_Text = "To learn more about the %1 privacy policy, click this link."; Agent_Speak(ApiObj.FormatMessage(L_Reg1AboutSharingInfo3_Text, g_OEMNameStr)); Agent_Play("RestPose"); } } // ************************* Reg3 Page (reg3.htm) Scripts ************************* // function Agent_Reg3AddCommands() { var L_Reg3Command1_Text = "&Tell me about this step"; var L_Reg3Command2_Text = "H&ow do I change information?"; var L_Reg3Command3_Text = "Tell &me about sharing information"; g_AgentCharacter.Commands.Add("Agent_Reg3AboutThisStep", L_Reg3Command1_Text); g_AgentCharacter.Commands.Add("Agent_Reg3HowToChangeInfo", L_Reg3Command2_Text); g_AgentCharacter.Commands.Add("Agent_Reg3AboutSharingInfo", L_Reg3Command3_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_Reg3AboutThisStep() { var L_Reg3AboutThisStep1_Text = "To register your copy of Microsoft Windows, you'll need to fill in the required information on this screen."; Agent_Speak(L_Reg3AboutThisStep1_Text); Agent_GestureAtElement(g.UserCity,"Left"); var L_Reg3AboutThisStep2_Text = "We will need information for all the boxes except the ones marked 'Optional.'"; Agent_Speak(L_Reg3AboutThisStep2_Text); Agent_Play("RestPose"); var L_Reg3AboutThisStep3_Text = "But it would be great if you could fill in the optional information, too."; Agent_Speak(L_Reg3AboutThisStep3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_Reg3AboutThisStep4_Text = "When you're done, just click the Next button."; Agent_Speak(L_Reg3AboutThisStep4_Text); Agent_Play("RestPose"); } function Agent_Reg3HowToChangeInfo() { var L_Reg3HowToChangeInfo1_Text = "We've added some hints inside the boxes to show you what to do."; Agent_Speak(L_Reg3HowToChangeInfo1_Text); Agent_GestureAtElement(g.UserLastName,"Left"); var L_Reg3HowToChangeInfo2_Text = "For example, just click in this Last name box in order to begin typing."; Agent_Speak(L_Reg3HowToChangeInfo2_Text); var L_Reg3HowToChangeInfo3_Text = "A blinking vertical line, known as the insertion point, should appear in the box."; Agent_Speak(L_Reg3HowToChangeInfo3_Text); var L_Reg3HowToChangeInfo4_Text = "Whatever you type will be entered at the insertion point."; Agent_Speak(L_Reg3HowToChangeInfo4_Text); Agent_Play("RestPose"); var L_Reg3HowToChangeInfo5_Text = "You can move the insertion point in the text box by pressing the left or right arrow keys on your keyboard."; Agent_Speak(L_Reg3HowToChangeInfo5_Text); var L_Reg3HowToChangeInfo6_Text = "And you can use the Delete key to remove characters after the insertion point, or use the Backspace key to remove characters before the insertion point."; Agent_Speak(L_Reg3HowToChangeInfo6_Text); var L_Reg3HowToChangeInfo7_Text = "If you want to insert a character, position the pointer inside the box at the place where you want to add the character, and click."; Agent_Speak(L_Reg3HowToChangeInfo7_Text); var L_Reg3HowToChangeInfo8_Text = "Then type the character you want to insert."; Agent_Speak(L_Reg3HowToChangeInfo8_Text); var L_Reg3HowToChangeInfo9_Text = "Don't worry if you don't type in a box and the hint still appears there."; Agent_Speak(L_Reg3HowToChangeInfo9_Text); var L_Reg3HowToChangeInfo10_Text = "The hint is just to help you. It's not part of your registration information."; Agent_Speak(L_Reg3HowToChangeInfo10_Text); } function Agent_Reg3AboutSharingInfo() { if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_GestureAtElement(g.sharemsonly,"Left"); var L_Reg3AboutSharingInfo1_Text = "When you check these options, you choose to share your registration information with Microsoft and with your computer's manufacturer."; Agent_Speak(L_Reg3AboutSharingInfo1_Text); Agent_Play("RestPose"); } else { Agent_GestureAtElement(g.sharemsonly,"Left"); var L_Reg3AboutSharingInfo1_Text = "When you check these options, you choose to share your registration information with Microsoft."; Agent_Speak(L_Reg3AboutSharingInfo1_Text); Agent_Play("RestPose"); } } function Agent_OnRegister3KeyDown(elem, keyCode) { switch (elem.id) { case "UserFirstName": case "UserMiddleName": case "UserLastName": case "UserAddress": case "UserAddress2": case "UserCity": case "UserStateTextBox": case "UserZipCode": case "UserEmailAddress": case "selUSState": case "selCAProvince": case "selCountry": case "sharems": case "shareoem": // Is it the Tab (or Shift-Tab) key? if (keyCode == 9) { // We don't want to start looking in this case // because we'll wind up looking at the wrong // thing. We will get a GotFocus event as a result // of the tab key which will move us along. return; } // If we aren't looking at the control, stop what we're // doing and immediately move to the control. Then, start // looking at it. if (!Agent_IsLooking()) { Agent_StopAll(); var dir; if (elem.type == "checkbox") if (g.document.dir == "rtl") { if (elem.id == "sharems") dir = "TopCenterWidth"; else dir = "BottomCenterWidth"; } else dir = "Left"; else { if ((elem.id == "UserZipCode") && !IsFarEastLocale()) { if (g.document.dir == "rtl") dir = "Left"; else dir = "TopRight"; } else { if (g.document.dir == "rtl") dir = "Left"; else dir = "Right"; } } Agent_MoveToElement(elem, dir, 0); if ((dir == "TopRight") || (dir == "TopCenterWidth")) Agent_StartLookingAtElement(elem, "LookDown"); else if (dir == "BottomCenterWidth") Agent_StartLookingAtElement(elem, "LookUp"); else Agent_StartLookingAtElement(elem, "Look" + dir); } else { // We're already looking at it, just keep at it Agent_KeepLooking(); } break; default: return; } } function Agent_OnRegister3GotFocus(elem) { var dir; if (elem.type == "checkbox"){ if (g.document.dir == "rtl") { if (elem.id == "sharems") dir = "TopCenterWidth" else dir = "BottomCenterWidth" } else dir = "Left"; } else { // removed Country as text boxes spec change if ((elem.id == "UserZipCode")&& !IsFarEastLocale()) { if (g.document.dir == "rtl") dir = "Left" else dir = "TopRight"; } else { if (g.document.dir == "rtl") dir = "Left" else dir = "Right"; } } Agent_StopAll(); Agent_MoveToElement(elem, dir, 0); if ((dir == "TopRight") || (dir == "TopCenterWidth")) Agent_StartLookingAtElement(elem, "LookDown"); else if (dir == "BottomCenterWidth") Agent_StartLookingAtElement(elem, "LookUp"); else Agent_StartLookingAtElement(elem, "Look" + dir); // Keep track of whether dropdowns have ever had // focus. switch (elem.id) { case "selUSState": g_bAgentRegister3VisitState = true; break; case "selCAProvince": g_bAgentRegister3VisitProvince = true; break; case "selCountry": g_bAgentRegister3VisitCountry = true; break; } } function Agent_Register3PlayCheckBoxScript(id) { var elemMs; var elemOem; // Mark both check boxes as visited. We only want to // play this script once (for both boxes since they // are pretty much the same). elemMs = g.document.all("sharems"); elemOem = g.document.all("shareoem"); if (id == "sharems") elem = elemMs; else if (id == "shareoem") elem = elemOem; else return; // Move to the element if (g.document.dir == "rtl") Agent_MoveToElement(elem, "TopCenterWidth", kdwAgentMoveSpeed); else Agent_MoveToElement(elem, "Left", kdwAgentMoveSpeed); // Generate the appropriate string L_Register3PlayCheckBoxScript1_Text = "Currently, the registration information on this screen is set to be sent both to Microsoft and the computer manufacturer."; L_Register3PlayCheckBoxScript2_Text = "Currently, the registration information on this screen is set to be sent to Microsoft, but not the computer manufacturer."; L_Register3PlayCheckBoxScript3_Text = "Currently, the registration information on this screen is set to be sent to the computer manufacturer but not Microsoft."; L_Register3PlayCheckBoxScript4_Text = "Currently, the registration information on this screen will not be sent to either Microsoft or the computer manufacturer."; var str; if (elemMs.checked && elemOem.checked) str = L_Register3PlayCheckBoxScript1_Text; else if (elemMs.checked && !elemOem.checked) str = L_Register3PlayCheckBoxScript2_Text; else if (!elemMs.checked && elemOem.checked) str = L_Register3PlayCheckBoxScript3_Text; else if (!elemMs.checked && !elemOem.checked) str = L_Register3PlayCheckBoxScript4_Text; // Play the script Agent_Speak(str); var L_Register3PlayCheckBoxScript5_Text = "This information helps them to keep you apprised of product updates and other benefits to registered customers."; Agent_Speak(L_Register3PlayCheckBoxScript5_Text); var L_Register3PlayCheckBoxScript6_Text = "If you want to change whether this information is sent,"; Agent_Speak(L_Register3PlayCheckBoxScript6_Text); if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "TopCenterWidth"); else Agent_GestureAtElement(elem, "Left"); var L_Register3PlayCheckBoxScript7_Text = "Just click the boxes here."; Agent_Speak(L_Register3PlayCheckBoxScript7_Text); Agent_Play("RestPose"); } function Agent_Register3IsComplete() { // Page is complete if all required fields are non-empty // and all required visits have occurred. // Always check the current field first var strCurrent = g_strAgentLastFocusID; if (strCurrent == "") { if (IsFarEastLocale() && !IsKoreanLocale()) strCurrent = "UserLastName"; else strCurrent = "UserFirstName"; } var elem = g.document.all(strCurrent); if (null == elem) return null; switch (strCurrent) { case "UserFirstName": if ((elem.value == "") && (g.document.all("UserMiddleName").value == "")) return elem; break; case "UserMiddleName": if ((elem.value == "") && (g.document.all("UserFirstName").value == "")) return elem; break; case "UserLastName": case "UserAddress": case "UserCity": if (elem.value == "") return elem; break; case "UserStateTextBox": if ((elem.value == "") && (g.document.all("StateLabel").innerText.indexOf("*") >=0)) return elem; break; case "UserZipCode": if ((elem.value == "") && (g.document.all("LabelZip").innerText.indexOf("*") >=0)) return elem; break; case "UserEmailAddress": if ((elem.value == "") && !g_bAgentRegister3ShortEmail ) { return elem; } break; } // Check to see if we are have a Far East locale (T. Chinese, S. Chinese, // Korean, Japanese) first to determine how we process the order of completion if (!IsFarEastLocale()) { // Not a Far East locale // Start with FirstName and work our way down elem = g.document.all("UserFirstName"); if (elem.value == "") { if (g.document.all("UserMiddleName").value == "") return elem; } // NOTE: we don't need to check the middle name. If it's empty // and the first name is empty, we would have caught that above. // If the first name is not empty, we don't care about the middle // name. elem = g.document.all("UserMiddleName"); if (elem.value == "") { if (g.document.all("UserFirstName").value == "") return elem; } // Last Name elem = g.document.all("UserLastName"); if (elem.value == "") return elem; // Address elem = g.document.all("UserAddress"); if (elem.value == "") return elem; // City elem = g.document.all("UserCity"); if (elem.value == "") return elem; // State elem = g.document.all("UserStateTextBox"); if (elem.style.display != "none") { if ((elem.value == "") && (g.document.all("StateLabel").innerText.indexOf("*") >=0)) return elem; } else { elem = g.document.all("selUSState"); // NOTE: elem.style.visibility isn't always "visible" if (elem.style.display != "none") { if ((!g_bAgentRegister3VisitState) || (elem.options(elem.selectedIndex).text == "") ) return elem; } else { elem = g.document.all("selCAProvince"); if ((!g_bAgentRegister3VisitProvince)|| (elem.options(elem.selectedIndex).text == "") ) return elem; } } // Zip elem = g.document.all("UserZipCode"); if ((elem.value == "") && (g.document.all("LabelZip").innerText.indexOf("*") >=0)) return elem; // Country elem = g.document.all("selCountry"); if (!g_bAgentRegister3VisitCountry) return elem; // Email elem = g.document.all("UserEmailAddress"); if (elem.value != "") { if ((elem.value.indexOf("@") < 0) || (elem.value.indexOf(".") < 0)) return elem; } // Share MS if (!g_bAgentRegister3Privacy) { // check to see if the checkboxes are visible if (g.document.all("RegChkBxGrp").style.display != "none") { g_bAgentRegister3Privacy = true; return g.document.all("sharems"); } } // We're done return null; } // Otherwise this must be a Far East locale // so do the alternate ordering else return Agent_Reg3FarEastLocaleOrder(); } function Agent_Reg3FarEastLocaleOrder() { // Start with LastName and work our way down // Last Name if(!IsKoreanLocale()) { elem = g.document.all("UserLastName"); if (elem.value == "") return elem; } // First Name elem = g.document.all("UserFirstName"); if (elem.value == "") return elem; // Country elem = g.document.all("selCountry"); if (!g_bAgentRegister3VisitCountry) return elem; // State/Province text box elem = g.document.all("UserStateTextBox"); if ((elem.style.visibility != "hidden") && (elem.style.display != "none")) { if ((elem.value == "") && (g.document.all("StateLabel").innerText.indexOf("*") >=0)) return elem; } else { elem = g.document.all("selUSState"); // NOTE: elem.style.visibility isn't always "visible" if (elem.style.display != "none") { if ((!g_bAgentRegister3VisitState) || (elem.options(elem.selectedIndex).text == "") ) return elem; } else { elem = g.document.all("selCAProvince"); if ((!g_bAgentRegister3VisitProvince) || (elem.options(elem.selectedIndex).text == "") ) return elem; } } // City elem = g.document.all("UserCity"); if (elem.value == "") return elem; // Address elem = g.document.all("UserAddress"); if (elem.value == "") return elem; // Zip elem = g.document.all("UserZipCode"); if ((elem.value == "") && (g.document.all("LabelZip").innerText.indexOf("*") >=0)) return elem; // Email elem = g.document.all("UserEmailAddress"); if (elem.value != "") { if ((elem.value.indexOf("@") < 0) || (elem.value.indexOf(".") < 0)) return elem; } // Share MS if (!g_bAgentRegister3Privacy) { // check to see if the checkboxes are visible if (g.document.all("RegChkBxGrp").style.display != "none") { g_bAgentRegister3Privacy = true; return g.document.all("sharems"); } } // We're done return null; } function Agent_Register3EncourageInteraction(elem) { var bExplainDropDownArrow = false; // Is this element different than the element that // has focus? if (g_strAgentLastFocusID == "") { elem.focus(); g_AgentCharacter.Activate(2); Agent_StopAll(); } else if (g_strAgentLastFocusID != elem.id) { // If the specified element is next in the tab order, // tell the user to press the Tab key. Otherwise, tell // them to click the mouse. switch (elem.id) { case "UserMiddleName": case "UserLastName": case "UserAddress": case "UserAddress2": case "UserCity": case "UserStateTextBox": case "UserEmailAddress": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); if (Agent_IsNextTabItem(g.document.all(g_strAgentLastFocusID), elem)) Agent_Register3EncourageTabKey(); else Agent_Register3EncourageMouseClick(); if (elem.id == "UserEmailAddress") break; return; case "UserZipCode": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, (IsFarEastLocale() ? "Right" : "TopRight")); if (Agent_IsNextTabItem(g.document.all(g_strAgentLastFocusID), elem)) Agent_Register3EncourageTabKey(); else Agent_Register3EncourageMouseClick(); if (elem.id == "UserEmailAddress") break; return; case "selUSState": case "selCAProvince": case "selCountry": if (Agent_IsNextTabItem(g.document.all(g_strAgentLastFocusID), elem)) bExplainDropDownArrow = true; break; } } switch (elem.id) { case "UserFirstName": case "UserMiddleName": case "UserLastName": case "UserAddress": case "UserAddress2": case "UserCity": case "UserStateTextBox": case "selUSState": case "selCAProvince": case "selCountry": case "UserZipCode": case "UserEmailAddress": case "sharems": case "shareoem": Agent_Register3PlayElementScript(elem); if (bExplainDropDownArrow) Agent_Register3DropDownArrowExplain(); break; } } function Agent_Register3EncourageTabKey() { var L_Register3EncourageTabKey1_Text = "Press the Tab key to move here."; Agent_Speak(L_Register3EncourageTabKey1_Text); } function Agent_Register3EncourageMouseClick() { var L_Register3EncourageMouseClick1_Text = "Move the mouse pointer here and click the left button."; Agent_Speak(L_Register3EncourageMouseClick1_Text); } function Agent_Register3DropDownArrowExplain() { // The code in this function was removed as it blocks the text box // Agent_Play("Think"); // var L_Register3DropDownArrowExplain1_Text = "You can also press the Tab key to move here, and then use the Up and Down Arrow keys to change your selection."; // Agent_Think(L_Register3DropDownArrowExplain1_Text); } function Agent_Register3PlayElementScript(elem) { var str; var dir; switch (elem.id) { case "UserFirstName": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); var L_Register3PlayElementScript1_Text = "In this box, type your first name."; Agent_Speak(L_Register3PlayElementScript1_Text); if (g.document.dir == "rtl") { Agent_Play("LookLeft"); Agent_Play("LookLeftBlink"); Agent_Play("LookLefttReturn"); } else { Agent_Play("LookRight"); Agent_Play("LookRightBlink"); Agent_Play("LookRightReturn"); } break; case "UserMiddleName": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); var L_Register3PlayElementScript3_Text = "This is where you type your middle name."; Agent_Speak(L_Register3PlayElementScript3_Text); break; case "UserLastName": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); var L_Register3PlayElementScript4_Text = "In this box, type your last name."; Agent_Speak(L_Register3PlayElementScript4_Text); break; case "UserAddress": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); var L_Register3PlayElementScript5_Text = "Type in your street address here."; Agent_Speak(L_Register3PlayElementScript5_Text); break; case "UserAddress2": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); Agent_Play("Think"); var L_Register3PlayElementScript6_Text = "If you need additional space for your address, enter it here. Otherwise, press the Tab key to move on."; Agent_Speak(L_Register3PlayElementScript6_Text); Agent_Play("RestPose"); break; case "UserCity": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); var L_Register3PlayElementScript7_Text = "Type the name of the city or town where you live here."; Agent_Speak(L_Register3PlayElementScript7_Text); break; case "UserStateTextBox": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); var L_Register3PlayElementScript8_Text = "Type in your state or province here."; Agent_Speak(L_Register3PlayElementScript8_Text); break; case "selUSState": case "selCAProvince": case "selCountry": if (g.document.dir == "rtl") dir = "Left" else dir = "Right"; Agent_MoveToElement(elem, dir); Agent_Play("Explain"); if (elem.id == "selUSState") { var L_Register3PlayElementScript91_Text = "You need to select your state."; Agent_Speak(L_Register3PlayElementScript91_Text); Agent_GestureAtElement(elem, dir); var L_Register3PlayElementScript92_Text = "To display the list of states, click the downward pointing arrow button with your mouse."; Agent_Speak(L_Register3PlayElementScript92_Text); } else if (elem.id == "selCAProvince") { var L_Register3PlayElementScript93_Text = "You need to select your province."; Agent_Speak(L_Register3PlayElementScript93_Text); Agent_GestureAtElement(elem, dir); var L_Register3PlayElementScript94_Text = "To display the list of provinces, click the downward pointing arrow button with your mouse."; Agent_Speak(L_Register3PlayElementScript94_Text); } else { var L_Register3PlayElementScript95_Text = "You need to select your country or region, click the downward pointing arrow button with your mouse."; Agent_Speak(L_Register3PlayElementScript95_Text); Agent_GestureAtElement(elem, dir); var L_Register3PlayElementScript96_Text = "To display the list of countries and regions, click the downward pointing arrow button with your mouse."; Agent_Speak(L_Register3PlayElementScript96_Text); } Agent_Play("Explain"); var L_Register3PlayElementScript11_Text = "Then, make a selection by clicking your state."; var L_Register3PlayElementScript12_Text = "Then, make a selection by clicking your province."; var L_Register3PlayElementScript13_Text = "Then, make a selection by clicking your country or region."; if (elem.id == "selUSState") str = L_Register3PlayElementScript11_Text; else if (elem.id == "selCAProvince") str = L_Register3PlayElementScript12_Text; else str = L_Register3PlayElementScript13_Text; Agent_Speak(str); break; case "UserZipCode": if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, (IsFarEastLocale() ? "Right" : "TopRight")); var L_Register3PlayElementScript14_Text = "Enter your zip or postal code here."; Agent_Speak(L_Register3PlayElementScript14_Text); break; case "UserEmailAddress": if (elem.value == "") { if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); var L_Register3PlayElementScript15_Text = "Your e-mail address is optional, but is our preferred method of contacting you."; Agent_Speak(L_Register3PlayElementScript15_Text); g_bAgentRegister3ShortEmail = true; Agent_Play("Explain"); var L_Register3PlayElementScript16_Text = "If you don't have an e-mail address, leave this box blank."; Agent_Speak(L_Register3PlayElementScript16_Text); Agent_Play("Blink"); } else if ((elem.value.indexOf("@") < 0) || (elem.value.indexOf(".") < 0)) { if (g_strAgentLastFocusID == "UserEmailAddress") { Agent_Play("Decline"); var L_Register3PlayElementScript17_Text = "I'm sorry, this doesn't look like a valid e-mail address."; Agent_Speak(L_Register3PlayElementScript17_Text); Agent_ExplainEmailAddress(); if (g.document.dir == "rtl") Agent_GestureAtElement(elem, "Left"); else Agent_GestureAtElement(elem, "Right"); Agent_Play("Alert"); var L_Register3PlayElementScript18_Text = "If you don't have an e-mail address, leave this field blank."; Agent_Speak(L_Register3PlayElementScript18_Text); Agent_Play("Blink"); } } break; case "sharems": case "shareoem": if (g.document.all("RegChkBxGrp").style.display != "none") { Agent_Register3PlayCheckBoxScript(elem.id); return; } else { Agent_EncourageNextButton(); } } } function Agent_ExplainEmailAddress() { var L_ExplainEmailAddress1_Text = "An e-mail address typically has two parts."; Agent_Speak(L_ExplainEmailAddress1_Text); var L_ExplainEmailAddress2_Text = "The first part is the account name, which is followed by the @ symbol. The second part is the domain name."; Agent_Speak(L_ExplainEmailAddress2_Text); var L_ExplainEmailAddress3_Text = "For example, an email address might look like this: %s"; var re = /%s/i; var strEmail = "\\map=\"\"=\"greatcustomer@msn.com\"\\"; Agent_Speak(L_ExplainEmailAddress3_Text.replace(re, strEmail) + "\\pau=2000\\"); Agent_Play("RestPose"); } // ************************* MSPrivacy Page (prvcyms.htm)Scripts ************************* // function Agent_PrivacyMSAddCommands() { var L_PrivacyMSCommand1_Text = "&Tell me about this step"; var L_PrivacyMSCommand2_Text = "Wh&at is a secure server?"; var L_PrivacyMSCommand3_Text = "What is a coo&kie?"; var L_PrivacyMSCommand4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_PrivacyMSAboutThisStep", L_PrivacyMSCommand1_Text); g_AgentCharacter.Commands.Add("Agent_PrivacyMSWhatIsSecureServer", L_PrivacyMSCommand2_Text); g_AgentCharacter.Commands.Add("Agent_PrivacyMSWhatIsCookie", L_PrivacyMSCommand3_Text); g_AgentCharacter.Commands.Add("Agent_PrivacyMSWhatToDoNext", L_PrivacyMSCommand4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_PrivacyMSAboutThisStep() { var L_PrivacyMSAboutThisStep1_Text = "This screen displays Microsoft's privacy statement."; Agent_Speak(L_PrivacyMSAboutThisStep1_Text); Agent_GestureAtElement(g.privtext,"Left"); var L_PrivacyMSAboutThisStep2_Text = "You can read through the text here."; Agent_Speak(L_PrivacyMSAboutThisStep2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_PrivacyMSAboutThisStep3_Text = "Then click the Back button to return to the previous screen."; Agent_Speak(L_PrivacyMSAboutThisStep3_Text); Agent_Play("RestPose"); } function Agent_PrivacyMSWhatIsSecureServer() { var L_PrivacyMSWhatIsSecureServer1_Text = "A server is a computer that provides shared resources, such as information, to other computers on a network."; Agent_Speak(L_PrivacyMSWhatIsSecureServer1_Text); var L_PrivacyMSWhatIsSecureServer2_Text = "A secure server is one such computer with the capability of providing secure transactions, ensuring that information stored on it will not be accessible to unauthorized parties."; Agent_Speak(L_PrivacyMSWhatIsSecureServer2_Text); var L_PrivacyMSWhatIsSecureServer3_Text = "For example, when you register with Microsoft, your name and address information are stored on Microsoft's secure registration server."; Agent_Speak(L_PrivacyMSWhatIsSecureServer3_Text); var L_PrivacyMSWhatIsSecureServer4_Text = "That way, your information remains private and safe, and you won't be contacted by other parties outside Microsoft as a result of registering."; Agent_Speak(L_PrivacyMSWhatIsSecureServer4_Text); } function Agent_PrivacyMSWhatIsCookie() { var L_PrivacyMSWhatIsCookie1_Text = "A cookie is a small data file that is stored on your computer when you visit certain Web sites."; Agent_Speak(L_PrivacyMSWhatIsCookie1_Text); var L_PrivacyMSWhatIsCookie2_Text = "The cookie contains basic information about you, such as your e-mail address, so that you won't have to re-enter it every time you visit the site."; Agent_Speak(L_PrivacyMSWhatIsCookie2_Text); var L_PrivacyMSWhatIsCookie3_Text = "For example, if you make a purchase on a Web site, that site might send a cookie to your computer that contains your shipping information."; Agent_Speak(L_PrivacyMSWhatIsCookie3_Text); var L_PrivacyMSWhatIsCookie4_Text = "So the next time you visit that Web site, you won't have to enter that information again."; Agent_Speak(L_PrivacyMSWhatIsCookie4_Text); var L_PrivacyMSWhatIsCookie5_Text = "When you register with Microsoft, your product ID, your name, and your address are saved in a cookie on your computer."; Agent_Speak(L_PrivacyMSWhatIsCookie5_Text); var L_PrivacyMSWhatIsCookie6_Text = "So the next time you visit www.microsoft.com, the Web site will recognize you as a registered Windows user."; Agent_Speak(L_PrivacyMSWhatIsCookie6_Text); } function Agent_PrivacyMSWhatToDoNext() { Agent_GestureAtElement(g.privtext,"Left"); var L_PrivacyMSWhatToDoNext1_Text = "To see more of the privacy statement, click in this box."; Agent_Speak(L_PrivacyMSWhatToDoNext1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.privtext,"Right"); var L_PrivacyMSWhatToDoNext2_Text = "Then use the up and down arrow buttons here to scroll through the privacy statement."; Agent_Speak(L_PrivacyMSWhatToDoNext2_Text); Agent_Play("RestPose"); var L_PrivacyMSWhatToDoNext3_Text = "You can also use the Page Down and Page Up keys on your keyboard to move through the text."; Agent_Speak(L_PrivacyMSWhatToDoNext3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnBack, "TopLeft"); } else { Agent_GestureAtElement(g.btnBack, "TopCenterWidth"); } var L_PrivacyMSWhatToDoNext4_Text = "When you are done reading the privacy statement, click the Back button to return to the previous registration screen."; Agent_Speak(L_PrivacyMSWhatToDoNext4_Text); Agent_Play("RestPose"); } // ************************* RefDial Page (drdyref.htm) Scripts ************************* // function Agent_RefDialAddCommands() { var L_RefDialAddCommands1_Text = "&Tell me about this step"; var L_RefDialAddCommands2_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_RefDialAboutThisStep", L_RefDialAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_RefDialWhatToDoNext", L_RefDialAddCommands2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_RefDialAboutThisStep() { var L_RefDialAboutThisStep1_Text = "At this point, Windows needs to make a toll-free phone call."; Agent_Speak(L_RefDialAboutThisStep1_Text); var L_RefDialAboutThisStep2_Text = "This will enable you to use your existing Internet account on this computer."; Agent_Speak(L_RefDialAboutThisStep2_Text); } function Agent_RefDialWhatToDoNext() { Agent_GestureAtElement(g.btnManual,"Left"); var L_RefDialWhatToDoNext1_Text = "If you already have an Internet service provider, or 'ISP' for short, or know which ISP you want to use, click this Have Settings button."; Agent_Speak(L_RefDialWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_RefDialWhatToDoNext2_Text = "If you want to select from a list of available ISPs in your area, click Next to continue."; Agent_Speak(L_RefDialWhatToDoNext2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_RefDialWhatToDoNext3_Text = "Or click Skip to continue without setting up this computer for Internet access."; Agent_Speak(L_RefDialWhatToDoNext3_Text); Agent_Play("RestPose"); } // ************************* RefDialing Page (refdial.htm) Scripts ************************* // function Agent_RefDialingAddCommands() { var L_RefDialingAddCommands1_Text = "&Tell me about this step"; var L_RefDialingAddCommands2_Text = "Wh&at's the bar in the middle of my screen?"; var L_RefDialingAddCommands3_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_RefDialingAboutThisStep", L_RefDialingAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_RefDialingWhatsThisBar", L_RefDialingAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_RefDialingWhatToDoNext", L_RefDialingAddCommands3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_RefDialingAboutThisStep() { var L_RefDialingAboutThisStep1_Text = "Windows is connecting you to the Microsoft Referral Service to retrieve a list of Internet service providers available in your area."; Agent_Speak(L_RefDialingAboutThisStep1_Text); var L_RefDialingAboutThisStep2_Text = "Please wait..."; Agent_Speak(L_RefDialingAboutThisStep2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_RefDialingAboutThisStep3_Text = "Or if you prefer, you can skip this step or go back to the previous screen."; Agent_Speak(L_RefDialingAboutThisStep3_Text); Agent_Play("RestPose"); } function Agent_RefDialingWhatsThisBar() { Agent_GestureAtElement(g.tblProg,"Left"); var L_RefDialingWhatsThisBar1_Text = "That is a progress bar, which shows you where you are in this process."; Agent_Speak(L_RefDialingWhatsThisBar1_Text); var L_RefDialingWhatsThisBar2_Text = "As information is downloaded from the referral service to your computer, the bar fills up."; Agent_Speak(L_RefDialingWhatsThisBar2_Text); Agent_Play("RestPose"); var L_RefDialingWhatsThisBar3_Text = "When all the information has been downloaded, the bar will be completely filled and you'll move to the next screen automatically."; Agent_Speak(L_RefDialingWhatsThisBar2_Text); } function Agent_RefDialingWhatToDoNext() { var L_RefDialingWhatToDoNext1_Text = "Please wait while Windows downloads information about ISPs from the Microsoft Referral Service to your computer."; Agent_Speak(L_RefDialingWhatToDoNext1_Text); var L_RefDialingWhatToDoNext2_Text = "Once the download is complete, the next screen will appear automatically."; Agent_Speak(L_RefDialingWhatToDoNext2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_RefDialingWhatToDoNext3_Text = "If you want to skip this step, click the Skip button."; Agent_Speak(L_RefDialingWhatToDoNext3_Text); Agent_Play("RestPose"); } // ************************* RegDial Page (regdial.htm) Scripts ************************* // function Agent_RegDialAddCommands() { var L_RegDialAddCommands1_Text = "&Tell me about this step"; var L_RegDialAddCommands2_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_RegDialAboutThisStep", L_RegDialAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_RegDialWhatToDoNext", L_RegDialAddCommands2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_RegDialAboutThisStep() { var L_RegDialAboutThisStep1_Text = "Windows is using your computer to make a toll-free phone call to connect to the registration center."; Agent_Speak(L_RegDialAboutThisStep1_Text); var L_RegDialAboutThisStep2_Text = "Please wait..."; Agent_Speak(L_RegDialAboutThisStep2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_RegDialAboutThisStep3_Text = "Or if you prefer, you can skip this step, or go back to the previous screen."; Agent_Speak(L_RegDialAboutThisStep3_Text); Agent_Play("RestPose"); } function Agent_RegDialWhatToDoNext() { var L_RegDialWhatToDoNext1_Text = "Please wait while Windows connects to the registration center."; Agent_Speak(L_RegDialWhatToDoNext1_Text); var L_RegDialWhatToDoNext2_Text = "Once Windows has connected, it will automatically move to the next screen."; Agent_Speak(L_RegDialWhatToDoNext2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_RegDialWhatToDoNext3_Text = "If you want to skip this step, click the Skip button."; Agent_Speak(L_RegDialWhatToDoNext3_Text); Agent_Play("RestPose"); } // ************************* MigDial Page (drdymig.htm) Scripts ************************* // function Agent_MigDialAddCommands() { var L_MigDialAddCommands1_Text = "&Tell me about this step"; var L_MigDialAddCommands2_Text = "&What should I do next"; g_AgentCharacter.Commands.Add("Agent_MigDialAboutThisStep", L_MigDialAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_MigDialWhatToDoNext", L_MigDialAddCommands2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_MigDialAboutThisStep() { var L_MigDialAboutThisStep1_Text = "At this point, Windows needs to make a toll-free phone call."; Agent_Speak(L_MigDialAboutThisStep1_Text); var L_MigDialAboutThisStep2_Text = "This will enable you to use your existing Internet account on this computer."; Agent_Speak(L_MigDialAboutThisStep2_Text); } function Agent_MigDialWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MigDialWhatToDoNext1_Text = "Click the Next button to begin dialing."; Agent_Speak(L_MigDialWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_MigDialWhatToDoNext2_Text = "Or, if you want to skip this step, click the Skip button."; Agent_Speak(L_MigDialWhatToDoNext2_Text); Agent_Play("RestPose"); } // ************************* MigList Page (miglist.htm) Scripts ************************* // function Agent_MigListAddCommands() { // NOTE: If commands are added or removed or command names are changed // Please make the necessary change to Agent_OnMigListPreDisplayMenu as well. var L_MigListAddCommands1_Text = "&Tell me about this step"; var L_MigListAddCommands2_Text = "&What should I do next"; g_AgentCharacter.Commands.Add("Agent_MigListAboutThisStep", L_MigListAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_MigListWhatToDoNext", L_MigListAddCommands2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnMigListPreDisplayMenu() { var MigListCommands = g_AgentCharacter.Commands; if (g.MigListNoOffer.style.display == "inline") { if (MigListCommands.count >= 3) { MigListCommands.Remove("Agent_MigListAboutThisStep"); MigListCommands.Remove("Agent_MigListWhatToDoNext"); } } else { if (MigListCommands.count < 3) { Agent_MigListAddCommands(); } } } function Agent_MigListAboutThisStep() { var L_MigListAboutThisStep1_Text = "On this screen you choose the Internet service provider, or 'ISP' for short, you want to use."; Agent_Speak(L_MigListAboutThisStep1_Text); var L_MigListAboutThisStep2_Text = "This will enable you to use your existing Internet account on this computer."; Agent_Speak(L_MigListAboutThisStep2_Text); } function Agent_MigListWhatToDoNext() { Agent_GestureAtElement(g.selISPDropList,"Left"); var L_MigListWhatToDoNext1_Text = "Select your Internet service provider by clicking it in this list."; Agent_Speak(L_MigListWhatToDoNext1_Text); Agent_Play("RestPose"); var L_MigListWhatToDoNext2_Text = "If you don't see your ISP listed, click \"My ISP is not on the list\" on the bottom of the list."; Agent_Speak(L_MigListWhatToDoNext2_Text); var L_MigListWhatToDoNext3_Text = "And contact your ISP for assistance in re-establishing your Internet account on this computer."; Agent_Speak(L_MigListWhatToDoNext3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MigListWhatToDoNext4_Text = "Then click the Next button to continue."; Agent_Speak(L_MigListWhatToDoNext4_Text); Agent_Play("RestPose"); } // ************************* MigPage Page (MigPage.htm) Scripts ************************* // function Agent_MigPageAddCommands() { var L_MigPageAddCommands1_Text = "Tell me what to do &next"; var L_MigPageAddCommands2_Text = "Tell me about this &screen"; var L_MigPageAddCommands3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_MigPageCommand_WhatToDoNext", L_MigPageAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_MigPageCommand_AboutThisStep", L_MigPageAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_MigPageCommand_HowToMoveOn", L_MigPageAddCommands3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_MigPageCommand_WhatToDoNext() { var L_MigPageWhatToDoNext1_Text = "When you are done with this page."; Agent_Speak(L_MigPageWhatToDoNext1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MigPageWhatToDoNext2_Text = "Click the Next button."; Agent_Speak(L_MigPageWhatToDoNext2_Text); Agent_Play("RestPose"); } function Agent_MigPageCommand_AboutThisStep() { var L_MigPageAboutThisStep1_Text = "On this screen, we will try to enable your Internet account with your existing service provider."; Agent_Speak(L_MigPageAboutThisStep1_Text); Agent_Play("Pleased"); var L_MigPageAboutThisStep2_Text = "Just follow the instructions on this screen provided by your Internet service provider."; Agent_Speak(L_MigPageAboutThisStep2_Text); } function Agent_MigPageCommand_HowToMoveOn() { var L_MigPageHowToMoveOn1_Text = "When you have completed this screen,"; Agent_Speak(L_MigPageHowToMoveOn1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MigPageHowToMoveOn2_Text = "Click the Next button to continue."; Agent_Speak(L_MigPageHowToMoveOn2_Text); Agent_Play("RestPose"); } // ************************* ISPDial Page (drdyisp.htm) Scripts ************************* // function Agent_ISPDialAddCommands() { var L_ISPDial1_Text = "&Tell me about this step"; var L_ISPDial2_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_ISPDialAboutThisStep", L_ISPDial1_Text); g_AgentCharacter.Commands.Add("Agent_ISPDialWhatToDoNext", L_ISPDial2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_ISPDialAboutThisStep() { var L_ISPDialAboutThisStep1_Text = "At this point, Windows needs to make a toll-free phone call."; Agent_Speak(L_ISPDialAboutThisStep1_Text); var L_ISPDialAboutThisStep2_Text = "This is to sign you up for your new Internet account."; Agent_Speak(L_ISPDialAboutThisStep2_Text); var L_ISPDialAboutThisStep3_Text = "Just click the Next button to continue."; Agent_Speak(L_ISPDialAboutThisStep3_Text); } function Agent_ISPDialWhatToDoNext() { var L_ISPDialWhatToDoNext1_Text = "Click the Next button to continue."; Agent_Speak(L_ISPDialWhatToDoNext1_Text); var L_ISPDialWhatToDoNext2_Text = "Or click Skip to continue without setting up this computer for Internet access. You can always do it later..."; Agent_Speak(L_ISPDialWhatToDoNext2_Text); } // ************************* DialTone Page (dialtone.htm) Scripts ************************* // function Agent_DialToneAddCommands() { var L_DialToneAddCommands1_Text = "&Tell me about this step"; var L_DialToneAddCommands2_Text = "Wh&at if I need to move my computer?"; var L_DialToneAddCommands3_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_DialToneAboutThisStep", L_DialToneAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_DialToneHowToMove", L_DialToneAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_DialToneWhatToDoNext", L_DialToneAddCommands3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_DialToneAboutThisStep() { var L_DialToneAboutThisStep1_Text = "Windows could not detect a dial tone."; Agent_Speak(L_DialToneAboutThisStep1_Text); var L_DialToneAboutThisStep2_Text = "There could be several reasons for this."; Agent_Speak(L_DialToneAboutThisStep2_Text); var L_DialToneAboutThisStep3_Text = "First, check to make sure that the phone cable for your computer is correctly plugged in at each end."; Agent_Speak(L_DialToneAboutThisStep3_Text); var L_DialToneAboutThisStep4_Text = "Second, make sure that no one is trying to use your phone line right now."; Agent_Speak(L_DialToneAboutThisStep4_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_DialToneAboutThisStep5_Text = "Then click the Redial button to try dialing again."; Agent_Speak(L_DialToneAboutThisStep5_Text); Agent_Play("RestPose"); } function Agent_DialToneHowToMove() { var L_DialToneHowToMove1_Text = "If you need to move your computer to connect it to your phone line, make sure the power is off."; Agent_Speak(L_DialToneHowToMove1_Text); var L_DialToneHowToMove2_Text = "When you restart your computer, Windows will resume this process where you left off."; Agent_Speak(L_DialToneHowToMove2_Text); } function Agent_DialToneWhatToDoNext() { var L_DialToneWhatToDoNext1_Text = "First check your computer's connection to your phone line."; Agent_Speak(L_DialToneWhatToDoNext1_Text); var L_DialToneWhatToDoNext2_Text = "Next, check to make sure that your phone line is not already in use."; Agent_Speak(L_DialToneWhatToDoNext2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_DialToneWhatToDoNext3_Text = "Then click the Redial button to try dialing again."; Agent_Speak(L_DialToneWhatToDoNext3_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_DialToneWhatToDoNext4_Text = "Or click the Skip button to continue without registering or activating your copy of Windows XP."; Agent_Speak(L_DialToneWhatToDoNext4_Text); Agent_Play("RestPose"); var L_DialToneWhatToDoNext5_Text = "You can always register later."; Agent_Speak(L_DialToneWhatToDoNext5_Text); } // ************************* CnnctErr Page (cnncterr.htm) Scripts ************************* // function Agent_CnnctErrAddCommands() { var L_CnnctErrAddCommands1_Text = "&Tell me about this step"; var L_CnnctErrAddCommands2_Text = "H&ow do I turn off call waiting?"; var L_CnnctErrAddCommands3_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_CnnctErrAboutThisStep", L_CnnctErrAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_CnnctErrTurnOffCallWaiting", L_CnnctErrAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_CnnctErrWhatToDoNext", L_CnnctErrAddCommands3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_CnnctErrAboutThisStep() { var L_CnnctErrAboutThisStep1_Text = "Your phone call to the registration center was interrupted."; Agent_Speak(L_CnnctErrAboutThisStep1_Text); var L_CnnctErrAboutThisStep2_Text = "There could be several reasons for this."; Agent_Speak(L_CnnctErrAboutThisStep2_Text); var L_CnnctErrAboutThisStep3_Text = "First, you may not have been actively using your connection for an extended period of time and you were automatically disconnected."; Agent_Speak(L_CnnctErrAboutThisStep3_Text); var L_CnnctErrAboutThisStep4_Text = "Second, someone may have tried to use your phone line while you were connected."; Agent_Speak(L_CnnctErrAboutThisStep4_Text); var L_CnnctErrAboutThisStep5_Text = "Third, if you have call waiting, you may have been interrupted by an incoming call."; Agent_Speak(L_CnnctErrAboutThisStep5_Text); Agent_GestureAtElement(g.Callwait,"Left"); var L_CnnctErrAboutThisStep6_Text = "If your phone service includes call waiting, and you know the number to turn it off, type it here."; Agent_Speak(L_CnnctErrAboutThisStep6_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_CnnctErrAboutThisStep7_Text = "Then click the Next button to try to reconnect."; Agent_Speak(L_CnnctErrAboutThisStep7_Text); Agent_Play("RestPose"); } function Agent_CnnctErrTurnOffCallWaiting() { var L_CnnctErrTurnOffCallWaiting1_Text = "Your telephone service provider can tell you the code to turn off call waiting."; Agent_Speak(L_CnnctErrTurnOffCallWaiting1_Text); Agent_GestureAtElement(g.Callwait,"Left"); var L_CnnctErrTurnOffCallWaiting2_Text = "If you want to turn off your phone's call waiting service while you are making this connection, type that number here."; Agent_Speak(L_CnnctErrTurnOffCallWaiting2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_CnnctErrTurnOffCallWaiting3_Text = "Then click the Next button."; Agent_Speak(L_CnnctErrTurnOffCallWaiting3_Text); Agent_Play("RestPose"); } function Agent_CnnctErrWhatToDoNext() { var L_CnnctErrWhatToDoNext1_Text = "First, make sure that no one else is using the phone line that you're trying to use to contact Microsoft."; Agent_Speak(L_CnnctErrWhatToDoNext1_Text); var L_CnnctErrWhatToDoNext2_Text = "Second, if you have call waiting, turn it off temporarily."; Agent_Speak(L_CnnctErrWhatToDoNext2_Text); Agent_GestureAtElement(g.Callwait,"Left"); var L_CnnctErrWhatToDoNext3_Text = "To turn it off, type the code in this box."; Agent_Speak(L_CnnctErrWhatToDoNext3_Text); Agent_Play("RestPose"); var L_CnnctErrWhatToDoNext4_Text = "After your call is complete, we'll automatically turn on call waiting again."; Agent_Speak(L_CnnctErrWhatToDoNext4_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_CnnctErrWhatToDoNext5_Text = "When you're ready to try again, click the Next button."; Agent_Speak(L_CnnctErrWhatToDoNext5_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_CnnctErrWhatToDoNext6_Text = "Or click the Skip button to continue without registering."; Agent_Speak(L_CnnctErrWhatToDoNext6_Text); Agent_Play("RestPose"); } // ************************* HandShake Page (hndshake.htm) Scripts ************************* // function Agent_HandShakeAddCommands() { var L_HandShakeAddCommands1_Text = "&Tell me about this step"; var L_HandShakeAddCommands2_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_HandShakeAboutThisStep", L_HandShakeAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_HandShakeWhatToDoNext", L_HandShakeAddCommands2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_HandShakeAboutThisStep() { var L_HandShakeAboutThisStep1_Text = "Windows was unable to connect to Microsoft at this time."; Agent_Speak(L_HandShakeAboutThisStep1_Text); var L_HandShakeAboutThisStep2_Text = "This could be because the phone lines are busy, or because your computer was unable to make a phone call."; Agent_Speak(L_HandShakeAboutThisStep2_Text); var L_HandShakeAboutThisStep3_Text = "Try waiting a few minutes."; Agent_Speak(L_HandShakeAboutThisStep3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_HandShakeAboutThisStep4_Text = "Then click the Redial button to try again."; Agent_Speak(L_HandShakeAboutThisStep4_Text); Agent_Play("RestPose"); } function Agent_HandShakeWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_HandShakeWhatToDoNext1_Text = "Wait a few minutes, and then click the Redial button."; Agent_Speak(L_HandShakeWhatToDoNext1_Text); Agent_Play("RestPose"); var L_HandShakeWhatToDoNext2_Text = "If you have already tried this a couple times, contact your computer manufacturer."; Agent_Speak(L_HandShakeWhatToDoNext2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_HandShakeWhatToDoNext3_Text = "Or click the Skip button to continue without registering your computer."; Agent_Speak(L_HandShakeWhatToDoNext3_Text); Agent_Play("RestPose"); } // ************************* NoAnswer Page (noanswer.htm) Scripts ************************* // function Agent_NoAnswerAddCommands() { var L_NoAnswerAddCommands1_Text = "&Tell me about this step"; var L_NoAnswerAddCommands2_Text = "Wh&at if the phone number is incorrect?"; var L_NoAnswerAddCommands3_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_NoAnswerAboutThisStep", L_NoAnswerAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_NoAnswerWhatIfWrongNumber", L_NoAnswerAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_NoAnswerWhatToDoNext", L_NoAnswerAddCommands3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_NoAnswerAboutThisStep() { var L_NoAnswerAboutThisStep1_Text = "The phone number we tried to dial did not answer."; Agent_Speak(L_NoAnswerAboutThisStep1_Text); var L_NoAnswerAboutThisStep2_Text = "Check to see if the number looks correct."; Agent_Speak(L_NoAnswerAboutThisStep2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_NoAnswerAboutThisStep3_Text = "If it looks OK, wait a few minutes, then click the Redial button to try again."; Agent_Speak(L_NoAnswerAboutThisStep3_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.edtPhoneNumber,"Left"); var L_NoAnswerAboutThisStep4_Text = "However, if the number is incorrect, click here and edit it."; Agent_Speak(L_NoAnswerAboutThisStep4_Text); Agent_Play("RestPose"); var L_NoAnswerAboutThisStep5_Text = "And then click the Redial button."; Agent_Speak(L_NoAnswerAboutThisStep5_Text); Agent_GestureAtElement(g.btnRestore,"Right"); var L_NoAnswerAboutThisStep6_Text = "You can always restore the original number that Windows tried to dial by clicking the Restore button."; Agent_Speak(L_NoAnswerAboutThisStep6_Text); Agent_Play("RestPose"); } function Agent_NoAnswerWhatIfWrongNumber() { var L_NoAnswerWhatIfWrongNumber1_Text = "If the phone number here is not correct, click the text box."; Agent_Speak(L_NoAnswerWhatIfWrongNumber1_Text); var L_NoAnswerWhatIfWrongNumber2_Text = "A blinking vertical line, known as the insertion point, should appear in the box."; Agent_Speak(L_NoAnswerWhatIfWrongNumber2_Text); var L_NoAnswerWhatIfWrongNumber3_Text = "Whatever you type will be entered at the insertion point."; Agent_Speak(L_NoAnswerWhatIfWrongNumber3_Text); var L_NoAnswerWhatIfWrongNumber4_Text = "You can move the insertion point in the text box by pressing the left or right arrow keys on your keyboard."; Agent_Speak(L_NoAnswerWhatIfWrongNumber4_Text); var L_NoAnswerWhatIfWrongNumber5_Text = "And you can use the Delete key to remove characters after the insertion point."; Agent_Speak(L_NoAnswerWhatIfWrongNumber5_Text); var L_NoAnswerWhatIfWrongNumber6_Text = "Or use the Backspace key to remove characters before the insertion point."; Agent_Speak(L_NoAnswerWhatIfWrongNumber6_Text); } function Agent_NoAnswerWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_NoAnswerWhatToDoNext1_Text = "If you've checked the phone number here and it looks correct, click the Redial button to try reconnecting."; Agent_Speak(L_NoAnswerWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_NoAnswerWhatToDoNext2_Text = "In order to proceed, you need to choose either to reconnect or to skip registering your computer at this time."; Agent_Speak(L_NoAnswerWhatToDoNext2_Text); Agent_Play("RestPose"); } // ************************* Pulse Page (pulse.htm) Scripts ************************* // function Agent_PulseAddCommands() { var L_PulseAddCommands1_Text = "&Tell me about this step"; var L_PulseAddCommands2_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_PulseAboutThisStep", L_PulseAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_PulseWhatToDoNext", L_PulseAddCommands2_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_PulseAboutThisStep() { var L_PulseAboutThisStep1_Text = "Windows could not determine whether your phone uses tone or pulse dialing."; Agent_Speak(L_PulseAboutThisStep1_Text); var L_PulseAboutThisStep2_Text = "Windows needs to know this before we proceed."; Agent_Speak(L_PulseAboutThisStep2_Text); Agent_GestureAtElement(g.pulse,"Left"); var L_PulseAboutThisStep3_Text = "On this screen, you specify your phone line's dialing method."; Agent_Speak(L_PulseAboutThisStep3_Text); Agent_Play("RestPose"); } function Agent_PulseWhatToDoNext() { var L_PulseWhatToDoNext1_Text = "Click inside the white circle to the left of the dialing method that your phone line uses."; Agent_Speak(L_PulseWhatToDoNext1_Text); Agent_GestureAtElement(g.tone,"Left"); var L_PulseWhatToDoNext2_Text = "Click here if your phone uses tone dialing."; Agent_Speak(L_PulseWhatToDoNext2_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.pulse,"Left"); var L_PulseWhatToDoNext3_Text = "Or here for pulse dialing."; Agent_Speak(L_PulseWhatToDoNext3_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_PulseWhatToDoNext4_Text = "Then click the Next button to try dialing again."; Agent_Speak(L_PulseWhatToDoNext4_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_PulseWhatToDoNext5_Text = "Or click the Skip button to continue without registering your computer."; Agent_Speak(L_PulseWhatToDoNext5_Text); Agent_Play("RestPose"); } // ------------- TooBusy Page (toobusy.htm) Scripts ----------------- // function Agent_TooBusyAddCommands() { var L_TooBusyAddCommands1_Text = "&Tell me about this step"; var L_TooBusyAddCommands2_Text = "Wh&at if the phone number is incorrect?"; var L_TooBusyAddCommands3_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_TooBusyCommand_AboutThisStep", L_TooBusyAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_TooBusyCommand_WhatIfIncorrect", L_TooBusyAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_TooBusyCommand_WhatToDoNext", L_TooBusyAddCommands3_Text); Agent_AddAssistantanceCommand(); } function Agent_TooBusyCommand_AboutThisStep() { var L_TooBusyAboutThisStep1_Text = "The phone number we tried to dial is either incorrect or busy."; Agent_Speak(L_TooBusyAboutThisStep1_Text); Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right"); var L_TooBusyAboutThisStep2_Text = "Check to see whether this number looks correct."; Agent_Speak(L_TooBusyAboutThisStep2_Text); Agent_Play("RestPose"); var L_TooBusyAboutThisStep3_Text = "If it looks OK, wait a few minutes,"; Agent_Speak(L_TooBusyAboutThisStep3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_TooBusyAboutThisStep4_Text = "Then click the Redial button to try dialing again."; Agent_Speak(L_TooBusyAboutThisStep4_Text); Agent_Play("RestPose"); } function Agent_TooBusyCommand_WhatIfIncorrect() { Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right"); var L_TooBusyPhoneNumberIncorrect1_Text = "If the phone number shown here is not correct,"; Agent_Speak(L_TooBusyPhoneNumberIncorrect1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("cb_altnumber"),"Left"); var L_TooBusyPhoneNumberIncorrect2_Text = " click this checkbox,"; Agent_Speak(L_TooBusyPhoneNumberIncorrect2_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("edt_altnumber"),"Right"); var L_TooBusyPhoneNumberIncorrect3_Text = "and enter an alternative number here."; Agent_Speak(L_TooBusyPhoneNumberIncorrect3_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("cb_outsideline"),"Left"); var L_TooBusyPhoneNumberIncorrect4_Text = "If you need to dial a number in order to get an outside line, click this checkbox,"; Agent_Speak(L_TooBusyPhoneNumberIncorrect4_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("edt_outsideline"),"Right"); var L_TooBusyPhoneNumberIncorrect5_Text = "and type the number here."; Agent_Speak(L_TooBusyPhoneNumberIncorrect5_Text); Agent_Play("RestPose"); var L_TooBusyPhoneNumberIncorrect6_Text = "If you have call waiting, your outgoing call could be interrupted by an incoming call."; Agent_Speak(L_TooBusyPhoneNumberIncorrect6_Text); var L_TooBusyPhoneNumberIncorrect7_Text = "It's easy to turn off your phone's call waiting service while you're making this connection."; Agent_Speak(L_TooBusyPhoneNumberIncorrect7_Text); Agent_GestureAtElement(g.document.all("cb_callwaiting"),"Left"); var L_TooBusyPhoneNumberIncorrect8_Text = "Just click this checkbox,"; Agent_Speak(L_TooBusyPhoneNumberIncorrect8_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("edt_callwaiting"),"Right"); var L_TooBusyPhoneNumberIncorrect9_Text = "and type the code here."; Agent_Speak(L_TooBusyPhoneNumberIncorrect9_Text); Agent_Play("RestPose"); var L_TooBusyPhoneNumberIncorrect10_Text = "Call waiting will be turned back on after the call is complete."; Agent_Speak(L_TooBusyPhoneNumberIncorrect10_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_TooBusyPhoneNumberIncorrect11_Text = "Remember to click the Redial button when you're ready to try again."; Agent_Speak(L_TooBusyPhoneNumberIncorrect11_Text); Agent_Play("RestPose"); } function Agent_TooBusyCommand_WhatToDoNext() { Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right"); var L_TooBusyWhatToDoNext1_Text = "If you've checked the phone number here and it looks correct,"; Agent_Speak(L_TooBusyWhatToDoNext1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_TooBusyWhatToDoNext2_Text = "click the Redial button to try reconnecting."; Agent_Speak(L_TooBusyWhatToDoNext2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_TooBusyWhatToDoNext3_Text = "Or click the Skip button to skip this step. You can always register after you finish setting up Windows."; Agent_Speak(L_TooBusyWhatToDoNext3_Text); Agent_Play("RestPose"); } // ************************* ISPDTone Page (isptone.htm) Scripts ************************* // function Agent_ISPDToneAddCommands() { var L_ISPDToneAddCommands1_Text = "&Tell me about this step"; var L_ISPDToneAddCommands2_Text = "Wh&at if I need to move my computer"; var L_ISPDToneAddCommands3_Text = "&What should I do next"; g_AgentCharacter.Commands.Add("Agent_ISPDToneAboutThisStep", L_ISPDToneAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ISPDToneHowToMove", L_ISPDToneAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_ISPDToneWhatToDoNext", L_ISPDToneAddCommands3_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_ISPDToneAboutThisStep() { var L_ISPDToneAboutThisStep1_Text = "Windows could not detect a dial tone."; Agent_Speak(L_ISPDToneAboutThisStep1_Text); var L_ISPDToneAboutThisStep2_Text = "There could be several reasons for this."; Agent_Speak(L_ISPDToneAboutThisStep2_Text); var L_ISPDToneAboutThisStep3_Text = "First, check to make sure that the phone cable for your computer is correctly plugged in at each end."; Agent_Speak(L_ISPDToneAboutThisStep3_Text); var L_ISPDToneAboutThisStep4_Text = "Second, make sure that no one is trying to use your phone line right now."; Agent_Speak(L_ISPDToneAboutThisStep4_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPDToneAboutThisStep5_Text = "Then click the Redial button to try dialing again."; Agent_Speak(L_ISPDToneAboutThisStep5_Text); Agent_Play("RestPose"); } function Agent_ISPDToneHowToMove() { var L_ISPDToneHowToMove1_Text = "If you need to move your computer to connect it to your phone line, make sure the power is off."; Agent_Speak(L_ISPDToneHowToMove1_Text); var L_ISPDToneHowToMove2_Text = "When you restart your computer, Windows will resume this process where you left off."; Agent_Speak(L_ISPDToneHowToMove2_Text); } function Agent_ISPDToneWhatToDoNext() { var L_ISPDToneWhatToDoNext1_Text = "First check your computer's connection to your phone line."; Agent_Speak(L_ISPDToneWhatToDoNext1_Text); var L_ISPDToneWhatToDoNext2_Text = "Next, check to make sure that your phone line is not already in use."; Agent_Speak(L_ISPDToneWhatToDoNext2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPDToneWhatToDoNext3_Text = "Then click the Redial button to try dialing again."; Agent_Speak(L_ISPDToneWhatToDoNext3_Text); Agent_Play("RestPose"); } // ------------- ISPCnErr Page (ispcnerr.htm) Scripts ----------------- // function Agent_ISPCnErrAddCommands() { var L_ISPCnErrAddCommands1_Text = "Tell me what to do &next"; var L_ISPCnErrAddCommands2_Text = "Tell me how to &turn off call waiting"; var L_ISPCnErrAddCommands3_Text = "Tell me about this &screen"; var L_ISPCnErrAddCommands4_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_ISPCnErrCommand_WhatToDoNext", L_ISPCnErrAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ISPCnErrCommand_HowToTurnOffCallWaiting", L_ISPCnErrAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_ISPCnErrCommand_AboutThisScreen", L_ISPCnErrAddCommands3_Text); g_AgentCharacter.Commands.Add("Agent_ISPCnErrCommand_HowToMoveOn", L_ISPCnErrAddCommands4_Text); Agent_AddAssistantanceCommand(); } function Agent_ISPCnErrIntro() { } function Agent_ISPCnErrCommand_AboutThisScreen() { var L_ISPCnErrIntro1_Text = "Your phone connection to setup your Internet service was interrupted."; Agent_Speak(L_ISPCnErrIntro1_Text); Agent_MoveToElement(g.document.all("txtBullet1"),"Left"); var L_ISPCnErrIntro2_Text = "There could be several reasons for this."; Agent_Speak(L_ISPCnErrIntro2_Text); var L_ISPCnErrIntro3_Text = "First, you may not have been actively using your connection for an extended period of time and you were automatically disconnected."; Agent_Speak(L_ISPCnErrIntro3_Text); var L_ISPCnErrIntro4_Text = "Second, someone may have tried to use your phone line while you were connected."; Agent_Speak(L_ISPCnErrIntro4_Text); var L_ISPCnErrIntro5_Text = "Third, if you have call waiting, you may have been interrupted by an incoming call."; Agent_Speak(L_ISPCnErrIntro5_Text); Agent_GestureAtElement(g.document.all("Callwait"),"Left"); var L_ISPCnErrIntro6_Text = "If your phone service includes call waiting, and you know the number to turn it off, enter it here."; Agent_Speak(L_ISPCnErrIntro6_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPCnErrIntro7_Text = "Then click the Redial button to try to reconnect."; Agent_Speak(L_ISPCnErrIntro7_Text); Agent_Play("RestPose"); } function Agent_ISPCnErrCommand_WhatToDoNext() { Agent_GestureAtElement(g.document.all("txtBullet1"),"Left"); var L_ISPCnErrWhatToDoNext1_Text = "If you have resolved all these potential causes,"; Agent_Speak(L_ISPCnErrWhatToDoNext1_Text); Agent_Play("RestPose"); var L_ISPCnErrWhatToDoNext2_Text = "And you want to try reconnecting,"; Agent_Speak(L_ISPCnErrWhatToDoNext2_Text); var L_ISPCnErrWhatToDoNext3_Text = "Click the Redial button to try again."; Agent_Speak(L_ISPCnErrWhatToDoNext3_Text); } function Agent_ISPCnErrCommand_HowToTurnOffCallWaiting() { Agent_GestureAtElement(g.document.all("Callwait"),"Left"); var L_ISPCnErrHowToTurnOffCallWaiting1_Text = "If you want to turn off your phone's call waiting service, while you are making this connection,"; Agent_Speak(L_ISPCnErrHowToTurnOffCallWaiting1_Text); var L_ISPCnErrHowToTurnOffCallWaiting2_Text = "Enter that number here."; Agent_Speak(L_ISPCnErrHowToTurnOffCallWaiting2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPCnErrHowToTurnOffCallWaiting3_Text = "Then, click the Redial button."; Agent_Speak(L_ISPCnErrHowToTurnOffCallWaiting3_Text); Agent_Play("RestPose"); } function Agent_ISPCnErrCommand_HowToMoveOn() { var L_ISPCnErrHowToMoveOn1_Text = "In order to proceed, you need to choose to reconnect or skip this step."; Agent_Speak(L_ISPCnErrHowToMoveOn1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPCnErrHowToMoveOn2_Text = "Click the Redial button to try reconnecting,"; Agent_Speak(L_ISPCnErrHowToMoveOn2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_ISPCnErrHowToMoveOn3_Text = "Or, click the Skip button to continue without retrying."; Agent_Speak(L_ISPCnErrHowToMoveOn3_Text); Agent_Play("RestPose"); } function Agent_OnISPCnErrGotFocus(elem) { Agent_StopAll(); var dir = "Left"; Agent_MoveToElement(elem, dir, 0); Agent_StartLookingAtElement(elem, "Look" + dir); } function Agent_OnISPCnErrKeyDown(elem, keyCode) { switch (elem.id) { case "Callwait": // Is it the Tab (or Shift-Tab) key? if (keyCode == 9) { // We don't want to start looking in this case // because we'll wind up looking at the wrong // thing. We will get a GotFocus event as a result // of the tab key which will move us along. return; } if (!Agent_IsLooking()) { Agent_StopAll(); Agent_MoveToElement(elem, "Left", 0); Agent_StartLookingAtElement(elem, "LookLeft"); } else { // We're already looking at it, just keep at it Agent_KeepLooking(); } break; default: return; } } // ------------- ISP HandShake Page (isphdshk.htm) Scripts ----------------- // function Agent_ISPHandShakeAddCommands() { var L_ISPHandShakeAddCommands1_Text = "Tell me what to do &next"; var L_ISPHandShakeAddCommands2_Text = "Tell me about this &screen"; var L_ISPHandShakeAddCommands3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_ISPHandShakeCommand_WhatToDoNext", L_ISPHandShakeAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ISPHandShakeCommand_AboutThisScreen", L_ISPHandShakeAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_ISPHandShakeCommand_HowToMoveOn", L_ISPHandShakeAddCommands3_Text); Agent_AddAssistantanceCommand(); } function Agent_ISPHandShakeIntro() { } function Agent_ISPHandShakeCommand_AboutThisScreen() { var L_ISPHandShakeIntro1_Text = "New account services for the Internet service provider you selected are currently unavailable."; Agent_Speak(L_ISPHandShakeIntro1_Text); var L_ISPHandShakeIntro2_Text = "I am not sure why."; Agent_Speak(L_ISPHandShakeIntro2_Text); var L_ISPHandShakeIntro3_Text = "However, you can try waiting a few minutes, then redialing."; Agent_Speak(L_ISPHandShakeIntro3_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_ISPHandShakeIntro4_Text = "Or you can skip setting up your Internet service at this time."; Agent_Speak(L_ISPHandShakeIntro4_Text); Agent_Play("RestPose"); } function Agent_ISPHandShakeCommand_WhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPHandShakeWhatToDoNext1_Text = "Wait a few minutes, then click the Redial button."; Agent_Speak(L_ISPHandShakeWhatToDoNext1_Text); Agent_Play("RestPose"); var L_ISPHandShakeWhatToDoNext2_Text = "If you have already tried this a couple times,"; Agent_Speak(L_ISPHandShakeWhatToDoNext2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_ISPHandShakeWhatToDoNext3_Text = "you can click the Skip button to continue without setting up your Internet service at this time."; Agent_Speak(L_ISPHandShakeWhatToDoNext3_Text); Agent_Play("RestPose"); } function Agent_ISPHandShakeCommand_HowToMoveOn() { var L_ISPHandShakeHowToMoveOn1_Text = "Wait a few minutes,"; Agent_Speak(L_ISPHandShakeHowToMoveOn1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPHandShakeHowToMoveOn2_Text = "then click the Redial button to try connecting again."; Agent_Speak(L_ISPHandShakeHowToMoveOn2_Text); Agent_Play("RestPose"); var L_ISPHandShakeHowToMoveOn3_Text = "Or if you have already tried this,"; Agent_Speak(L_ISPHandShakeHowToMoveOn3_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_ISPHandShakeHowToMoveOn4_Text = "You can continue without setting up your Internet service by clicking the Skip button."; Agent_Speak(L_ISPHandShakeHowToMoveOn4_Text); Agent_Play("RestPose"); } // ------------- ISPIns Page (ispins.htm) Scripts ----------------- // function Agent_ISPInsAddCommands() { var L_ISPInsAddCommands1_Text = "Tell me what to do &next"; var L_ISPInsAddCommands2_Text = "Tell me about this &screen"; var L_ISPInsAddCommands3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_ISPInsCommand_WhatToDoNext", L_ISPInsAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ISPInsCommand_AboutThisScreen", L_ISPInsAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_ISPInsCommand_HowToMoveOn", L_ISPInsAddCommands3_Text); Agent_AddAssistantanceCommand(); } function Agent_ISPInsIntro() { } function Agent_ISPInsCommand_AboutThisScreen() { var L_ISPInsIntro1_Text = "I'm sorry. Windows was unable to connect to the Internet through the service provider you selected."; Agent_Speak(L_ISPInsIntro1_Text); var L_ISPInsIntro2_Text = "If you experience problems connecting to the Internet with your Web browser or sending and receiving electronic mail,"; Agent_Speak(L_ISPInsIntro2_Text); var L_ISPInsIntro3_Text = "Call your service provider's technical support for assistance."; Agent_Speak(L_ISPInsIntro3_Text); } function Agent_ISPInsCommand_WhatToDoNext() { var L_ISPInsWhatToDoNext1_Text = "Click the Next button to continue."; Agent_Speak(L_ISPInsWhatToDoNext1_Text); } function Agent_ISPInsCommand_HowToMoveOn() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPInsHowToMoveOn1_Text = "Just click the Next button."; Agent_Speak(L_ISPInsHowToMoveOn1_Text); Agent_Play("RestPose"); } // ------------- ISPNoAnw Page (ispnoanw.htm) Scripts ----------------- // function Agent_ISPNoAnwAddCommands() { var L_ISPNoAnwAddCommands1_Text = "Tell me what to do &next"; var L_ISPNoAnwAddCommands2_Text = "Tell me what to do if the &phone number is incorrect"; var L_ISPNoAnwAddCommands3_Text = "Tell me about this &screen"; var L_ISPNoAnwAddCommands4_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_ISPNoAnwCommand_WhatToDoNext", L_ISPNoAnwAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ISPNoAnwCommand_WhatToDoPhoneNumberIncorrect", L_ISPNoAnwAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_ISPNoAnwCommand_AboutThisScreen", L_ISPNoAnwAddCommands3_Text); g_AgentCharacter.Commands.Add("Agent_ISPNoAnwCommand_HowToMoveOn", L_ISPNoAnwAddCommands4_Text); Agent_AddAssistantanceCommand(); } function Agent_ISPNoAnwCommand_AboutThisScreen() { var L_ISPNoAnwIntro1_Text = "The phone number we tried to dial did not answer."; Agent_Speak(L_ISPNoAnwIntro1_Text); Agent_GestureAtElement(g.document.all("edtPhoneNumber"),"Left"); var L_ISPNoAnwIntro2_Text = "Check to see if the number looks correct."; Agent_Speak(L_ISPNoAnwIntro2_Text); Agent_Play("RestPose"); var L_ISPNoAnwIntro3_Text = "If it looks OK, wait a few minutes,"; Agent_Speak(L_ISPNoAnwIntro3_Text); var L_ISPNoAnwIntro4_Text = "Then click the Redial button to try again."; Agent_Speak(L_ISPNoAnwIntro4_Text); var L_ISPNoAnwIntro5_Text = "However, if the number is incorrect,"; Agent_Speak(L_ISPNoAnwIntro5_Text); Agent_GestureAtElement(g.document.all("edtPhoneNumber"),"Left"); var L_ISPNoAnwIntro6_Text = "Click here and edit it."; Agent_Speak(L_ISPNoAnwIntro6_Text); Agent_Play("RestPose"); var L_ISPNoAnwIntro7_Text = "And then click the Redial button."; Agent_Speak(L_ISPNoAnwIntro7_Text); } function Agent_ISPNoAnwCommand_WhatToDoNext() { Agent_GestureAtElement(g.document.all("edtPhoneNumber"),"Left"); var L_ISPNoAnwWhatToDoNext1_Text = "If you've checked the phone number here and it looks correct,"; Agent_Speak(L_ISPNoAnwWhatToDoNext1_Text); Agent_Play("RestPose"); var L_ISPNoAnwWhatToDoNext2_Text = "And you are ready to try reconnecting,"; Agent_Speak(L_ISPNoAnwWhatToDoNext2_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPNoAnwWhatToDoNext3_Text = "Click the Redial button."; Agent_Speak(L_ISPNoAnwWhatToDoNext3_Text); Agent_Play("RestPose"); } function Agent_ISPNoAnwCommand_WhatToDoPhoneNumberIncorrect() { Agent_GestureAtElement(g.document.all("edtPhoneNumber"),"Left"); var L_ISPNoAnwPhoneNumberIncorrect1_Text = "If the phone number here is not correct,"; Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect1_Text); var L_ISPNoAnwPhoneNumberIncorrect2_Text = "Click the text box."; Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect2_Text); Agent_Play("RestPose"); var L_ISPNoAnwPhoneNumberIncorrect3_Text = "A blinking vertical line, known as the insertion point, should appear in the box."; Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect3_Text); var L_ISPNoAnwPhoneNumberIncorrect4_Text = "Whatever you type will be entered at the insertion point."; Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect4_Text); var L_ISPNoAnwPhoneNumberIncorrect5_Text = "You can move the insertion point in the text box by pressing the Left Arrow or Right Arrow keys on your keyboard."; Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect5_Text); var L_ISPNoAnwPhoneNumberIncorrect6_Text = "And you can use the Delete key to remove characters after the insertion point."; Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect6_Text); var L_ISPNoAnwPhoneNumberIncorrect7_Text = "Or use the Backspace key to remove characters before the insertion point."; Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect7_Text); } function Agent_ISPNoAnwCommand_HowToMoveOn() { var L_ISPNoAnwHowToMoveOn1_Text = "In order to proceed, you need to choose either to reconnect or to skip setting your Internet service."; Agent_Speak(L_ISPNoAnwHowToMoveOn1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPNoAnwHowToMoveOn2_Text = "Click the Redial button to try reconnecting."; Agent_Speak(L_ISPNoAnwHowToMoveOn2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_ISPNoAnwHowToMoveOn3_Text = "Or, click the Skip button to continue without setting up Internet service."; Agent_Speak(L_ISPNoAnwHowToMoveOn3_Text); Agent_Play("RestPose"); } function Agent_OnISPNoAnwGotFocus(elem) { Agent_StopAll(); var dir = "Left"; Agent_MoveToElement(elem, dir, 0); Agent_StartLookingAtElement(elem, "Look" + dir); } function Agent_OnISPNoAnwKeyDown(elem, keyCode) { switch (elem.id) { case "edtPhoneNumber": // Is it the Tab (or Shift-Tab) key? if (keyCode == 9) { // We don't want to start looking in this case // because we'll wind up looking at the wrong // thing. We will get a GotFocus event as a result // of the tab key which will move us along. return; } if (!Agent_IsLooking()) { Agent_StopAll(); Agent_MoveToElement(elem, "Left", 0); Agent_StartLookingAtElement(elem, "LookLeft"); } else { // We're already looking at it, just keep at it Agent_KeepLooking(); } break; default: return; } } // ------------- ISPPhBsy Page (ispphbsy.htm) Scripts ----------------- // function Agent_ISPPhBsyAddCommands() { var L_ISPPhBsyAddCommands1_Text = "Tell me what to do &next"; var L_ISPPhBsyAddCommands2_Text = "Tell me what to do if the &phone number is incorrect"; var L_ISPPhBsyAddCommands3_Text = "&Tell me about this step"; g_AgentCharacter.Commands.Add("Agent_ISPPhBsyCommand_WhatToDoNext", L_ISPPhBsyAddCommands1_Text); g_AgentCharacter.Commands.Add("Agent_ISPPhBsyCommand_WhatToDoPhoneNumberIncorrect", L_ISPPhBsyAddCommands2_Text); g_AgentCharacter.Commands.Add("Agent_ISPPhBsyCommand_AboutThisScreen", L_ISPPhBsyAddCommands3_Text); Agent_AddAssistantanceCommand(); } function Agent_ISPPhBsyIntro() { } function Agent_ISPPhBsyCommand_AboutThisScreen() { var L_ISPPhBsyIntro1_Text = "Windows was unable to connect with the Internet service provider you selected."; Agent_Speak(L_ISPPhBsyIntro1_Text); var L_ISPPhBsyIntro2_Text ="The phone line might be busy, or the Internet service provider may be experiencing technical problems."; Agent_Speak(L_ISPPhBsyIntro2_Text); Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right"); var L_ISPPhBsyIntro3_Text = "Check to see if the number looks correct."; Agent_Speak(L_ISPPhBsyIntro3_Text); Agent_Play("RestPose"); var L_ISPPhBsyIntro4_Text = "If it looks OK, wait a few minutes,"; Agent_Speak(L_ISPPhBsyIntro4_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPPhBsyIntro5_Text = "Then click the Redial button to try dialing again."; Agent_Speak(L_ISPPhBsyIntro5_Text); Agent_Play("RestPose"); var L_ISPPhBsyIntro6_Text = "However, if the number is incorrect,"; Agent_Speak(L_ISPPhBsyIntro6_Text); Agent_GestureAtElement(g.document.all("DialRuleYes"),"Left"); var L_ISPPhBsyIntro7_Text = "Click here to try an alternative number in the phone book."; Agent_Speak(L_ISPPhBsyIntro7_Text); Agent_Play("RestPose"); var L_ISPPhBsyIntro8_Text = "And then click the Redial button."; Agent_Speak(L_ISPPhBsyIntro8_Text); } function Agent_ISPPhBsyCommand_WhatToDoNext() { Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right"); var L_ISPPhBsyWhatToDoNext1_Text = "If you've checked the phone number and it looks OK,"; Agent_Speak(L_ISPPhBsyWhatToDoNext1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("DialRuleYes"),"Left"); var L_ISPPhBsyWhatToDoNext2_Text = "or you've chosen to dial an alternative number,"; Agent_Speak(L_ISPPhBsyWhatToDoNext2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPPhBsyWhatToDoNext4_Text = "Click the Redial button to try reconnecting."; Agent_Speak(L_ISPPhBsyWhatToDoNext4_Text); Agent_Play("RestPose"); } function Agent_ISPPhBsyCommand_WhatToDoPhoneNumberIncorrect() { Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right"); var L_ISPPhBsyPhoneNumberIncorrect1_Text = "If the phone number here is not correct,"; Agent_Speak(L_ISPPhBsyPhoneNumberIncorrect1_Text); Agent_Play("RestPose"); Agent_GestureAtElement(g.document.all("DialRuleYes"),"Left"); var L_ISPPhBsyPhoneNumberIncorrect2_Text = "Click this radio button to try an alternative number in the phone book."; Agent_Speak(L_ISPPhBsyPhoneNumberIncorrect2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_ISPPhBsyPhoneNumberIncorrect3_Text = "Click the Redial button when you are ready to try reconnecting."; Agent_Speak(L_ISPPhBsyPhoneNumberIncorrect3_Text); Agent_Play("RestPose"); } function Agent_OnISPPhBsyGotFocus(elem) { Agent_StopAll(); var dir = "Left"; Agent_MoveToElement(elem, dir, 0); Agent_StartLookingAtElement(elem, "Look" + dir); } function Agent_OnISPPhBsyKeyDown(elem, keyCode) { switch (elem.id) { case "edtPhoneNumber": // Is it the Tab (or Shift-Tab) key? if (keyCode == 9) { // We don't want to start looking in this case // because we'll wind up looking at the wrong // thing. We will get a GotFocus event as a result // of the tab key which will move us along. return; } if (!Agent_IsLooking()) { Agent_StopAll(); Agent_MoveToElement(elem, "Left", 0); Agent_StartLookingAtElement(elem, "LookLeft"); } else { // We're already looking at it, just keep at it Agent_KeepLooking(); } break; default: return; } } // ************************* Finish Page (fini.htm) Scripts ************************* // function Agent_FinishAddCommands() { var L_FinishAddCommands1_Text = "&Tell me about this step"; var L_FinishAddCommands2_Text = "H&ow do I register from the desktop?"; var L_FinishAddCommands3_Text = "How &do I activate Windows from the desktop?"; var L_FinishAddCommands4_Text = "How do I &access the Internet?"; var L_FinishAddCommands5_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_FinishAboutThisStep", L_FinishAddCommands1_Text); if (!g_IsMSRegistrationSuccessful) { g_AgentCharacter.Commands.Add("Agent_FinishHowToRegister", L_FinishAddCommands2_Text); } if (!g_IsActivationSuccessful) { g_AgentCharacter.Commands.Add("Agent_FinishHowToActivate", L_FinishAddCommands3_Text); } if (!(bHasSignup || ConnectedToInternetEx(false))) { g_AgentCharacter.Commands.Add("Agent_FinishHowToAccessInternet", L_FinishAddCommands4_Text); } g_AgentCharacter.Commands.Add("Agent_FinishWhatToDoNext", L_FinishAddCommands5_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_FinishAboutThisStep() { var L_FinishAboutThisStep1_Text = "Congratulations! You've completed this process!"; Agent_Speak(L_FinishAboutThisStep1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_FinishAboutThisStep2_Text = "To start using Windows now, just click the Finish button."; Agent_Speak(L_FinishAboutThisStep2_Text); Agent_Play("RestPose"); var L_FinishAboutThisStep3_Text = "To take a tour of the exciting, new features in Windows XP, click Help and Support on the Start menu, and then type \"tour\" in the Search box."; Agent_Speak(L_FinishAboutThisStep3_Text); } function Agent_FinishHowToRegister() { var L_FinishHowToRegister1_Text = "If you skipped registration earlier in this process, you can register your copy of Windows at any time by clicking Run on the Start menu and typing regwiz /r."; Agent_Speak(L_FinishHowToRegister1_Text); var L_FinishHowToRegister2_Text = "If you forget these steps, click Help and Support on the Start menu to find the answer to your questions and other valuable information."; Agent_Speak(L_FinishHowToRegister2_Text); } function Agent_FinishHowToActivate() { var L_FinishHowToActivate1_Text = "If you skipped activation earlier in this process, a small reminder will appear on the Windows desktop every few days."; Agent_Speak(L_FinishHowToActivate1_Text); var L_FinishHowToActivate2_Text = "You must activate Windows within the specified activation period in order to continue using it."; Agent_Speak(L_FinishHowToActivate2_Text); var L_FinishHowToActivate3_Text = "If you don't want to wait for the reminder, you can run the Product Activation Wizard by clicking Activate Windows on the Start menu."; Agent_Speak(L_FinishHowToActivate3_Text); var L_FinishHowToActivate4_Text = "If you forget these steps, click Help and Support on the Start menu to find the answer to your questions and other valuable information."; Agent_Speak(L_FinishHowToActivate4_Text); } function Agent_FinishHowToAccessInternet() { var L_FinishHowToAccessInternet1_Text = "If you already set up this computer to access the Internet, simply click Internet at the top of the Start menu on the Windows desktop."; Agent_Speak(L_FinishHowToAccessInternet1_Text); var L_FinishHowToAccessInternet2_Text = "If this computer isn't set up for Internet access, the Internet Connection Wizard will appear."; Agent_Speak(L_FinishHowToAccessInternet2_Text); var L_FinishHowToAccessInternet3_Text = "Follow the steps in this wizard to connect to the Internet."; Agent_Speak(L_FinishHowToAccessInternet3_Text); } function Agent_FinishWhatToDoNext() { var L_FinishWhatToDoNext1_Text = "You've finished setting up your computer with Microsoft Windows XP!"; Agent_Speak(L_FinishWhatToDoNext1_Text); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_FinishWhatToDoNext2_Text = "Just click the Finish button."; Agent_Speak(L_FinishWhatToDoNext2_Text); Agent_Play("RestPose"); var L_FinishWhatToDoNext3_Text = "To take a tour of the exciting, new features in Windows XP, click Help and Support on the Start menu, and then type \"tour\" in the Search box."; Agent_Speak(L_FinishWhatToDoNext3_Text); var L_FinishWhatToDoNext4_Text = "And enjoy using Windows Windows XP!"; Agent_Speak(L_FinishWhatToDoNext4_Text); } // --------------- Mouse Tutorial Page (mouse.htm)Scripts ---------------- // function Agent_MouseTutAddCommands() { var L_MouseTutMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutMenuCommand3_Text = "Tell me how to &move to the next screen"; // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. g_AgentCharacter.Commands.Add("Agent_OnMouseTutTellMeWhatToDoNext", L_MouseTutMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutTellMeAboutThisScreen", L_MouseTutMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutTellMeHowToMoveToNextScreen", L_MouseTutMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutTellMeWhatToDoNext() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MouseTutIntroTellMeWhatToDoNext1_Text = "To begin, click the Tutorial button."; Agent_Speak(L_MouseTutIntroTellMeWhatToDoNext1_Text); Agent_Play("RestPose"); } function Agent_OnMouseTutTellMeAboutThisScreen() { var L_MouseTutTellMeAboutThisScreen1_Text = "This is the beginning of a set of screens to help you learn how to use your computer's mouse."; Agent_Speak(L_MouseTutTellMeAboutThisScreen1_Text); var L_MouseTutTellMeAboutThisScreen2_Text = "You can choose to go through this tutorial,"; Agent_Speak(L_MouseTutTellMeAboutThisScreen2_Text); var L_MouseTutTellMeAboutThisScreen3_Text = "Or you can skip it if you are already comfortable with using the mouse."; Agent_Speak(L_MouseTutTellMeAboutThisScreen3_Text); } function Agent_OnMouseTutTellMeHowToMoveToNextScreen() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MouseTutIntroTellMeHowToMoveToNextScreen1_Text = "To begin, click the Tutorial button."; Agent_Speak(L_MouseTutIntroTellMeHowToMoveToNextScreen1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_MouseTutIntroTellMeHowToMoveToNextScreen2_Text = "Or click Next to skip this tutorial."; Agent_Speak(L_MouseTutIntroTellMeHowToMoveToNextScreen2_Text); Agent_Play("RestPose"); } // --------------- mouse_a.htm Page Scripts ---------------- // function Agent_MouseTutAAddCommands() { var L_MouseTutAMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutAMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutAMenuCommand3_Text = "Tell me how to &move to the next screen"; // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. g_AgentCharacter.Commands.Add("Agent_OnMouseTutATellMeWhatToDoNext", L_MouseTutAMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutATellMeAboutThisScreen", L_MouseTutAMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutATellMeHowToMoveToNextScreen", L_MouseTutAMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutATellMeWhatToDoNext() { var L_MouseTutAWhatToDoNext1_Text = "Try moving the mouse around and see how it moves the pointer on your screen."; Agent_Speak(L_MouseTutAWhatToDoNext1_Text); var L_MouseTutAWhatToDoNext2_Text = "Make sure you move across a flat surface."; Agent_Speak(L_MouseTutAWhatToDoNext2_Text); } function Agent_OnMouseTutATellMeAboutThisScreen() { if (g.document.dir == "rtl") Agent_GestureAtElement(g.document.all("image"), "LeftCenter"); else Agent_GestureAtElement(g.document.all("image"), "RightCenter"); var L_MouseTutATellMeAboutThisScreen1_Text = "This screen shows you how to use your mouse to move the pointer on the screen."; Agent_Speak(L_MouseTutATellMeAboutThisScreen1_Text); Agent_Play("RestPose"); var L_MouseTutATellMeAboutThisScreen2_Text = "Just move the mouse left or right, or toward or away from your computer."; Agent_Speak(L_MouseTutATellMeAboutThisScreen2_Text); var L_MouseTutATellMeAboutThisScreen3_Text = "Try it yourself!"; Agent_Speak(L_MouseTutATellMeAboutThisScreen3_Text); } function Agent_OnMouseTutATellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_b.htm Page Scripts ---------------- // function Agent_MouseTutBAddCommands() { var L_MouseTutBMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutBMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutBMenuCommand3_Text = "Tell me how to &move to the next screen"; // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. g_AgentCharacter.Commands.Add("Agent_OnMouseTutBTellMeWhatToDoNext", L_MouseTutBMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutBTellMeAboutThisScreen", L_MouseTutBMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutBTellMeHowToMoveToNextScreen", L_MouseTutBMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutBTellMeWhatToDoNext() { var L_MouseTutBWhatToDoNext1_Text = "Try picking up your mouse and moving it to another location."; Agent_Speak(L_MouseTutBWhatToDoNext1_Text); var L_MouseTutBWhatToDoNext2_Text = "Then put it back down and move it around again."; Agent_Speak(L_MouseTutBWhatToDoNext2_Text); } function Agent_OnMouseTutBTellMeAboutThisScreen() { var L_MouseTutBTellMeAboutThisScreen1_Text = "This screen shows you how to adjust the mouse if you run out of room."; Agent_Speak(L_MouseTutBTellMeAboutThisScreen1_Text); if (g.document.dir == "rtl") Agent_GestureAtElement(g.document.all("image"), "LeftCenter"); else Agent_GestureAtElement(g.document.all("image"), "RightCenter"); var L_MouseTutBTellMeAboutThisScreen2_Text = "Just pick the mouse up and move it to a more comfortable spot."; Agent_Speak(L_MouseTutBTellMeAboutThisScreen2_Text); Agent_Play("RestPose"); var L_MouseTutBTellMeAboutThisScreen3_Text = "When you put it back down and move it, the pointer follows your movements."; Agent_Speak(L_MouseTutBTellMeAboutThisScreen3_Text); var L_MouseTutBTellMeAboutThisScreen4_Text = "Notice that the pointer moves only when you move the mouse across a flat surface!"; Agent_Speak(L_MouseTutBTellMeAboutThisScreen4_Text); } function Agent_OnMouseTutBTellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_c.htm Page Scripts ---------------- // function Agent_MouseTutCAddCommands() { var L_MouseTutCMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutCMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutCMenuCommand3_Text = "Tell me how to &move to the next screen"; // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. g_AgentCharacter.Commands.Add("Agent_OnMouseTutCTellMeWhatToDoNext", L_MouseTutCMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutCTellMeAboutThisScreen", L_MouseTutCMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutCTellMeHowToMoveToNextScreen", L_MouseTutCMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_MouseTutCIntro() { // no code for now } function Agent_OnMouseTutCTellMeWhatToDoNext() { var L_MouseTutCWhatToDoNext1_Text = "Try moving the mouse to move the pointer over the graphic buttons on this screen."; Agent_Speak(L_MouseTutCWhatToDoNext1_Text); } function Agent_OnMouseTutCTellMeAboutThisScreen() { var L_MouseTutCTellMeAboutThisScreen1_Text = "This screen enables you to practice moving the pointer with your mouse."; Agent_Speak(L_MouseTutCTellMeAboutThisScreen1_Text); Agent_GestureAtElement(g.document.all("toolbar"), "LeftCenter"); var L_MouseTutCTellMeAboutThisScreen2_Text = "Use your mouse to move the pointer over these graphic buttons."; Agent_Speak(L_MouseTutCTellMeAboutThisScreen2_Text); Agent_Play("RestPose"); var L_MouseTutCTellMeAboutThisScreen3_Text = "Notice that when you move the pointer over the button it changes its appearance!"; Agent_Speak(L_MouseTutCTellMeAboutThisScreen3_Text); var L_MouseTutCTellMeAboutThisScreen4_Text = "The button returns to its original appearance when you move the pointer off its image."; Agent_Speak(L_MouseTutCTellMeAboutThisScreen4_Text); } function Agent_OnMouseTutCTellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_d.htm Page Scripts ---------------- // function Agent_MouseTutDAddCommands() { var L_MouseTutDMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutDMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutDMenuCommand3_Text = "Tell me how to &move to the next screen"; // NOTE NOTE NOTE!!! The command name (i.e. the first parameter) // MUST be equal to the name of the function that handles the // command. g_AgentCharacter.Commands.Add("Agent_OnMouseTutDTellMeWhatToDoNext", L_MouseTutDMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutDTellMeAboutThisScreen", L_MouseTutDMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutDTellMeHowToMoveToNextScreen", L_MouseTutDMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutDTellMeWhatToDoNext() { var L_MouseTutDWhatToDoNext1_Text = "Try clicking your mouse left button."; Agent_Speak(L_MouseTutDWhatToDoNext1_Text); } function Agent_OnMouseTutDTellMeAboutThisScreen() { var L_MouseTutDTellMeAboutThisScreen1_Text = "This part of the mouse tutorial is about learning to click the mouse."; Agent_Speak(L_MouseTutDTellMeAboutThisScreen1_Text); var elem = g.document.all("image"); Agent_MoveToElement(elem, "LeftCenter"); var L_MouseTutDTellMeAboutThisScreen2_Text = "To select an item on the screen, use the mouse to move the pointer over the item,"; Agent_Speak(L_MouseTutDTellMeAboutThisScreen2_Text); Agent_GestureAtElement(g.document.all("image"), "LeftCenter"); var L_MouseTutDTellMeAboutThisScreen3_Text = "Then press and release the mouse button like you see here."; Agent_Speak(L_MouseTutDTellMeAboutThisScreen3_Text); Agent_Play("RestPose"); var L_MouseTutDTellMeAboutThisScreen4_Text = "This is called clicking!"; Agent_Speak(L_MouseTutDTellMeAboutThisScreen4_Text); } function Agent_OnMouseTutDTellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_e.htm Page Scripts ---------------- // function Agent_MouseTutEAddCommands() { var L_MouseTutEMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutEMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutEMenuCommand3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_OnMouseTutETellMeWhatToDoNext", L_MouseTutEMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutETellMeAboutThisScreen", L_MouseTutEMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutETellMeHowToMoveToNextScreen", L_MouseTutEMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutETellMeWhatToDoNext() { var L_MouseTutEWhatToDoNext1_Text = "Practice clicking your mouse left button on the graphic buttons on this screen."; Agent_Speak(L_MouseTutEWhatToDoNext1_Text); } function Agent_OnMouseTutETellMeAboutThisScreen() { var L_MouseTutETellMeAboutThisScreen1_Text = "This screen enables you to practice clicking with your mouse."; Agent_Speak(L_MouseTutETellMeAboutThisScreen1_Text); Agent_GestureAtElement(g.document.all("toolbar"), "LeftCenter"); var L_MouseTutETellMeAboutThisScreen2_Text = "Use your mouse to point to one of these graphic buttons."; Agent_Speak(L_MouseTutETellMeAboutThisScreen2_Text); Agent_Play("RestPose"); var L_MouseTutETellMeAboutThisScreen3_Text = "And click the left mouse button."; Agent_Speak(L_MouseTutETellMeAboutThisScreen3_Text); var L_MouseTutETellMeAboutThisScreen4_Text = "Then try it with the other graphic buttons."; Agent_Speak(L_MouseTutETellMeAboutThisScreen4_Text); } function Agent_OnMouseTutETellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } function Agent_OnMouseTutEElementClick(elem) { Agent_MoveToElement(elem, "TopCenterWidth", 0); Agent_StartLookingAtElement(elem, "LookDown"); } // --------------- mouse_f.htm Page Scripts ---------------- // function Agent_MouseTutFAddCommands() { var L_MouseTutFMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutFMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutFMenuCommand3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_OnMouseTutFTellMeWhatToDoNext", L_MouseTutFMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutFTellMeAboutThisScreen", L_MouseTutFMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutFTellMeHowToMoveToNextScreen", L_MouseTutFMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutFTellMeWhatToDoNext() { MouseTut_WhatToDoNext() } function Agent_OnMouseTutFTellMeAboutThisScreen() { var L_MouseTutFTellMeAboutThisScreen1_Text = "Great job!"; Agent_Speak(L_MouseTutFTellMeAboutThisScreen1_Text); var L_MouseTutFTellMeAboutThisScreen2_Text = "So far you've learned how to point and click with your mouse."; Agent_Speak(L_MouseTutFTellMeAboutThisScreen2_Text); var L_MouseTutFTellMeAboutThisScreen3_Text = "Now you will practice these skills to interact with other elements you will find in Windows or on Web pages."; Agent_Speak(L_MouseTutFTellMeAboutThisScreen3_Text); var L_MouseTutFTellMeAboutThisScreen4_Text = "Click the Next button when you are ready to move on."; Agent_Speak(L_MouseTutFTellMeAboutThisScreen4_Text); } function Agent_OnMouseTutFTellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_g.htm Page Scripts ---------------- // function Agent_MouseTutGAddCommands() { var L_MouseTutGMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutGMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutGMenuCommand3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_OnMouseTutGTellMeWhatToDoNext", L_MouseTutGMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutGTellMeAboutThisScreen", L_MouseTutGMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutGTellMeHowToMoveToNextScreen", L_MouseTutGMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutGPreDisplayMenu() { if (g.btnNext.disabled) { var L_MouseTutGMenuCommand4_Text = "Tell me &why the Next button isn't available"; try { g_AgentCharacter.Commands.Insert("Agent_OnMouseTutGWhyNextDisabled","Agent_OnMouseTutGTellMeHowToMoveToNextScreen",false,L_MouseTutGMenuCommand4_Text); } catch (e) { } } else { try { g_AgentCharacter.Commands.Remove("Agent_OnMouseTutGWhyNextDisabled"); } catch (e) { } } } function Agent_OnMouseTutGWhyNextDisabled() { var L_MouseTutGWhyNextNotAvailable1_Text = "The Next button is not available because you have not yet chosen a city."; Agent_Speak(L_MouseTutGWhyNextNotAvailable1_Text); Agent_GestureAtElement(g.document.all("selCity"),"LeftCenter"); var L_MouseTutGWhyNextNotAvailable2_Text = "You must first click one of these cities."; Agent_Speak(L_MouseTutGWhyNextNotAvailable2_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MouseTutGWhyNextNotAvailable3_Text = "Then you will be able to click the Next button to go on."; Agent_Speak(L_MouseTutGWhyNextNotAvailable3_Text); Agent_Play("RestPose"); } function Agent_OnMouseTutGTellMeWhatToDoNext() { if (g.document.dir == "rtl") Agent_GestureAtElement(g.document.all("selCity"), "LeftCenter"); else Agent_GestureAtElement(g.document.all("selCity"), "RightCenter"); var L_MouseTutGWhatToDoNext1_Text = "Click the up and down arrows to scroll through the list of cities."; Agent_Speak(L_MouseTutGWhatToDoNext1_Text); Agent_Play("RestPose"); if (g.document.dir == "rtl") Agent_Play("RestPose"); else Agent_GestureAtElement(g.document.all("selCity"), "LeftCenter"); var L_MouseTutGWhatToDoNext2_Text = "Then select a city by clicking its name."; Agent_Speak(L_MouseTutGWhatToDoNext2_Text); Agent_Play("RestPose"); var L_MouseTutGWhatToDoNext3_Text = "Then try clicking other cities in the list!"; Agent_Speak(L_MouseTutGWhatToDoNext3_Text); Agent_MoveToElement(document.all("AssistImg"),"BottomCenterWidthExactBottom"); } function Agent_OnMouseTutGTellMeAboutThisScreen() { var L_MouseTutGTellMeAboutThisScreen1_Text = "On this screen you can practice clicking to select an item from a list."; Agent_Speak(L_MouseTutGTellMeAboutThisScreen1_Text); Agent_GestureAtElement(g.document.all("selCity"), "LeftCenter"); var L_MouseTutGTellMeAboutThisScreen2_Text = "When you click a city from this list,"; Agent_Speak(L_MouseTutGTellMeAboutThisScreen2_Text); Agent_Play("RestPose"); if (g.document.dir == "rtl") Agent_GestureAtElement(g.document.all("imgTable"), "LeftCenter"); else Agent_GestureAtElement(g.document.all("imgTable"), "RightCenter"); var L_MouseTutGTellMeAboutThisScreen3_Text = "Its picture will appear here."; Agent_Speak(L_MouseTutGTellMeAboutThisScreen3_Text); Agent_Play("RestPose"); } function Agent_OnMouseTutGTellMeHowToMoveToNextScreen() { if (g.btnNext.disabled) { Agent_GestureAtElement(g.document.all("selCity"), "LeftCenter"); var L_MouseTutGHowToMoveToNextScreen1_Text = "You need to click a city here,"; Agent_Speak(L_MouseTutGHowToMoveToNextScreen1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MouseTutGHowToMoveToNextScreen2_Text = "Then click the Next button."; Agent_Speak(L_MouseTutGHowToMoveToNextScreen2_Text); Agent_Play("RestPose"); } else MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_h.htm Page Scripts ---------------- // function Agent_MouseTutHAddCommands() { var L_MouseTutHMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutHMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutHMenuCommand3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_OnMouseTutHTellMeWhatToDoNext", L_MouseTutHMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutHTellMeAboutThisScreen", L_MouseTutHMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutHTellMeHowToMoveToNextScreen", L_MouseTutHMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutHTellMeWhatToDoNext() { Agent_GestureAtElement(g.document.all("bwsel"), "Left"); var L_MouseTutHWhatToDoNext1_Text = "Select one of the options by clicking the circle next to it."; Agent_Speak(L_MouseTutHWhatToDoNext1_Text); Agent_Play("RestPose"); var L_MouseTutHWhatToDoNext2_Text = "This will change how the picture appears."; Agent_Speak(L_MouseTutHWhatToDoNext2_Text); var L_MouseTutHWhatToDoNext3_Text = "Then try clicking the other option!"; Agent_Speak(L_MouseTutHWhatToDoNext3_Text); Agent_MoveToElement(document.all("AssistImg"), "BottomCenterWidthExactBottom"); Agent_Play("RestPose"); } function Agent_OnMouseTutHTellMeAboutThisScreen() { var L_MouseTutHTellMeAboutThisScreen1_Text = "On this screen you can practice how to select an option when only a single choice can be set at a time."; Agent_Speak(L_MouseTutHTellMeAboutThisScreen1_Text); Agent_GestureAtElement(g.document.all("bwsel"), "Left"); var L_MouseTutHTellMeAboutThisScreen2_Text = "When you click the circles here,"; Agent_Speak(L_MouseTutHTellMeAboutThisScreen2_Text); Agent_Play("RestPose"); if (g.document.dir == "rtl") Agent_GestureAtElement(g.document.all("cityImg"), "LeftCenter"); else Agent_GestureAtElement(g.document.all("cityImg"), "RightCenter"); var L_MouseTutHTellMeAboutThisScreen3_Text = "It changes the way the picture here appears."; Agent_Speak(L_MouseTutHTellMeAboutThisScreen3_Text); Agent_Play("RestPose"); Agent_MoveToElement(document.all("AssistImg"), "BottomCenterWidthExactBottom"); Agent_Play("RestPose"); } function Agent_OnMouseTutHTellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_i.htm Page Scripts ---------------- // function Agent_MouseTutIAddCommands() { var L_MouseTutIMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutIMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutIMenuCommand3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_OnMouseTutITellMeWhatToDoNext", L_MouseTutIMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutITellMeAboutThisScreen", L_MouseTutIMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutITellMeHowToMoveToNextScreen", L_MouseTutIMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutITellMeWhatToDoNext() { Agent_GestureAtElement(g.document.all("mattesel"), "Left"); var L_MouseTutIWhatToDoNext1_Text = "Click one or more of the options here and see the effect on the picture."; Agent_Speak(L_MouseTutIWhatToDoNext1_Text); Agent_Play("RestPose"); var L_MouseTutIWhatToDoNext2_Text = "Click an option again to clear the option."; Agent_Speak(L_MouseTutIWhatToDoNext2_Text); Agent_MoveToElement(document.all("AssistImg"), "BottomCenterWidthExactBottom"); Agent_Play("RestPose"); } function Agent_OnMouseTutITellMeAboutThisScreen() { var L_MouseTutITellMeAboutThisScreen1_Text = "Sometimes you can select multiple options in a set of choices."; Agent_Speak(L_MouseTutITellMeAboutThisScreen1_Text); var L_MouseTutITellMeAboutThisScreen2_Text = "On this screen you can choose different display styles for your picture."; Agent_Speak(L_MouseTutITellMeAboutThisScreen2_Text); Agent_GestureAtElement(g.document.all("mattesel"), "Left"); var L_MouseTutITellMeAboutThisScreen3_Text = "Just click the boxes next to the options here."; Agent_Speak(L_MouseTutITellMeAboutThisScreen3_Text); Agent_Play("RestPose"); Agent_MoveToElement(document.all("AssistImg"), "BottomCenterWidthExactBottom"); Agent_Play("RestPose"); } function Agent_OnMouseTutITellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_j.htm Page Scripts ---------------- // function Agent_MouseTutJAddCommands() { var L_MouseTutJMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutJMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutJMenuCommand3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_OnMouseTutJTellMeWhatToDoNext", L_MouseTutJMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutJTellMeAboutThisScreen", L_MouseTutJMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutJTellMeHowToMoveToNextScreen", L_MouseTutJMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutJTellMeWhatToDoNext() { if (g.document.dir == "rtl") Agent_GestureAtElement(g.document.all("caption"), "Left"); else Agent_GestureAtElement(g.document.all("CaptionLabel"), "Left"); var L_MouseTutJWhatToDoNext1_Text = "Click the box here,"; Agent_Speak(L_MouseTutJWhatToDoNext1_Text); Agent_Play("RestPose"); var L_MouseTutJWhatToDoNext2_Text = "And then type the text you want to appear as your caption."; Agent_Speak(L_MouseTutJWhatToDoNext2_Text); } function Agent_OnMouseTutJTellMeAboutThisScreen() { var L_MouseTutJTellMeAboutThisScreen1_Text = "Sometimes you can personalize a choice with your own words."; Agent_Speak(L_MouseTutJTellMeAboutThisScreen1_Text); var L_MouseTutJTellMeAboutThisScreen2_Text = "On this screen you can type in a caption for your picture."; Agent_Speak(L_MouseTutJTellMeAboutThisScreen2_Text); if (g.document.dir == "rtl") Agent_GestureAtElement(g.document.all("caption"), "Left"); else Agent_GestureAtElement(g.document.all("CaptionLabel"), "Left"); var L_MouseTutJTellMeAboutThisScreen3_Text = "Just click the box here and type in your caption."; Agent_Speak(L_MouseTutJTellMeAboutThisScreen3_Text); Agent_Play("RestPose"); } function Agent_OnMouseTutJTellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } // --------------- mouse_k.htm Page Scripts ---------------- // function Agent_MouseTutKAddCommands() { var L_MouseTutKMenuCommand1_Text = "Tell me what to do &next"; var L_MouseTutKMenuCommand2_Text = "Tell me about this &screen"; var L_MouseTutKMenuCommand3_Text = "Tell me how to &move to the next screen"; g_AgentCharacter.Commands.Add("Agent_OnMouseTutKTellMeWhatToDoNext", L_MouseTutKMenuCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutKTellMeAboutThisScreen", L_MouseTutKMenuCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnMouseTutKTellMeHowToMoveToNextScreen", L_MouseTutKMenuCommand3_Text); Agent_AddAssistantanceCommand(); } function Agent_OnMouseTutKTellMeWhatToDoNext() { var L_MouseTutKWhatToDoNext1_Text = "Congratulations! You have completed this mouse tutorial!"; Agent_Speak(L_MouseTutKWhatToDoNext1_Text); var L_MouseTutKWhatToDoNext2_Text = "Click the Next button to go on to the next screen."; Agent_Speak(L_MouseTutKWhatToDoNext2_Text); } function Agent_OnMouseTutKTellMeAboutThisScreen() { var L_MouseTutKTellMeAboutThisScreen1_Text = "Good job! Your vacation picture is finished!"; Agent_Speak(L_MouseTutKTellMeAboutThisScreen1_Text); var L_MouseTutKTellMeAboutThisScreen2_Text = "You have completed the mouse tutorial."; Agent_Speak(L_MouseTutKTellMeAboutThisScreen2_Text); var L_MouseTutKTellMeAboutThisScreen3_Text = "For a more in-depth mouse tutorial that covers skills such as dragging, resizing, and using the right mouse button, see Help when Windows first starts."; Agent_Speak(L_MouseTutKTellMeAboutThisScreen3_Text); Agent_Play("RestPose"); } function Agent_OnMouseTutKTellMeHowToMoveToNextScreen() { MouseTut_HowToMoveToNextScreen(); } //------------- general mouse tutorial functions --------------- // function MouseTut_WhatToDoNext() { var L_MouseTutTellMeWhatToDoNext1_Text = "Just click the Next button to proceed to the next screen,"; Agent_Speak(L_MouseTutTellMeWhatToDoNext1_Text); var L_MouseTutTellMeWhatToDoNext2_Text = "Or click the Skip button to skip the rest of this tutorial."; Agent_Speak(L_MouseTutTellMeWhatToDoNext2_Text); } function MouseTut_HowToMoveToNextScreen() { if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnNext, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnNext, "TopLeft"); } var L_MouseTutTellMeHowToMoveToNextScreen1_Text = "Click Next to move to the next screen,"; Agent_Speak(L_MouseTutTellMeHowToMoveToNextScreen1_Text); Agent_Play("RestPose"); if (window.parent.document.dir == "rtl") { Agent_GestureAtElement(g.btnSkip, "TopCenterWidth"); } else { Agent_GestureAtElement(g.btnSkip, "TopLeft"); } var L_MouseTutTellMeHowToMoveToNextScreen2_Text = "Or click Skip to skip this tutorial."; Agent_Speak(L_MouseTutTellMeHowToMoveToNextScreen2_Text); Agent_Play("RestPose"); } // ************************* Home Network Prompt Page (hnwprmpt.htm) Scripts ************************* // function Agent_2nicsAddCommands() { var L_2nicsMenuCommand1_Text = "&Tell me about this step"; g_AgentCharacter.Commands.Add("Agent_On2nicsAboutThisStep", L_2nicsMenuCommand1_Text); Agent_AddWhatToDoNextCommand(); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_On2nicsAboutThisStep() { var L_2nicsAboutThisScreen1_Text = "This screen explains that there is more than one possible way for your computer to connect to the Internet."; Agent_Speak(L_2nicsAboutThisScreen1_Text); var L_2nicsAboutThisScreen2_Text = "You can choose which connection you want to use after you finish setting up Windows."; Agent_Speak(L_2nicsAboutThisScreen2_Text); } // ************************* UserName Page (username.htm) Scripts ************************* // function Agent_UserNameAddCommands() { var L_UserNameCommand1_Text = "&Tell me about this step"; var L_UserNameCommand2_Text = "Wh&ere does my name appear?"; var L_UserNameCommand3_Text = "H&ow can I change my name later?"; var L_UserNameCommand4_Text = "&What should I do next?"; g_AgentCharacter.Commands.Add("Agent_OnUserNameAboutThisStep", L_UserNameCommand1_Text); g_AgentCharacter.Commands.Add("Agent_OnUserNameWhereIsName", L_UserNameCommand2_Text); g_AgentCharacter.Commands.Add("Agent_OnUserNameHowToChangeName", L_UserNameCommand3_Text); g_AgentCharacter.Commands.Add("Agent_OnUserNameWhatToDoNext", L_UserNameCommand4_Text); if (!window.external.get_RetailOOBE()) //Check to see if product is OEM { Agent_AddAssistantanceCommand(); } } function Agent_OnUserNameAboutThisStep() { var L_UserNameAboutThisStep1_Text = "This is the screen where you identify yourself by first and last name so that Windows will recognize you when you're logged on."; Agent_Speak(L_UserNameAboutThisStep1_Text); } function Agent_OnUserNameWhereIsName() { var L_UserNameWhereIsName1_Text = "Your first name will appear on the Welcome screen, which appears when you start Windows."; Agent_Speak(L_UserNameWhereIsName1_Text); var L_UserNameWhereIsName2_Text = "It will also at the top of the Start menu when you're logged on."; Agent_Speak(L_UserNameWhereIsName2_Text); var L_UserNameWhereIsName3_Text = "If someone else logs on to your computer and opens your My Documents folder, your name will appear in the folder name."; Agent_Speak(L_UserNameWhereIsName3_Text); var L_UserNameWhereIsName4_Text = "For example, the folder will appear as \"David's Documents\" so that other users know this folder belongs to you."; Agent_Speak(L_UserNameWhereIsName4_Text); var L_UserNameWhereIsName5_Text = "And your name will also appear in the list of users when you click Control Panel on the Start menu, and then click User Accounts."; Agent_Speak(L_UserNameWhereIsName5_Text); } function Agent_OnUserNameHowToChangeName() { var L_UserNameHowToChangeName1_Text = "To change your name once you're logged on to Windows, click Control Panel on the Start menu."; Agent_Speak(L_UserNameHowToChangeName1_Text); var L_UserNameHowToChangeName2_Text = "Then click User Accounts."; Agent_Speak(L_UserNameHowToChangeName2_Text); var L_UserNameHowToChangeName3_Text = "You'll be able to change your name as well as the names of other users of this computer."; Agent_Speak(L_UserNameHowToChangeName3_Text); } function Agent_OnUserNameWhatToDoNext() { var L_UserNameWhatToDoNext1_Text = "Click the Next button to try reconnecting to the Internet."; Agent_Speak(L_UserNameWhatToDoNext1_Text); var L_UserNameWhatToDoNext2_Text = "Or click Skip to continue without connecting to the Internet."; Agent_Speak(L_UserNameWhatToDoNext2_Text); }