Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7185 lines
262 KiB

  1. // Constants
  2. var L_PhoneNumberLegit_Text = "\\map=\"one \\pau=100\\ eight hundred R U le jit\"=\"1-800-R U LEGIT\"\\";
  3. var g_strRegionSetting = "";
  4. var g_strKeyboardSetting = "";
  5. var g_strLangSetting = " ";
  6. // ************************* Common Scripts/Functions ************************* //
  7. function Agent_AddCommonCommands()
  8. {
  9. g_AgentCharacter.Commands.RemoveAll();
  10. var L_AddCommonCommands1_Text = "&Close Menu";
  11. g_AgentCharacter.Commands.Add("CloseMenu", L_AddCommonCommands1_Text);
  12. if (g_bAgentShowSpecialISPCommands)
  13. {
  14. var L_AddCommonCommands2_Text = "Tell me &about Internet signup";
  15. var L_AddCommonCommands3_Text = "&Re-start Internet signup";
  16. var L_AddCommonCommands4_Text = "&Skip Internet signup";
  17. try
  18. {
  19. g_AgentCharacter.Commands.Add(kpszISPSpecialCommand1, L_AddCommonCommands2_Text);
  20. g_AgentCharacter.Commands.Add(kpszISPSpecialCommand2, L_AddCommonCommands3_Text);
  21. g_AgentCharacter.Commands.Add(kpszISPSpecialCommand3, L_AddCommonCommands4_Text);
  22. }
  23. catch (e)
  24. {
  25. }
  26. }
  27. }
  28. function Agent_AddAssistantanceCommand()
  29. {
  30. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  31. {
  32. var L_AddAssistantanceCommand1_Text = "Who can I call &for more assistance?";
  33. g_AgentCharacter.Commands.Add("Agent_OnCommand_AboutAssistance", L_AddAssistantanceCommand1_Text);
  34. }
  35. }
  36. function Agent_OnCommand_AboutAssistance()
  37. {
  38. Agent_StopAll();
  39. var L_AboutAssistance1_Text = "Contact your computer manufacturer at %s.";
  40. var re = /%s/i;
  41. var L_AboutAssistance2_Text = "Contact your computer manufacturer.";
  42. // NOTE: OEM phone number. This comes from an API
  43. // exposed by oobeinfo.ini and can be configured by the OEM.
  44. var strPhoneNumber = window.external.GetSupportPhoneNum();
  45. if (strPhoneNumber == "")
  46. Agent_Speak(L_AboutAssistance2_Text);
  47. else
  48. Agent_Speak(L_AboutAssistance1_Text.replace(re, strPhoneNumber));
  49. Agent_Play("ReadReturn");
  50. }
  51. function Agent_AddWhatToDoNextCommand()
  52. {
  53. var L_AddWhatToDoNextCommand1_Text = "&What should I do next?";
  54. g_AgentCharacter.Commands.Add("Agent_OnCommand_WhatToDoNext", L_AddWhatToDoNextCommand1_Text);
  55. }
  56. function Agent_OnCommand_WhatToDoNext()
  57. {
  58. Agent_StopAll();
  59. if (g.btnNext.style.visibility == 'visible')
  60. {
  61. if (window.parent.document.dir == "rtl")
  62. {
  63. Agent_MoveToElement(g.btnNext, "TopCenterWidth");
  64. }
  65. else
  66. {
  67. Agent_MoveToElement(g.btnNext, "TopLeft");
  68. }
  69. Agent_Play("PointDown");
  70. var L_WhatToDoNext1_Text = "To continue, click the Next button.";
  71. Agent_Speak(L_WhatToDoNext1_Text);
  72. Agent_Play("RestPose");
  73. }
  74. if (g.btnBack.style.visibility == 'visible')
  75. {
  76. if (window.parent.document.dir == "rtl")
  77. {
  78. Agent_MoveToElement(g.btnBack, "TopLeft");
  79. }
  80. else
  81. {
  82. Agent_MoveToElement(g.btnBack, "TopCenterWidth");
  83. }
  84. Agent_Play("PointDown");
  85. var L_WhatToDoNext2_Text = "To return to the previous step, click the Back button.";
  86. Agent_Speak(L_WhatToDoNext2_Text);
  87. Agent_Play("RestPose");
  88. }
  89. if (g.btnSkip.style.visibility == 'visible')
  90. {
  91. if (window.parent.document.dir == "rtl")
  92. {
  93. Agent_MoveToElement(g.btnSkip, "TopCenterWidth");
  94. }
  95. else
  96. {
  97. Agent_MoveToElement(g.btnSkip, "TopLeft");
  98. }
  99. Agent_Play("PointDown");
  100. var L_WhatToDoNext3_Text = "You can also skip this entire step by clicking the Skip button.";
  101. Agent_Speak(L_WhatToDoNext3_Text);
  102. Agent_Play("RestPose");
  103. }
  104. }
  105. function Agent_DoSpecialISPCommand1()
  106. {
  107. // This handles the ISP special signup command
  108. // Tell me about Internet signup
  109. Agent_MoveToElement(document.all("AssistImg"),"BottomCenterWidthExactBottom");
  110. var L_ISPSpecialTellMeAboutInternetSignup1_Text = "You are currently working through the process of signing up for Internet access.";
  111. Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup1_Text);
  112. var L_ISPSpecialTellMeAboutInternetSignup2_Text = "If you have any trouble continuing, click me or press F1,";
  113. Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup2_Text);
  114. var L_ISPSpecialTellMeAboutInternetSignup3_Text = "And I'll display commands on my menu you can choose to start again or skip to the next section.";
  115. Agent_Speak(L_ISPSpecialTellMeAboutInternetSignup3_Text);
  116. }
  117. function Agent_DoSpecialISPCommand2()
  118. {
  119. // This handles the ISP special signup command
  120. // Re-start Internet signup
  121. // call the OOBE function to go back to the isp.htm page
  122. window.parent.GoBack();
  123. }
  124. function Agent_DoSpecialISPCommand3()
  125. {
  126. // This handles the ISP special signup command
  127. // Skip the Internet signup
  128. window.parent.GoCancel();
  129. }
  130. function Agent_EncourageNextButton()
  131. {
  132. if (window.parent.document.dir == "rtl")
  133. {
  134. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  135. }
  136. else
  137. {
  138. Agent_GestureAtElement(g.btnNext, "TopLeft");
  139. }
  140. 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.";
  141. Agent_Speak(L_EncourageNextButton1_Text);
  142. Agent_Play("RestPose");
  143. }
  144. function Agent_OnF1()
  145. {
  146. var L_OnF1_Text = "How can I help you? | How can I assist you?";
  147. Agent_Speak(L_OnF1_Text);
  148. Agent_Play("RestPose");
  149. }
  150. // ************************* Pre-Welcome Page Scripts ************************* //
  151. function Agent_PreWelcome()
  152. {
  153. g_bAgentPreWelcome = true;
  154. Agent_PreWelcomeScript();
  155. }
  156. function Agent_PreWelcomeScript()
  157. {
  158. Agent_Play("Shimmer");
  159. 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
  160. Agent_Speak(L_PreWelcomeScript1_Text);
  161. var L_PreWelcomeScript2_Text = "I'm here to help you set up your computer.";
  162. Agent_Speak(L_PreWelcomeScript2_Text);
  163. var L_PreWelcomeScript3_Text = "I can explain things as you move along.";
  164. Agent_Speak(L_PreWelcomeScript3_Text);
  165. Agent_MoveToElement(document.all("AssistImg"), "LeftCenter");
  166. // Make the Assistant span visible here, it should be hidden at this point.
  167. var L_PreWelcomeScript4_Text = "Any time you need help, just click me with the mouse or press the F1 key.";
  168. Agent_Speak(L_PreWelcomeScript4_Text);
  169. Agent_Play("PointLeft");
  170. var L_PreWelcomeScript5_Text = "I'll be right here if you need me.";
  171. Agent_Speak(L_PreWelcomeScript5_Text);
  172. Agent_Play("RestPose");
  173. g_AgentRequestHideImage = g_AgentCharacter.Hide();
  174. }
  175. // ************************* Welcome Page Scripts ************************* //
  176. function Agent_WelcomeAddCommands()
  177. {
  178. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  179. // MUST be equal to the name of the function that handles the
  180. // command.
  181. var L_WelcomeAddCommands1_Text = "&Tell me about this process";
  182. var L_WelcomeAddCommands2_Text = "&What should I do next?";
  183. g_AgentCharacter.Commands.Add("Agent_OnWelcomeCommand_AboutProcess", L_WelcomeAddCommands1_Text);
  184. g_AgentCharacter.Commands.Add("Agent_OnWelcomeCommand_WhatToDoNext", L_WelcomeAddCommands2_Text);
  185. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM, otherwise don't display 'Call for assistance' menu option
  186. {
  187. Agent_AddAssistantanceCommand();
  188. }
  189. }
  190. function Agent_WelcomeIntro()
  191. {
  192. // If we haven't completely finished playing the intro,
  193. // play it. Otherwise, play the shorter version.
  194. if (!g_bAgentPreWelcome)
  195. Agent_PreWelcome();
  196. else
  197. return;
  198. }
  199. function Agent_OnWelcomeCommand_WhatToDoNext()
  200. {
  201. if (window.parent.document.dir == "rtl")
  202. {
  203. Agent_MoveToElement(g.btnNext, "TopCenterWidth");
  204. }
  205. else
  206. {
  207. Agent_MoveToElement(g.btnNext, "TopLeft");
  208. }
  209. Agent_Play("PointDown");
  210. var L_WelcomeWhatToDoNext1_Text = "If you are ready to begin, click the Next button.";
  211. Agent_Speak(L_WelcomeWhatToDoNext1_Text);
  212. Agent_Play("RestPose");
  213. }
  214. function Agent_OnWelcomeCommand_AboutProcess()
  215. {
  216. Agent_StopAll();
  217. 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.";
  218. Agent_Speak(L_AboutProcess1_Text);
  219. 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.";
  220. Agent_Speak(L_AboutProcess2_Text);
  221. var L_AboutProcess3_Text = "Here's a quick preview of the steps we'll take in the next few minutes:";
  222. Agent_Speak(L_AboutProcess3_Text);
  223. var L_AboutProcess4_Text = "First, we'll make sure your computer hardware, like your speakers, keyboard, and clock, are working properly.";
  224. Agent_Speak(L_AboutProcess4_Text);
  225. var L_AboutProcess5_Text = "We'll also make sure your computer is correctly joined to a network if you want it to be.";
  226. Agent_Speak(L_AboutProcess5_Text);
  227. var L_AboutProcess6_Text = "Second, we'll review the licensing agreement that outlines the terms of use of %1.";
  228. Agent_Speak(ApiObj.FormatMessage(L_AboutProcess6_Text, g_ProductName));
  229. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  230. {
  231. 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.";
  232. Agent_Speak(ApiObj.FormatMessage(L_AboutProcess7_Text, g_OEMNameStr));
  233. }
  234. else //Product is retail
  235. {
  236. 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.";
  237. Agent_Speak(L_AboutProcess7_Text);
  238. }
  239. 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.";
  240. Agent_Speak(ApiObj.FormatMessage(L_AboutProcess8_Text, g_ProductName));
  241. var L_AboutProcess9_Text = "Third, I'll help you connect to the Internet if you like.";
  242. Agent_Speak(L_AboutProcess9_Text);
  243. var L_AboutProcess10_Text = "If you decide to skip this step, you can always connect on your own later.";
  244. Agent_Speak(L_AboutProcess10_Text);
  245. var L_AboutProcess11_Text = "And fourth, I'll help you make this computer customizable for each person who will use it. ";
  246. Agent_Speak(L_AboutProcess11_Text);
  247. var L_AboutProcess12_Text = "That's about it. We don't have far to go, so let's get started!";
  248. Agent_Speak(L_AboutProcess12_Text);
  249. if (window.parent.document.dir == "rtl")
  250. {
  251. Agent_MoveToElement(g.btnNext, "TopCenterWidth");
  252. }
  253. else
  254. {
  255. Agent_MoveToElement(g.btnNext, "TopLeft");
  256. }
  257. Agent_Play("PointDown");
  258. var L_AboutProcess13_Text = "To begin, click the Next button.";
  259. Agent_Speak(L_AboutProcess13_Text);
  260. Agent_Play("RestPose");
  261. }
  262. // ************************* Time Zone Page (timezone.htm) Scripts ************************* //
  263. function Agent_TimeZoneAddCommands()
  264. {
  265. var L_TimeZoneCommand1_Text = "&Tell me about this step";
  266. var L_TimeZoneCommand2_Text = "H&ow do I select my time zone?";
  267. g_AgentCharacter.Commands.Add("Agent_OnTimeZoneCommand_AboutStep", L_TimeZoneCommand1_Text);
  268. g_AgentCharacter.Commands.Add("Agent_OnTimeZoneCommand_SelectZone", L_TimeZoneCommand2_Text);
  269. Agent_AddWhatToDoNextCommand();
  270. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  271. {
  272. Agent_AddAssistantanceCommand();
  273. }
  274. }
  275. function Agent_OnTimeZonePreDisplayMenu() //Display 'What is daylight savings time?' menu item if applicable, remove if not.
  276. {
  277. if (g.document.all("daylight").disabled)
  278. {
  279. try
  280. {
  281. g_AgentCharacter.Commands.Remove("Agent_OnTimeZoneCommand_DaylightSavings");
  282. }
  283. catch (e)
  284. {
  285. }
  286. }
  287. else
  288. {
  289. var L_TimeZoneMenuCommand3_Text = "Wh&at is daylight savings time?";
  290. try
  291. {
  292. g_AgentCharacter.Commands.Insert("Agent_OnTimeZoneCommand_DaylightSavings","Agent_OnCommand_WhatToDoNext",true,L_TimeZoneMenuCommand3_Text);
  293. }
  294. catch (e)
  295. {
  296. }
  297. }
  298. }
  299. function Agent_OnTimeZoneCommand_AboutStep()
  300. {
  301. 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.";
  302. Agent_Speak(L_ExplainTimeZoneStep1_Text);
  303. var L_ExplainTimeZoneStep2_Text = "And, if you like, you can have Windows automatically update the clock for daylight savings time.";
  304. Agent_Speak(L_ExplainTimeZoneStep2_Text);
  305. var L_ExplainTimeZoneStep3_Text = "This is the last step that involves your hardware.";
  306. Agent_Speak(L_ExplainTimeZoneStep3_Text);
  307. var L_ExplainTimeZoneStep4_Text = "Next, we'll move on to the license agreement.";
  308. Agent_Speak(L_ExplainTimeZoneStep4_Text);
  309. }
  310. function Agent_OnTimeZoneCommand_SelectZone()
  311. {
  312. Agent_GestureAtElement(g.document.all("selTimeZone"),"Left");
  313. var L_TellUserHowToSelectTimeZone1_Text = "The time zones in this list appear as Greenwich Mean Time, or GMT, plus or minus a number of hours.";
  314. Agent_Speak(L_TellUserHowToSelectTimeZone1_Text);
  315. Agent_Play("RestPose");
  316. Agent_GestureAtElement(g.document.all("selTimeZone"),"Left");
  317. var L_TellUserHowToSelectTimeZone2_Text = "Click here or press the Tab key on your keyboard until you reach it. ";
  318. Agent_Speak(L_TellUserHowToSelectTimeZone2_Text);
  319. Agent_Play("RestPose");
  320. Agent_GestureAtElement(g.document.all("selTimeZone"),"Right");
  321. 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. ";
  322. Agent_Speak(L_TellUserHowToSelectTimeZone3_Text);
  323. Agent_Play("RestPose");
  324. var L_TellUserHowToSelectTimeZone4_Text = "When you see the time zone you want, click it or press Enter on your keyboard.";
  325. Agent_Speak(L_TellUserHowToSelectTimeZone4_Text);
  326. var L_TellUserHowToSelectTimeZone5_Text = "The time zone you just selected will appear highlighted.";
  327. Agent_Speak(L_TellUserHowToSelectTimeZone5_Text);
  328. Agent_GestureAtElement(g.document.all("daylight"),"Left");
  329. 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.";
  330. Agent_Speak(L_TellUserHowToSelectTimeZone6_Text);
  331. Agent_Play("RestPose");
  332. var L_TellUserHowToSelectTimeZone7_Text = "Windows will automatically adjust your computer's clock twice a year.";
  333. Agent_Speak(L_TellUserHowToSelectTimeZone7_Text);
  334. }
  335. function Agent_OnTimeZoneCommand_DaylightSavings()
  336. {
  337. Agent_GestureAtElement(g.document.all("daylight"),"Left");
  338. 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.";
  339. Agent_Speak(L_TellUserAboutDaylightOption1_Text);
  340. Agent_Play("RestPose");
  341. 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.";
  342. Agent_Speak(L_TellUserAboutDaylightOption2_Text);
  343. }
  344. // ************************* OEMHW Page (oemhw.htm) Scripts ************************* //
  345. function Agent_OEMHWAddCommands()
  346. {
  347. var L_OEMHWMenuCommand1_Text = "&Tell me about this step";
  348. var L_OEMHWMenuCommand2_Text = "H&ow do I know if my sound system is working?";
  349. var L_OEMHWMenuCommand3_Text = "Wh&at if I my sound isn't working?";
  350. var L_OEMHWMenuCommand4_Text = "How &do I indicate my answer?";
  351. g_AgentCharacter.Commands.Add("Agent_OnOEMHWAboutThisScreen", L_OEMHWMenuCommand1_Text);
  352. g_AgentCharacter.Commands.Add("Agent_OnOEMHWHowDoIKnow", L_OEMHWMenuCommand2_Text);
  353. g_AgentCharacter.Commands.Add("Agent_OnOEMHWIsNotWorking", L_OEMHWMenuCommand3_Text);
  354. g_AgentCharacter.Commands.Add("Agent_OnOEMHWIndicateAnswer", L_OEMHWMenuCommand4_Text);
  355. Agent_AddWhatToDoNextCommand();
  356. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  357. {
  358. Agent_AddAssistantanceCommand();
  359. }
  360. }
  361. function Agent_OnOEMHWAboutThisScreen()
  362. {
  363. var L_OEMHWAboutThisScreen1_Text = "This is the screen where you make sure your computer's sound system is working.";
  364. Agent_Speak(L_OEMHWAboutThisScreen1_Text);
  365. 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.";
  366. Agent_Speak(ApiObj.formatMessage(L_OEMHWAboutThisScreen2_Text, g_ProductName));
  367. }
  368. function Agent_OnOEMHWHowDoIKnow()
  369. {
  370. var L_OEMHWHowDoIKnow1_Text = "If you're hearing a sound right now, then it's working.";
  371. Agent_Speak(L_OEMHWHowDoIKnow1_Text);
  372. 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.";
  373. Agent_Speak(L_OEMHWHowDoIKnow2_Text);
  374. var L_OEMHWHowDoIKnow3_Text = "If that doesn't fix things, we'll look at other possibilities.";
  375. Agent_Speak(L_OEMHWHowDoIKnow3_Text);
  376. }
  377. function Agent_OnOEMHWIsNotWorking()
  378. {
  379. var L_OEMHWIsNotWorking1_Text = "First, make sure that your speakers are switched on.";
  380. Agent_Speak(L_OEMHWIsNotWorking1_Text);
  381. var L_OEMHWIsNotWorking2_Text = "Some speakers have a light to indicate that they're on.";
  382. Agent_Speak(L_OEMHWIsNotWorking2_Text);
  383. var L_OEMHWIsNotWorking3_Text = "Second, make sure they're set to a volume that you can hear.";
  384. Agent_Speak(L_OEMHWIsNotWorking3_Text);
  385. var L_OEMHWIsNotWorking4_Text = "If you're still not hearing sound coming from them...";
  386. Agent_Speak(L_OEMHWIsNotWorking4_Text);
  387. 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.";
  388. Agent_Speak(L_OEMHWIsNotWorking5_Text);
  389. var L_OEMHWIsNotWorking6_Text = "It's easy to mistake your computer's microphone plug for its speaker plug.";
  390. Agent_Speak(L_OEMHWIsNotWorking6_Text);
  391. var L_OEMHWIsNotWorking7_Text = "Fourth, if you have a set of stereo speakers, make sure they're connected to each other.";
  392. Agent_Speak(L_OEMHWIsNotWorking7_Text);
  393. var L_OEMHWIsNotWorking8_Text = "Finally, if you're still not hearing sound, try borrowing a set of speakers from another computer.";
  394. Agent_Speak(L_OEMHWIsNotWorking8_Text);
  395. var L_OEMHWIsNotWorking9_Text = "If the borrowed speakers work but your own speakers don't, then you need to replace or repair your speakers.";
  396. Agent_Speak(L_OEMHWIsNotWorking9_Text);
  397. }
  398. function Agent_OnOEMHWIndicateAnswer()
  399. {
  400. Agent_GestureAtElement(g.document.all("Sound_Yes"), "Left");
  401. var L_OEMHWIndicateAnswer1_Text = "Simply position the mouse pointer in the white circle to the left of your answer,";
  402. Agent_Speak(L_OEMHWIndicateAnswer1_Text);
  403. Agent_Play("RestPose");
  404. Agent_GestureAtElement(g.document.all("radioNoSound"), "Left");
  405. var L_OEMHWIndicateAnswer2_Text = "and click once.";
  406. Agent_Speak(L_OEMHWIndicateAnswer2_Text);
  407. Agent_Play("RestPose");
  408. 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.";
  409. Agent_Speak(L_OEMHWIndicateAnswer3_Text);
  410. }
  411. // ************************* CompName Page (compname.htm) Scripts ************************* //
  412. function Agent_CompNameAddCommands()
  413. {
  414. var L_CompNameMenuCommand1_Text = "&Tell me about this step";
  415. var L_CompNameMenuCommand2_Text = "H&ow do I rename the computer later?";
  416. g_AgentCharacter.Commands.Add("Agent_OnCompNameAboutThisScreen", L_CompNameMenuCommand1_Text);
  417. g_AgentCharacter.Commands.Add("Agent_OnCompNameHowToRename", L_CompNameMenuCommand2_Text);
  418. Agent_AddWhatToDoNextCommand();
  419. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  420. {
  421. Agent_AddAssistantanceCommand();
  422. }
  423. }
  424. function Agent_OnCompNameAboutThisScreen()
  425. {
  426. var L_CompNameAboutThisScreen1_Text = "This is the screen where you give your computer a name.";
  427. Agent_Speak(L_CompNameAboutThisScreen1_Text);
  428. var L_CompNameAboutThisScreen2_Text = "This name identifies your computer to other users if this computer is connected to other computers on a network.";
  429. Agent_Speak(L_CompNameAboutThisScreen2_Text);
  430. }
  431. function Agent_OnCompNameHowToRename()
  432. {
  433. var L_CompNameHowToRename1_Text = "After you finish setting up Windows, click Control Panel on the Start menu.";
  434. Agent_Speak(L_CompNameHowToRename1_Text);
  435. var L_CompNameHowToRename2_Text = "Click the System icon under Performance and Maintenance and then follow the instructions on the Computer Name tab.";
  436. Agent_Speak(L_CompNameHowToRename2_Text);
  437. 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.";
  438. Agent_Speak(L_CompNameHowToRename3_Text);
  439. }
  440. // ************************* SECURITYPASS Page (security.htm) Scripts ************************* //
  441. function Agent_SECURITYPASSAddCommands()
  442. {
  443. var L_SECURITYPASSMenuCommand1_Text = "&Tell me about this step";
  444. var L_SECURITYPASSMenuCommand2_Text = "Wh&at's the best way to create a password?";
  445. g_AgentCharacter.Commands.Add("Agent_OnSECURITYPASSAboutThisScreen", L_SECURITYPASSMenuCommand1_Text);
  446. g_AgentCharacter.Commands.Add("Agent_OnSECURITYPASSBestWay", L_SECURITYPASSMenuCommand2_Text);
  447. Agent_AddWhatToDoNextCommand();
  448. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  449. {
  450. Agent_AddAssistantanceCommand();
  451. }
  452. }
  453. function Agent_OnSECURITYPASSAboutThisScreen()
  454. {
  455. var L_SECURITYPASSAboutThisScreen1_Text = "This is the screen where you create a password if you want to protect this computer from unauthorized access.";
  456. Agent_Speak(L_SECURITYPASSAboutThisScreen1_Text);
  457. 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.";
  458. Agent_Speak(L_SECURITYPASSAboutThisScreen2_Text);
  459. 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.";
  460. Agent_Speak(L_SECURITYPASSAboutThisScreen3_Text);
  461. }
  462. function Agent_OnSECURITYPASSBestWay()
  463. {
  464. 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.";
  465. Agent_Speak(L_SECURITYPASSBestWay1_Text);
  466. var L_SECURITYPASSBestWay2_Text = "Also, the more random the sequence of characters, the more secure the password.";
  467. Agent_Speak(L_SECURITYPASSBestWay2_Text);
  468. var L_SECURITYPASSBestWay3_Text = "Passwords can be up to 127 characters long.";
  469. Agent_Speak(L_SECURITYPASSBestWay3_Text);
  470. 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.";
  471. Agent_Speak(L_SECURITYPASSBestWay4_Text);
  472. }
  473. // ************************* JOINDOMAIN Page (jndomain.htm) Scripts ************************* //
  474. function Agent_JOINDOMAINAddCommands()
  475. {
  476. var L_JOINDOMAINMenuCommand1_Text = "&Tell me about this step";
  477. var L_JOINDOMAINMenuCommand2_Text = "Wh&at's a domain?";
  478. var L_JOINDOMAINMenuCommand3_Text = "H&ow do I join a domain?";
  479. var L_JOINDOMAINMenuCommand4_Text = "&What should I do next?";
  480. g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINAboutThisScreen", L_JOINDOMAINMenuCommand1_Text);
  481. g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINDifference", L_JOINDOMAINMenuCommand2_Text);
  482. g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINHowToName", L_JOINDOMAINMenuCommand3_Text);
  483. g_AgentCharacter.Commands.Add("Agent_OnJOINDOMAINWhatToDoNext", L_JOINDOMAINMenuCommand4_Text);
  484. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  485. {
  486. Agent_AddAssistantanceCommand();
  487. }
  488. }
  489. function Agent_OnJOINDOMAINAboutThisScreen()
  490. {
  491. 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.";
  492. Agent_Speak(L_JOINDOMAINAboutThisScreen1_Text);
  493. var L_JOINDOMAINAboutThisScreen2_Text = "If you choose to join a domain, you must type the name of the domain that this computer is joining.";
  494. Agent_Speak(L_JOINDOMAINAboutThisScreen2_Text);
  495. }
  496. function Agent_OnJOINDOMAINDifference()
  497. {
  498. var L_JOINDOMAINDifference1_Text = "A domain is a group of computers that are administered as a unit.";
  499. Agent_Speak(L_JOINDOMAINDifference1_Text);
  500. 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.";
  501. Agent_Speak(L_JOINDOMAINDifference2_Text);
  502. var L_JOINDOMAINDifference3_Text = "If you're not sure which option you want, select No and click the Next button.";
  503. Agent_Speak(L_JOINDOMAINDifference3_Text);
  504. }
  505. function Agent_OnJOINDOMAINHowToName()
  506. {
  507. Agent_GestureAtElement(g.document.all("radioYesDomain"), "Left");
  508. var L_JOINDOMAINHowToName1_Text = "If you check the option to join a domain,";
  509. Agent_Speak(L_JOINDOMAINHowToName1_Text);
  510. Agent_Play("RestPose");
  511. Agent_GestureAtElement(g.document.all("textboxDomain"), "Left");
  512. var L_JOINDOMAINHowToName2_Text = "you can type a name in the box below that option.";
  513. Agent_Speak(L_JOINDOMAINHowToName2_Text);
  514. Agent_Play("RestPose");
  515. var L_JOINDOMAINHowToName3_Text = "You can't type a name if you didn't choose the join domain option.";
  516. Agent_Speak(L_JOINDOMAINHowToName3_Text);
  517. 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.";
  518. Agent_Speak(L_JOINDOMAINHowToName4_Text);
  519. var L_JOINDOMAINHowToName5_Text = "If you're joining this computer to a domain, ask your network administrator for a valid domain name.";
  520. Agent_Speak(L_JOINDOMAINHowToName5_Text);
  521. var L_JOINDOMAINHowToName6_Text = "If you're not joining a domain, you won't have to specify a name.";
  522. Agent_Speak(L_JOINDOMAINHowToName6_Text);
  523. }
  524. function Agent_OnJOINDOMAINWhatToDoNext()
  525. {
  526. if (window.parent.document.dir == "rtl")
  527. {
  528. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  529. }
  530. else
  531. {
  532. Agent_GestureAtElement(g.btnNext, "TopLeft");
  533. }
  534. var L_JOINDOMAINWhatToDoNext1_Text = "After you make a selection, click the Next button.";
  535. Agent_Speak(L_JOINDOMAINWhatToDoNext1_Text);
  536. Agent_Play("RestPose");
  537. if (window.parent.document.dir == "rtl")
  538. {
  539. Agent_GestureAtElement(g.btnBack, "TopLeft");
  540. }
  541. else
  542. {
  543. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  544. }
  545. var L_JOINDOMAINWhatToDoNext2_Text = "You can also choose to go back to the previous screen by clicking the Back button.";
  546. Agent_Speak(L_JOINDOMAINWhatToDoNext2_Text);
  547. Agent_Play("RestPose");
  548. }
  549. // ************************* JNDOM_A Page (jndom_a.htm) Scripts *************************
  550. function Agent_JNDOM_AAddCommands()
  551. {
  552. var L_JNDOMAMenuCommand1_Text = "&Tell me about this step";
  553. var L_JNDOMAMenuCommand2_Text = "How do I enter the user name and &password?";
  554. var L_JNDOMAMenuCommand3_Text = "Wh&at's a domain?";
  555. var L_JNDOMAMenuCommand4_Text = "&What should I do next?";
  556. g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AAboutThisStep", L_JNDOMAMenuCommand1_Text);
  557. g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AHowToEnter", L_JNDOMAMenuCommand2_Text);
  558. g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AWhatIsDomain", L_JNDOMAMenuCommand3_Text);
  559. g_AgentCharacter.Commands.Add("Agent_OnJNDOM_AWhatToDoNext", L_JNDOMAMenuCommand4_Text);
  560. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  561. {
  562. Agent_AddAssistantanceCommand();
  563. }
  564. }
  565. function Agent_OnJNDOM_AAboutThisStep()
  566. {
  567. 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.";
  568. Agent_Speak(L_JNDOM_A_AboutThisStep1_Text);
  569. }
  570. function Agent_OnJNDOM_AHowToEnter()
  571. {
  572. Agent_GestureAtElement(g.textboxDomUser, "Right");
  573. var L_JNDOM_A_HowToEnter1_Text = "The name you type here must be unique among the other user names within the domain.";
  574. Agent_Speak(L_JNDOM_A_HowToEnter1_Text);
  575. Agent_Play("RestPose");
  576. Agent_GestureAtElement(g.textboxDomPass, "Right");
  577. var L_JNDOM_A_HowToEnter2_Text = "The password you type here must match the password in that user's account.";
  578. Agent_Speak(L_JNDOM_A_HowToEnter2_Text);
  579. Agent_Play("RestPose");
  580. var L_JNDOM_A_HowToEnter3_Text = "If you don't know which user name and password to use, contact your network administrator.";
  581. Agent_Speak(L_JNDOM_A_HowToEnter3_Text);
  582. }
  583. function Agent_OnJNDOM_AWhatIsDomain()
  584. {
  585. var L_JNDOM_A_WhatIsDomain1_Text = "A domain is a group of computers that are administered as a unit.";
  586. Agent_Speak(L_JNDOM_A_WhatIsDomain1_Text);
  587. 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.";
  588. Agent_Speak(L_JNDOM_A_WhatIsDomain2_Text);
  589. Agent_Play("RestPose");
  590. }
  591. function Agent_OnJNDOM_AWhatToDoNext()
  592. {
  593. Agent_GestureAtElement(g.textboxDomUser, "Right");
  594. var L_JNDOM_A_WhatToDoNext1_Text = "After you type the user name here";
  595. Agent_Speak(L_JNDOM_A_WhatToDoNext1_Text);
  596. Agent_Play("RestPose");
  597. Agent_GestureAtElement(g.textboxDomPass, "Right");
  598. var L_JNDOM_A_WhatToDoNext2_Text = "and that user's password here,";
  599. Agent_Speak(L_JNDOM_A_WhatToDoNext2_Text);
  600. Agent_Play("RestPose");
  601. if (window.parent.document.dir == "rtl")
  602. {
  603. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  604. }
  605. else
  606. {
  607. Agent_GestureAtElement(g.btnNext, "TopLeft");
  608. }
  609. var L_JNDOM_A_WhatToDoNext3_Text = "click the Next button.";
  610. Agent_Speak(L_JNDOM_A_WhatToDoNext3_Text);
  611. Agent_Play("RestPose");
  612. }
  613. // ************************* Activation Page (activate.htm) Scripts ************************* //
  614. function Agent_ActivationAddCommands()
  615. {
  616. var L_ActivationMenuCommand1_Text = "&Tell me about this step";
  617. var L_ActivationMenuCommand2_Text = "Tell &me about activation";
  618. var L_ActivationMenuCommand3_Text = "H&ow do I activate later?";
  619. var L_ActivationMenuCommand4_Text = "How &do I activate if I'm not connected to the Internet?";
  620. var L_ActivationMenuCommand5_Text = "Wh&at happens if I don't activate?";
  621. var L_ActivationMenuCommand6_Text = "&What should I do next?";
  622. g_AgentCharacter.Commands.Add("Agent_OnActivationAboutThisScreen", L_ActivationMenuCommand1_Text);
  623. g_AgentCharacter.Commands.Add("Agent_OnActivationAboutActivation", L_ActivationMenuCommand2_Text);
  624. g_AgentCharacter.Commands.Add("Agent_OnActivationHowToActivateLater", L_ActivationMenuCommand3_Text);
  625. g_AgentCharacter.Commands.Add("Agent_OnActivationHowToActivateUnconnected", L_ActivationMenuCommand4_Text);
  626. g_AgentCharacter.Commands.Add("Agent_OnActivationWhatHappensNoActivate", L_ActivationMenuCommand5_Text);
  627. g_AgentCharacter.Commands.Add("Agent_OnActivationWhatToDoNext", L_ActivationMenuCommand6_Text);
  628. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  629. {
  630. Agent_AddAssistantanceCommand();
  631. }
  632. }
  633. function Agent_OnActivationAboutThisScreen()
  634. {
  635. Agent_MoveToElement(g.rb_act_2, "Left");
  636. var L_ActivationAboutThisScreen1_Text = "This is the screen where you decide whether to activate %1 now or later.";
  637. Agent_Speak(ApiObj.FormatMessage(L_ActivationAboutThisScreen1_Text, g_ProductName));
  638. var L_ActivationAboutThisScreen2_Text = "If you wait until later, you can run the Product Activation Wizard from the Start menu.";
  639. Agent_Speak(L_ActivationAboutThisScreen2_Text);
  640. var L_ActivationAboutThisScreen3_Text = "And we'll remind you every few days to activate Windows so that you can continue to use it.";
  641. Agent_Speak(L_ActivationAboutThisScreen3_Text);
  642. }
  643. function Agent_OnActivationAboutActivation()
  644. {
  645. 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.";
  646. Agent_Speak(L_ActivationAboutActivation1_Text);
  647. var L_ActivationAboutActivation2_Text = "Activation protects you and your bank from unauthorized use of your card.";
  648. Agent_Speak(L_ActivationAboutActivation2_Text);
  649. 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.";
  650. Agent_Speak(ApiObj.FormatMessage(L_ActivationAboutActivation3_Text, g_ProductName, g_ProductName));
  651. }
  652. function Agent_OnActivationHowToActivateLater()
  653. {
  654. var L_ActivationHowToActivateLater1_Text = "If you skip activation for now, a small reminder will appear on the %1 desktop every few days.";
  655. Agent_Speak(ApiObj.FormatMessage(L_ActivationHowToActivateLater1_Text, g_ProductName));
  656. var L_ActivationHowToActivateLater2_Text = "You can then run the Product Activation Wizard by going to the Start menu and clicking Activate Windows.";
  657. Agent_Speak(L_ActivationHowToActivateLater2_Text);
  658. 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.";
  659. Agent_Speak(L_ActivationHowToActivateLater3_Text);
  660. }
  661. function Agent_OnActivationHowToActivateUnconnected()
  662. {
  663. Agent_GestureAtElement(g.rb_act_2, "Left");
  664. var L_ActivationHowToActivateUnconnected1_Text = "Simply choose \"No\" here.";
  665. Agent_Speak(L_ActivationHowToActivateUnconnected1_Text);
  666. Agent_Play("RestPose");
  667. 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.";
  668. Agent_Speak(L_ActivationHowToActivateUnconnected2_Text);
  669. var L_ActivationHowToActivateUnconnected3_Text = "The wizard will show you a telephone number that you can call to activate Windows over the phone.";
  670. Agent_Speak(L_ActivationHowToActivateUnconnected3_Text);
  671. }
  672. function Agent_OnActivationWhatHappensNoActivate()
  673. {
  674. var L_ActivationWhatHappensNoActivate1_Text = "You can continue using %1 until the activation period expires.";
  675. Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate1_Text, g_ProductName));
  676. var L_ActivationWhatHappensNoActivate2_Text = "But at the end of that period, you must activate %1 in order to continue using it.";
  677. Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate2_Text, g_ProductName));
  678. var L_ActivationWhatHappensNoActivate3_Text = "If you let the activation period expire, you will no longer be able to use %1.";
  679. Agent_Speak(ApiObj.FormatMessage(L_ActivationWhatHappensNoActivate3_Text, g_ProductName));
  680. }
  681. function Agent_OnActivationWhatToDoNext()
  682. {
  683. Agent_GestureAtElement(g.act_spn1, "Left");
  684. var L_ActivationWhatToDoNext1_Text = "After you select the answer to this question,";
  685. Agent_Speak(L_ActivationWhatToDoNext1_Text);
  686. Agent_Play("RestPose");
  687. if (window.parent.document.dir == "rtl")
  688. {
  689. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  690. }
  691. else
  692. {
  693. Agent_GestureAtElement(g.btnNext, "TopLeft");
  694. }
  695. var L_ActivationWhatToDoNext2_Text = "click the Next button.";
  696. Agent_Speak(L_ActivationWhatToDoNext2_Text);
  697. Agent_Play("RestPose");
  698. }
  699. // ************************* Activation Error Page (acterror.htm) Scripts ************************* //
  700. function Agent_ActivationErrorAddCommands()
  701. {
  702. var L_ActivationErrorMenuCommand1_Text = "&Tell me about this step";
  703. var L_ActivationErrorMenuCommand2_Text = "Tell &me about activation";
  704. var L_ActivationErrorMenuCommand3_Text = "H&ow do I activate later?";
  705. var L_ActivationErrorMenuCommand4_Text = "How &do I activate if I'm not connected to the Internet?";
  706. var L_ActivationErrorMenuCommand5_Text = "Wh&at happens if I don't activate?";
  707. g_AgentCharacter.Commands.Add("Agent_OnActivationErrorAboutThisScreen", L_ActivationErrorMenuCommand1_Text);
  708. g_AgentCharacter.Commands.Add("Agent_OnActivationErrorAboutActivation", L_ActivationErrorMenuCommand2_Text);
  709. g_AgentCharacter.Commands.Add("Agent_OnActivationErrorHowToActivateLater", L_ActivationErrorMenuCommand3_Text);
  710. g_AgentCharacter.Commands.Add("Agent_OnActivationErrorHowToActivateUnconnected", L_ActivationErrorMenuCommand4_Text);
  711. g_AgentCharacter.Commands.Add("Agent_OnActivationErrorWhatHappensNoActivate", L_ActivationErrorMenuCommand5_Text);
  712. Agent_AddWhatToDoNextCommand();
  713. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  714. {
  715. Agent_AddAssistantanceCommand();
  716. }
  717. }
  718. function Agent_OnActivationErrorAboutThisScreen()
  719. {
  720. var L_ActivationErrorAboutThisScreen1_Text = "This screen appears because you were unable to reach our activation center.";
  721. Agent_Speak(L_ActivationErrorAboutThisScreen1_Text);
  722. 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.";
  723. Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorAboutThisScreen2_Text, g_ProductName));
  724. }
  725. function Agent_OnActivationErrorAboutActivation()
  726. {
  727. 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.";
  728. Agent_Speak(L_ActivationErrorAboutActivation1_Text);
  729. var L_ActivationErrorAboutActivation2_Text = "Activation protects you and your bank from unauthorized use of your card.";
  730. Agent_Speak(L_ActivationErrorAboutActivation2_Text);
  731. 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.";
  732. Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorAboutActivation3_Text, g_ProductName, g_ProductName));
  733. }
  734. function Agent_OnActivationErrorHowToActivateLater()
  735. {
  736. var L_ActivationErrorHowToActivateLater1_Text = "If you skip activation for now, a small reminder will appear on the %1 desktop every few days.";
  737. Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorHowToActivateLater1_Text, g_ProductName));
  738. var L_ActivationErrorHowToActivateLater2_Text = "You can then run the Product Activation Wizard by going to the Start menu and clicking Activate Windows.";
  739. Agent_Speak(L_ActivationErrorHowToActivateLater2_Text);
  740. 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.";
  741. Agent_Speak(L_ActivationErrorHowToActivateLater3_Text);
  742. }
  743. function Agent_OnActivationErrorHowToActivateUnconnected()
  744. {
  745. 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.";
  746. Agent_Speak(L_ActivationErrorHowToActivateUnconnected1_Text);
  747. var L_ActivationErrorHowToActivateUnconnected2_Text = "The wizard will show you a telephone number that you can call to activate Windows over the phone.";
  748. Agent_Speak(L_ActivationErrorHowToActivateUnconnected2_Text);
  749. }
  750. function Agent_OnActivationErrorWhatHappensNoActivate()
  751. {
  752. var L_ActivationErrorWhatHappensNoActivate1_Text = "You can continue using %1 until the Activation period expires.";
  753. Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorWhatHappensNoActivate1_Text, g_ProductName));
  754. var L_ActivationErrorWhatHappensNoActivate2_Text = "But at the end of that period, you must activate %1 in order to continue using it.";
  755. Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorWhatHappensNoActivate2_Text, g_ProductName));
  756. var L_ActivationErrorWhatHappensNoActivate3_Text = "If you let the Activation period expire, you will no longer be able to use %1.";
  757. Agent_Speak(ApiObj.FormatMessage(L_ActivationErrorWhatHappensNoActivate3_Text, g_ProductName));
  758. }
  759. // ************************* Activation Privacy Policy Page (act_plcy.htm) Scripts ************************* //
  760. function Agent_ActivationPrivacyPolicyAddCommands()
  761. {
  762. var L_ActivationPrivacyPolicyMenuCommand1_Text = "&Tell me about this step";
  763. var L_ActivationPrivacyPolicyMenuCommand2_Text = "Tell &me about activation";
  764. var L_ActivationPrivacyPolicyMenuCommand3_Text = "H&ow do I activate later?";
  765. var L_ActivationPrivacyPolicyMenuCommand4_Text = "How &do I activate if I'm not connected to the Internet?";
  766. var L_ActivationPrivacyPolicyMenuCommand5_Text = "Wh&at happens if I don't activate?";
  767. g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyAboutThisScreen", L_ActivationPrivacyPolicyMenuCommand1_Text);
  768. g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyAboutActivation", L_ActivationPrivacyPolicyMenuCommand2_Text);
  769. g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyHowToActivateLater", L_ActivationPrivacyPolicyMenuCommand3_Text);
  770. g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyHowToActivateUnconnected", L_ActivationPrivacyPolicyMenuCommand4_Text);
  771. g_AgentCharacter.Commands.Add("Agent_OnActivationPrivacyPolicyWhatHappensNoActivate", L_ActivationPrivacyPolicyMenuCommand5_Text);
  772. Agent_AddWhatToDoNextCommand();
  773. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  774. {
  775. Agent_AddAssistantanceCommand();
  776. }
  777. }
  778. function Agent_OnActivationPrivacyPolicyAboutThisScreen()
  779. {
  780. var L_ActivationPrivacyPolicyAboutThisScreen1_Text = "This screen explains how your privacy is protected when you activate %1.";
  781. Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyAboutThisScreen1_Text, g_ProductName));
  782. }
  783. function Agent_OnActivationPrivacyPolicyAboutActivation()
  784. {
  785. 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.";
  786. Agent_Speak(L_ActivationPrivacyPolicyAboutActivation1_Text);
  787. var L_ActivationPrivacyPolicyAboutActivation2_Text = "Activation protects you and your bank from unauthorized use of your card.";
  788. Agent_Speak(L_ActivationPrivacyPolicyAboutActivation2_Text);
  789. 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.";
  790. Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyAboutActivation3_Text, g_ProductName, g_ProductName));
  791. }
  792. function Agent_OnActivationPrivacyPolicyHowToActivateLater()
  793. {
  794. var L_ActivationPrivacyPolicyHowToActivateLater1_Text = "If you skip activation for now, a small reminder will appear on the %1 desktop every few days.";
  795. Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyHowToActivateLater1_Text, g_ProductName));
  796. var L_ActivationPrivacyPolicyHowToActivateLater2_Text = "You can then run the Product Activation Wizard by going to the Start menu and clicking Activate Windows.";
  797. Agent_Speak(L_ActivationPrivacyPolicyHowToActivateLater2_Text);
  798. 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.";
  799. Agent_Speak(L_ActivationPrivacyPolicyHowToActivateLater3_Text);
  800. }
  801. function Agent_OnActivationPrivacyPolicyHowToActivateUnconnected()
  802. {
  803. 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.";
  804. Agent_Speak(L_ActivationPrivacyPolicyHowToActivateUnconnected1_Text);
  805. var L_ActivationPrivacyPolicyHowToActivateUnconnected2_Text = "The wizard will show you a telephone number that you can call to activate Windows over the phone.";
  806. Agent_Speak(L_ActivationPrivacyPolicyHowToActivateUnconnected2_Text);
  807. }
  808. function Agent_OnActivationPrivacyPolicyWhatHappensNoActivate()
  809. {
  810. var L_ActivationPrivacyPolicyWhatHappensNoActivate1_Text = "You can continue using %1 until the ActivationPrivacyPolicy period expires.";
  811. Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyWhatHappensNoActivate1_Text, g_ProductName));
  812. var L_ActivationPrivacyPolicyWhatHappensNoActivate2_Text = "But at the end of that period, you must activate %1 in order to continue using it.";
  813. Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyWhatHappensNoActivate2_Text, g_ProductName));
  814. var L_ActivationPrivacyPolicyWhatHappensNoActivate3_Text = "If you let the ActivationPrivacyPolicy period expire, you will no longer be able to use %1.";
  815. Agent_Speak(ApiObj.FormatMessage(L_ActivationPrivacyPolicyWhatHappensNoActivate3_Text, g_ProductName));
  816. }
  817. // ************************* DSLMAIN Page (dslmain.htm) Scripts ************************* //
  818. function Agent_DSLMAINAddCommands()
  819. {
  820. var L_DSLMAINMenuCommand1_Text = "&Tell me about this step";
  821. var L_DSLMAINMenuCommand2_Text = "&Some reasons to require a username and password";
  822. var L_DSLMAINMenuCommand3_Text = "&What should I do next?";
  823. g_AgentCharacter.Commands.Add("Agent_OnDSLMAINAboutThisScreen", L_DSLMAINMenuCommand1_Text);
  824. g_AgentCharacter.Commands.Add("Agent_OnDSLMAINSomeReasons", L_DSLMAINMenuCommand2_Text);
  825. g_AgentCharacter.Commands.Add("Agent_OnDSLMAINWhatToDoNext", L_DSLMAINMenuCommand3_Text);
  826. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  827. {
  828. Agent_AddAssistantanceCommand();
  829. }
  830. }
  831. function Agent_OnDSLMAINAboutThisScreen()
  832. {
  833. 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.";
  834. Agent_Speak(L_DSLMAINAboutThisScreen1_Text);
  835. }
  836. function Agent_OnDSLMAINSomeReasons()
  837. {
  838. 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.";
  839. Agent_Speak(ApiObj.FormatMessage(L_DSLMAINHowToMoveOn1_Text, g_ProductName));
  840. var L_DSLMAINHowToMoveOn2_Text = "That way, you won't need to type that information each time you want to connect to the Internet.";
  841. Agent_Speak(L_DSLMAINHowToMoveOn2_Text);
  842. 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.";
  843. Agent_Speak(L_DSLMAINHowToMoveOn3_Text);
  844. var L_DSLMAINHowToMoveOn4_Text = "For example, you might want to share this computer with your children so they can play games on it.";
  845. Agent_Speak(L_DSLMAINHowToMoveOn4_Text);
  846. var L_DSLMAINHowToMoveOn5_Text = "But you might not want them to surf the Internet without your permission.";
  847. Agent_Speak(L_DSLMAINHowToMoveOn5_Text);
  848. }
  849. function Agent_OnDSLMAINWhatToDoNext()
  850. {
  851. Agent_GestureAtElement(g.dslmain_TitleText, "Left");
  852. var L_DSLMAINWhatToDoNext1_Text = "After you select the answer to this question,";
  853. Agent_Speak(L_DSLMAINWhatToDoNext1_Text);
  854. Agent_Play("RestPose");
  855. if (window.parent.document.dir == "rtl")
  856. {
  857. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  858. }
  859. else
  860. {
  861. Agent_GestureAtElement(g.btnNext, "TopLeft");
  862. }
  863. var L_DSLMAINWhatToDoNext2_Text = "click the Next button.";
  864. Agent_Speak(L_DSLMAINWhatToDoNext2_Text);
  865. Agent_Play("RestPose");
  866. }
  867. // ************************* DSL_A Page (dsl_a.htm) Scripts ************************* //
  868. function Agent_DSL_AAddCommands()
  869. {
  870. var L_DSLAMenuCommand1_Text = "&Tell me about this step";
  871. var L_DSLAMenuCommand2_Text = "Wh&at exactly is the Internet?";
  872. var L_DSLAMenuCommand3_Text = "What &do I need to connect to the Internet?";
  873. var L_DSLAMenuCommand4_Text = "T&ell me about Internet signup-up";
  874. g_AgentCharacter.Commands.Add("Agent_DSL_AAboutThisStep", L_DSLAMenuCommand1_Text);
  875. g_AgentCharacter.Commands.Add("Agent_DSL_AWhatIsInternet", L_DSLAMenuCommand2_Text);
  876. g_AgentCharacter.Commands.Add("Agent_DSL_ANeedToConnect", L_DSLAMenuCommand3_Text);
  877. g_AgentCharacter.Commands.Add("Agent_DSL_AInternetSignup", L_DSLAMenuCommand4_Text);
  878. Agent_AddWhatToDoNextCommand();
  879. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  880. {
  881. Agent_AddAssistantanceCommand();
  882. }
  883. }
  884. function Agent_DSL_AAboutThisStep()
  885. {
  886. 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.";
  887. Agent_Speak(L_DSL_A_AboutThisStep1_Text);
  888. }
  889. function Agent_DSL_AWhatIsInternet()
  890. {
  891. var L_DSL_A_WhatIsInternet1_Text = "The Internet is a worldwide network of computers.";
  892. Agent_Speak(L_DSL_A_WhatIsInternet1_Text);
  893. 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.";
  894. Agent_Speak(L_DSL_A_WhatIsInternet2_Text);
  895. 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.";
  896. Agent_Speak(L_DSL_A_WhatIsInternet3_Text);
  897. 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.";
  898. Agent_Speak(L_DSL_A_WhatIsInternet4_Text);
  899. 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.";
  900. Agent_Speak(L_DSL_A_WhatIsInternet5_Text);
  901. var L_DSL_A_WhatIsInternet6_Text = "Microsoft offers two Web browsers:";
  902. Agent_Speak(L_DSL_A_WhatIsInternet6_Text);
  903. var L_DSL_A_WhatIsInternet7_Text = "MSN Explorer, which is great for beginners and people who use their computers at home, and Internet Explorer.";
  904. Agent_Speak(L_DSL_A_WhatIsInternet7_Text);
  905. }
  906. function Agent_DSL_ANeedToConnect()
  907. {
  908. var L_DSL_A_NeedToConnect1_Text = "You need only three things to connect to the Internet.";
  909. Agent_Speak(L_DSL_A_NeedToConnect1_Text);
  910. var L_DSL_A_NeedToConnect2_Text = "First, you need a computer, which you already have.";
  911. Agent_Speak(L_DSL_A_NeedToConnect2_Text);
  912. var L_DSL_A_NeedToConnect3_Text = "Second, you need an Internet service provider, or \"ISP\" for short.";
  913. Agent_Speak(L_DSL_A_NeedToConnect3_Text);
  914. var L_DSL_A_NeedToConnect4_Text = "An ISP provides Internet service or access, in the same way that your phone company provides phone service.";
  915. Agent_Speak(L_DSL_A_NeedToConnect4_Text);
  916. 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.";
  917. Agent_Speak(L_DSL_A_NeedToConnect5_Text);
  918. var L_DSL_A_NeedToConnect6_Text = "Third, you need a device that makes the physical connection between your computer and your ISP.";
  919. Agent_Speak(L_DSL_A_NeedToConnect6_Text);
  920. var L_DSL_A_NeedToConnect7_Text = "That's the purpose of this screen.";
  921. Agent_Speak(L_DSL_A_NeedToConnect7_Text);
  922. }
  923. function Agent_DSL_AInternetSignup()
  924. {
  925. var L_DSL_A_AboutThisScreen1_Text = "If you already have an Internet account, then your Internet service provider will have already provided this information.";
  926. Agent_Speak(L_DSL_A_AboutThisScreen1_Text);
  927. var L_DSL_A_AboutThisScreen2_Text = "You don't need to set up a new Internet account just because you have a new computer.";
  928. Agent_Speak(L_DSL_A_AboutThisScreen2_Text);
  929. var L_DSL_A_AboutThisScreen3_Text = "You can use the exact same account information that you used with your old computer.";
  930. Agent_Speak(L_DSL_A_AboutThisScreen3_Text);
  931. 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.";
  932. Agent_Speak(L_DSL_A_AboutThisScreen4_Text);
  933. 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.";
  934. Agent_Speak(L_DSL_A_AboutThisScreen5_Text);
  935. }
  936. // ************************* DSL_B Page (dsl_b.htm) Scripts ************************* //
  937. function Agent_DSL_BAddCommands()
  938. {
  939. var L_DSL_B_MenuCommand1_Text = "&Tell me about this step";
  940. var L_DSL_B_MenuCommand2_Text = "Wh&at does IP mean?";
  941. var L_DSL_B_MenuCommand3_Text = "What &does DNS mean?";
  942. var L_DSL_B_MenuCommand4_Text = "&What should I do next?";
  943. g_AgentCharacter.Commands.Add("Agent_OnDSL_BAboutThisScreen", L_DSL_B_MenuCommand1_Text);
  944. g_AgentCharacter.Commands.Add("Agent_OnDSL_BWhatIsIP", L_DSL_B_MenuCommand2_Text);
  945. g_AgentCharacter.Commands.Add("Agent_OnDSL_BWhatIsDNS", L_DSL_B_MenuCommand3_Text);
  946. g_AgentCharacter.Commands.Add("Agent_OnDSL_BWhatToDoNext", L_DSL_B_MenuCommand4_Text);
  947. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  948. {
  949. Agent_AddAssistantanceCommand();
  950. }
  951. }
  952. function Agent_OnDSL_BAboutThisScreen()
  953. {
  954. 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.";
  955. Agent_Speak(L_DSL_B_AboutThisScreen1_Text);
  956. 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.";
  957. Agent_Speak(L_DSL_B_AboutThisScreen2_Text);
  958. }
  959. function Agent_OnDSL_BWhatIsIP()
  960. {
  961. 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.";
  962. Agent_Speak(L_DSL_B_WhatIsIP1_Text);
  963. var L_DSL_B_WhatIsIP2_Text = "When you connect, your ISP usually grants your computer an IP address automatically.";
  964. Agent_Speak(L_DSL_B_WhatIsIP2_Text);
  965. var L_DSL_B_WhatIsIP3_Text = "In this case, though, you need to enter the IP address manually.";
  966. Agent_Speak(L_DSL_B_WhatIsIP3_Text);
  967. Agent_GestureAtElement(g.dsl_intl_staticip, "Left");
  968. var L_DSL_B_WhatIsIP4_Text = "Your ISP should provide you with an IP address to type here.";
  969. Agent_Speak(L_DSL_B_WhatIsIP4_Text);
  970. Agent_Play("RestPose");
  971. }
  972. function Agent_OnDSL_BWhatIsDNS()
  973. {
  974. 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.";
  975. Agent_Speak(L_DSL_B_WhatIsDNS1_Text);
  976. var L_DSL_B_WhatIsDNS2_Text = "In most cases, a DNS address is automatically assigned by your ISP.";
  977. Agent_Speak(L_DSL_B_WhatIsDNS2_Text);
  978. var L_DSL_B_WhatIsDNS3_Text = "Your ISP requires that you set the DNS address on your computer.";
  979. Agent_Speak(L_DSL_B_WhatIsDNS3_Text);
  980. Agent_GestureAtElement(g.dsl_intl_prefdns, "Left");
  981. var L_DSL_B_WhatIsDNS4_Text = "Your ISP should provide you with a preferred DNS to type here";
  982. Agent_Speak(L_DSL_B_WhatIsDNS4_Text);
  983. Agent_Play("RestPose");
  984. Agent_GestureAtElement(g.dsl_lbl_altdns, "Left");
  985. var L_DSL_B_WhatIsDNS5_Text = "and possibly an alternate DNS to use if the preferred DNS is unavailable.";
  986. Agent_Speak(L_DSL_B_WhatIsDNS5_Text);
  987. Agent_Play("RestPose");
  988. Agent_MoveToElement(g.dsl_lbl_altdns, "Bottom");
  989. }
  990. function Agent_OnDSL_BWhatToDoNext()
  991. {
  992. if (window.parent.document.dir == "rtl")
  993. {
  994. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  995. }
  996. else
  997. {
  998. Agent_GestureAtElement(g.btnNext, "TopLeft");
  999. }
  1000. var L_DSL_B_WhatToDoNext1_Text = "Click the Next button to continue.";
  1001. Agent_Speak(L_DSL_B_WhatToDoNext1_Text);
  1002. Agent_Play("RestPose");
  1003. if (window.parent.document.dir == "rtl")
  1004. {
  1005. Agent_GestureAtElement(g.btnBack, "TopLeft");
  1006. }
  1007. else
  1008. {
  1009. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  1010. }
  1011. var L_DSL_B_WhatToDoNext2_Text = "You can also click the Back button to go back to the previous step.";
  1012. Agent_Speak(L_DSL_B_WhatToDoNext2_Text);
  1013. Agent_Play("RestPose");
  1014. if (window.parent.document.dir == "rtl")
  1015. {
  1016. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  1017. }
  1018. else
  1019. {
  1020. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  1021. }
  1022. var L_DSL_B_WhatToDoNext3_Text = "Or, if you changed your mind, click \"Skip\" to continue without setting up this computer for Internet access.";
  1023. Agent_Speak(L_DSL_B_WhatToDoNext3_Text);
  1024. Agent_Play("RestPose");
  1025. }
  1026. // ************************* ICONNECT Page (iconnect.htm) Scripts ************************* //
  1027. function Agent_ICONNECTAddCommands()
  1028. {
  1029. var L_ICONNECTMenuCommand1_Text = "&Tell me about this step";
  1030. var L_ICONNECTMenuCommand2_Text = "Wh&at is a static IP address?";
  1031. var L_ICONNECTMenuCommand3_Text = "What &does DNS mean?";
  1032. var L_ICONNECTMenuCommand4_Text = "&What should I do next?";
  1033. g_AgentCharacter.Commands.Add("Agent_OnICONNECTAboutThisScreen", L_ICONNECTMenuCommand1_Text);
  1034. g_AgentCharacter.Commands.Add("Agent_OnICONNECTWhatIsStaticIP", L_ICONNECTMenuCommand2_Text);
  1035. g_AgentCharacter.Commands.Add("Agent_OnICONNECTWhatIsDNS", L_ICONNECTMenuCommand3_Text);
  1036. g_AgentCharacter.Commands.Add("Agent_OnICONNECTWhatToDoNext", L_ICONNECTMenuCommand4_Text);
  1037. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1038. {
  1039. Agent_AddAssistantanceCommand();
  1040. }
  1041. }
  1042. function Agent_OnICONNECTAboutThisScreen()
  1043. {
  1044. var L_ICONNECTAboutThisScreen1_Text = "On the last screen, you told us how you will connect to the Internet by providing your Internet account information.";
  1045. Agent_Speak(L_ICONNECTAboutThisScreen1_Text);
  1046. var L_ICONNECTAboutThisScreen2_Text = "On this screen, you need to tell us how this computer will establish the physical connection to the Internet.";
  1047. Agent_Speak(L_ICONNECTAboutThisScreen2_Text);
  1048. }
  1049. function Agent_OnICONNECTWhatIsStaticIP()
  1050. {
  1051. 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.";
  1052. Agent_Speak(L_ICONNECTWhatIsStaticIP1_Text);
  1053. var L_ICONNECTWhatIsStaticIP2_Text = "When you connect, your ISP usually grants your computer an IP address automatically.";
  1054. Agent_Speak(L_ICONNECTWhatIsStaticIP2_Text);
  1055. var L_ICONNECTWhatIsStaticIP3_Text = "In this case, though, you need to enter the IP address manually.";
  1056. Agent_Speak(L_ICONNECTWhatIsStaticIP3_Text);
  1057. Agent_GestureAtElement(g.iconnect_spn_staticIP, "Left");
  1058. var L_ICONNECTWhatIsStaticIP4_Text = "Your ISP should provide you with an IP address to type here.";
  1059. Agent_Speak(L_ICONNECTWhatIsStaticIP4_Text);
  1060. Agent_Play("RestPose");
  1061. }
  1062. function Agent_OnICONNECTWhatIsDNS()
  1063. {
  1064. 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.";
  1065. Agent_Speak(L_ICONNECTWhatIsDNS1_Text);
  1066. var L_ICONNECTWhatIsDNS2_Text = "In most cases, a DNS address is automatically assigned by your ISP.";
  1067. Agent_Speak(L_ICONNECTWhatIsDNS2_Text);
  1068. var L_ICONNECTWhatIsDNS3_Text = "Your ISP requires that you set the DNS address on your computer.";
  1069. Agent_Speak(L_ICONNECTWhatIsDNS3_Text);
  1070. Agent_GestureAtElement(g.iconnect_spn_prefrDNS, "Left");
  1071. var L_ICONNECTWhatIsDNS4_Text = "Your ISP should provide you with a preferred DNS to type here";
  1072. Agent_Speak(L_ICONNECTWhatIsDNS4_Text);
  1073. Agent_Play("RestPose");
  1074. Agent_GestureAtElement(g.iconnect_spn_alterDNS, "Left");
  1075. var L_ICONNECTWhatIsDNS5_Text = "and possibly an alternate DNS to use if the preferred DNS is unavailable.";
  1076. Agent_Speak(L_ICONNECTWhatIsDNS5_Text);
  1077. Agent_Play("RestPose");
  1078. }
  1079. function Agent_OnICONNECTWhatToDoNext()
  1080. {
  1081. if (window.parent.document.dir == "rtl")
  1082. {
  1083. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1084. }
  1085. else
  1086. {
  1087. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1088. }
  1089. var L_ICONNECTWhatToDoNext1_Text = "Click the Next button to continue.";
  1090. Agent_Speak(L_ICONNECTWhatToDoNext1_Text);
  1091. Agent_Play("RestPose");
  1092. if (window.parent.document.dir == "rtl")
  1093. {
  1094. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  1095. }
  1096. else
  1097. {
  1098. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  1099. }
  1100. var L_ICONNECTWhatToDoNext2_Text = "Or, if you changed your mind, click \"Skip\" to continue without setting up this computer for Internet access.";
  1101. Agent_Speak(L_ICONNECTWhatToDoNext2_Text);
  1102. Agent_Play("RestPose");
  1103. if (window.parent.document.dir == "rtl")
  1104. {
  1105. Agent_GestureAtElement(g.btnBack, "TopLeft");
  1106. }
  1107. else
  1108. {
  1109. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  1110. }
  1111. var L_ICONNECTWhatToDoNext3_Text = "You can also go back to the previous screen by clicking the Back button.";
  1112. Agent_Speak(L_ICONNECTWhatToDoNext3_Text);
  1113. Agent_Play("RestPose");
  1114. }
  1115. // ################################################################################################## BEGIN NEED AGENT TEXT #############
  1116. // ************************* ICNTLAST Page (icntlast.htm) Scripts ************************* //
  1117. function Agent_ICNTLASTAddCommands() {
  1118. var L_ICNTLASTMenuCommand1_Text = "Tell me what to do &next";
  1119. var L_ICNTLASTMenuCommand2_Text = "Tell me about this &screen";
  1120. var L_ICNTLASTMenuCommand3_Text = "Tell me how to &move to the next screen";
  1121. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  1122. // MUST be equal to the name of the function that handles the
  1123. // command.
  1124. g_AgentCharacter.Commands.Add("Agent_OnICNTLASTWhatToDoNext", L_ICNTLASTMenuCommand1_Text);
  1125. g_AgentCharacter.Commands.Add("Agent_OnICNTLASTAboutThisScreen", L_ICNTLASTMenuCommand2_Text);
  1126. g_AgentCharacter.Commands.Add("Agent_OnICNTLASTHowToMoveOn", L_ICNTLASTMenuCommand3_Text);
  1127. Agent_AddAssistantanceCommand();
  1128. }
  1129. function Agent_OnICNTLASTWhatToDoNext()
  1130. {
  1131. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1132. var L_ICNTLASTWhatToDoNext1_Text = "Some temporary string here ...icntlast.htm do next";
  1133. Agent_Speak(L_ICNTLASTWhatToDoNext1_Text);
  1134. }
  1135. function Agent_OnICNTLASTAboutThisScreen()
  1136. {
  1137. var L_ICNTLASTAboutThisScreen_Text = "Some temporary string here ...icntlast.htm about step";
  1138. Agent_Speak(L_ICNTLASTAboutThisScreen_Text);
  1139. }
  1140. function Agent_OnICNTLASTHowToMoveOn()
  1141. {
  1142. var L_ICNTLASTHowToMoveOn_Text = "Some more temporary string here ...icntlast.htm move on";
  1143. Agent_Speak(L_ICNTLASTHowToMoveOn_Text);
  1144. }
  1145. // ************************* SCONNECT Page (sconnect.htm) Scripts ************************* //
  1146. function Agent_SCONNECTAddCommands() {
  1147. var L_SCONNECTMenuCommand1_Text = "Tell me what to do &next";
  1148. var L_SCONNECTMenuCommand2_Text = "Tell me about this &screen";
  1149. var L_SCONNECTMenuCommand3_Text = "Tell me how to &move to the next screen";
  1150. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  1151. // MUST be equal to the name of the function that handles the
  1152. // command.
  1153. g_AgentCharacter.Commands.Add("Agent_OnSCONNECTWhatToDoNext", L_SCONNECTMenuCommand1_Text);
  1154. g_AgentCharacter.Commands.Add("Agent_OnSCONNECTAboutThisScreen", L_SCONNECTMenuCommand2_Text);
  1155. g_AgentCharacter.Commands.Add("Agent_OnSCONNECTHowToMoveOn", L_SCONNECTMenuCommand3_Text);
  1156. Agent_AddAssistantanceCommand();
  1157. }
  1158. function Agent_OnSCONNECTWhatToDoNext()
  1159. {
  1160. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1161. var L_SCONNECTWhatToDoNext1_Text = "Some temporary string here ...sconnect.htm do next";
  1162. Agent_Speak(L_SCONNECTWhatToDoNext1_Text);
  1163. Agent_Play("RestPose");
  1164. }
  1165. function Agent_OnSCONNECTAboutThisScreen()
  1166. {
  1167. var L_SCONNECTAboutThisScreen_Text = "Some temporary string here ...sconnect.htm about step";
  1168. Agent_Speak(L_SCONNECTAboutThisScreen_Text);
  1169. }
  1170. function Agent_OnSCONNECTHowToMoveOn()
  1171. {
  1172. var L_SCONNECTHowToMoveOn_Text = "Some more temporary string here ...sconnect.htm move on";
  1173. Agent_Speak(L_SCONNECTHowToMoveOn_Text);
  1174. }
  1175. // ************************* SCNTLAST Page (scntlast.htm) Scripts ************************* //
  1176. function Agent_SCNTLASTAddCommands() {
  1177. var L_SCNTLASTMenuCommand1_Text = "Tell me what to do &next";
  1178. var L_SCNTLASTMenuCommand2_Text = "Tell me about this &screen";
  1179. var L_SCNTLASTMenuCommand3_Text = "Tell me how to &move to the next screen";
  1180. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  1181. // MUST be equal to the name of the function that handles the
  1182. // command.
  1183. g_AgentCharacter.Commands.Add("Agent_OnSCNTLASTWhatToDoNext", L_SCNTLASTMenuCommand1_Text);
  1184. g_AgentCharacter.Commands.Add("Agent_OnSCNTLASTAboutThisScreen", L_SCNTLASTMenuCommand2_Text);
  1185. g_AgentCharacter.Commands.Add("Agent_OnSCNTLASTHowToMoveOn", L_SCNTLASTMenuCommand3_Text);
  1186. Agent_AddAssistantanceCommand();
  1187. }
  1188. function Agent_OnSCNTLASTWhatToDoNext()
  1189. {
  1190. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1191. var L_SCNTLASTWhatToDoNext1_Text = "Some temporary string here ...scntlast.htm do next";
  1192. Agent_Speak(L_SCNTLASTWhatToDoNext1_Text);
  1193. Agent_Play("RestPose");
  1194. }
  1195. function Agent_OnSCNTLASTAboutThisScreen()
  1196. {
  1197. var L_SCNTLASTAboutThisScreen_Text = "Some temporary string here ...scntlast.htm about step";
  1198. Agent_Speak(L_SCNTLASTAboutThisScreen_Text);
  1199. }
  1200. function Agent_OnSCNTLASTHowToMoveOn()
  1201. {
  1202. var L_SCNTLASTHowToMoveOn_Text = "Some more temporary string here ...scntlast.htm move on";
  1203. Agent_Speak(L_SCNTLASTHowToMoveOn_Text);
  1204. }
  1205. // ################################################################################################## END NEED AGENT TEXT #############
  1206. // ************************* BadPID Page (badpkey.htm) Scripts ************************* //
  1207. function Agent_BadPIDAddCommands()
  1208. {
  1209. var L_BadPIDMenuCommand1_Text = "&Tell me about this step";
  1210. var L_BadPIDMenuCommand2_Text = "H&ow do I enter my product key?";
  1211. var L_BadPIDMenuCommand3_Text = "Wh&at if I don't know my product key?";
  1212. var L_BadPIDMenuCommand4_Text = "What &if my product key isn't working?";
  1213. var L_BadPIDMenuCommand5_Text = "Who can I call for mo&re help?";
  1214. var L_BadPIDMenuCommand6_Text = "&What should I do next?";
  1215. g_AgentCharacter.Commands.Add("Agent_OnBadPIDAboutThisStep", L_BadPIDMenuCommand1_Text);
  1216. g_AgentCharacter.Commands.Add("Agent_OnBadPIDHowToEnter", L_BadPIDMenuCommand2_Text);
  1217. g_AgentCharacter.Commands.Add("Agent_OnBadPIDWhatIfNotKnown", L_BadPIDMenuCommand3_Text);
  1218. g_AgentCharacter.Commands.Add("Agent_OnBadPIDWhatIfNotWorking", L_BadPIDMenuCommand4_Text);
  1219. g_AgentCharacter.Commands.Add("Agent_OnBadPIDWhoCanICall", L_BadPIDMenuCommand5_Text);
  1220. g_AgentCharacter.Commands.Add("Agent_OnBadPIDWhatToDoNext", L_BadPIDMenuCommand6_Text);
  1221. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1222. {
  1223. Agent_AddAssistantanceCommand();
  1224. }
  1225. }
  1226. function Agent_OnBadPIDAboutThisStep()
  1227. {
  1228. var L_BadPIDAboutThisStep1_Text = "The product key that you typed on the previous screen is not valid.";
  1229. Agent_Speak(L_BadPIDAboutThisStep1_Text);
  1230. var L_BadPIDAboutThisStep2_Text = "That means that it doesn't match a product key for an authentic copy of Windows XP.";
  1231. Agent_Speak(L_BadPIDAboutThisStep2_Text);
  1232. var L_BadPIDAboutThisStep3_Text = "And Windows won't work without a valid product key.";
  1233. Agent_Speak(L_BadPIDAboutThisStep3_Text);
  1234. if (window.parent.document.dir == "rtl")
  1235. {
  1236. Agent_GestureAtElement(g.btnBack, "TopLeft");
  1237. }
  1238. else
  1239. {
  1240. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  1241. }
  1242. var L_BadPIDAboutThisStep4_Text = "If you think you might have mistyped it, click the Back button and type the correct key.";
  1243. Agent_Speak(L_BadPIDAboutThisStep4_Text);
  1244. Agent_Play("RestPose");
  1245. 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.";
  1246. Agent_Speak(L_BadPIDAboutThisStep5_Text);
  1247. if (window.parent.document.dir == "rtl")
  1248. {
  1249. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1250. }
  1251. else
  1252. {
  1253. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1254. }
  1255. var L_BadPIDAboutThisStep6_Text = "If that's the case, click the Shutdown button to turn off your computer.";
  1256. Agent_Speak(L_BadPIDAboutThisStep6_Text);
  1257. Agent_Play("RestPose");
  1258. var L_BadPIDAboutThisStep7_Text = "Then call 1-800-RU-LEGIT in the U.S. or Canada.";
  1259. Agent_Speak(L_BadPIDAboutThisStep7_Text);
  1260. var L_BadPIDAboutThisStep8_Text = "In all other countries/regions, contact your local Microsoft subsidiary office.";
  1261. Agent_Speak(L_BadPIDAboutThisStep8_Text);
  1262. }
  1263. function Agent_OnBadPIDHowToEnter()
  1264. {
  1265. if (window.parent.document.dir == "rtl")
  1266. {
  1267. Agent_GestureAtElement(g.btnBack, "TopLeft");
  1268. }
  1269. else
  1270. {
  1271. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  1272. }
  1273. var L_BadPIDHowToEnter1_Text = "Click the Back button to return to the previous screen.";
  1274. Agent_Speak(L_BadPIDHowToEnter1_Text);
  1275. Agent_Play("RestPose");
  1276. 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.";
  1277. Agent_Speak(L_BadPIDHowToEnter2_Text);
  1278. 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.";
  1279. Agent_Speak(L_BadPIDHowToEnter3_Text);
  1280. var L_BadPIDHowToEnter4_Text = "Don't type hyphens or worry about the capitalization.";
  1281. Agent_Speak(L_BadPIDHowToEnter4_Text);
  1282. var L_BadPIDHowToEnter5_Text = "Then click the Next button to continue.";
  1283. Agent_Speak(L_BadPIDHowToEnter5_Text);
  1284. }
  1285. function Agent_OnBadPIDWhatIfNotKnown()
  1286. {
  1287. 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.";
  1288. Agent_Speak(L_BadPIDWhatIfNotKnown1_Text);
  1289. if (window.parent.document.dir == "rtl")
  1290. {
  1291. Agent_GestureAtElement(g.btnBack, "TopLeft");
  1292. }
  1293. else
  1294. {
  1295. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  1296. }
  1297. 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.";
  1298. Agent_Speak(L_BadPIDWhatIfNotKnown2_Text);
  1299. Agent_Play("RestPose");
  1300. var L_BadPIDWhatIfNotKnown3_Text = "If you can't find your product key, call your computer manufacturer at %s.";
  1301. var re = /%s/i;
  1302. var L_BadPIDWhatIfNotKnown4_Text = "If you can't find your product key, contact your computer manufacturer.";
  1303. var strPhoneNumber = window.external.GetSupportPhoneNum();
  1304. if (strPhoneNumber == "")
  1305. Agent_Speak(L_BadPIDWhatIfNotKnown4_Text);
  1306. else
  1307. Agent_Speak(L_BadPIDWhatIfNotKnown3_Text.replace(re, strPhoneNumber));
  1308. }
  1309. function Agent_OnBadPIDWhatIfNotWorking()
  1310. {
  1311. var L_BadPIDWhatIfNotWorking1_Text = "You might have mistyped it.";
  1312. Agent_Speak(L_BadPIDWhatIfNotWorking1_Text);
  1313. var L_BadPIDWhatIfNotWorking2_Text = "You need to include all 25 characters of the product key.";
  1314. Agent_Speak(L_BadPIDWhatIfNotWorking2_Text);
  1315. var L_BadPIDWhatIfNotWorking3_Text = "Each part should consist of 5 letters or numbers.";
  1316. Agent_Speak(L_BadPIDWhatIfNotWorking3_Text);
  1317. var L_BadPIDWhatIfNotWorking4_Text = "You must type a valid product key before you can begin using Windows.";
  1318. Agent_Speak(L_BadPIDWhatIfNotWorking4_Text);
  1319. if (window.parent.document.dir == "rtl")
  1320. {
  1321. Agent_GestureAtElement(g.btnBack, "TopLeft");
  1322. }
  1323. else
  1324. {
  1325. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  1326. }
  1327. var L_BadPIDWhatIfNotWorking5_Text = "If you think you might have mistyped it, click the Back button and type the correct key.";
  1328. Agent_Speak(L_BadPIDWhatIfNotWorking5_Text);
  1329. Agent_Play("RestPose");
  1330. 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.";
  1331. Agent_Speak(L_BadPIDWhatIfNotWorking6_Text);
  1332. if (window.parent.document.dir == "rtl")
  1333. {
  1334. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1335. }
  1336. else
  1337. {
  1338. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1339. }
  1340. var L_BadPIDWhatIfNotWorking7_Text = "If that's the case, click the Shutdown button to turn off your computer.";
  1341. Agent_Speak(L_BadPIDWhatIfNotWorking7_Text);
  1342. Agent_Play("RestPose");
  1343. var L_BadPIDWhatIfNotWorking8_Text = "Then call 1-800-RU-LEGIT in the U.S. or Canada.";
  1344. Agent_Speak(L_BadPIDWhatIfNotWorking8_Text);
  1345. var L_BadPIDWhatIfNotWorking9_Text = "In all other countries/regions, contact your local Microsoft subsidiary office.";
  1346. Agent_Speak(L_BadPIDWhatIfNotWorking9_Text);
  1347. }
  1348. function Agent_OnBadPIDWhoCanICall()
  1349. {
  1350. var L_BadPIDWhoCanICall1_Text = "If your product key is not being accepted, call 1-800-RU-LEGIT in the U.S. or Canada.";
  1351. Agent_Speak(L_BadPIDWhoCanICall1_Text);
  1352. var L_BadPIDWhoCanICall2_Text = "In all other countries/regions, contact your local Microsoft subsidiary office.";
  1353. Agent_Speak(L_BadPIDWhoCanICall2_Text);
  1354. }
  1355. function Agent_OnBadPIDWhatToDoNext()
  1356. {
  1357. if (window.parent.document.dir == "rtl")
  1358. {
  1359. Agent_GestureAtElement(g.btnBack, "TopLeft");
  1360. }
  1361. else
  1362. {
  1363. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  1364. }
  1365. var L_BadPIDWhatToDoNext1_Text = "Click the Back button and type the correct key.";
  1366. Agent_Speak(L_BadPIDWhatToDoNext1_Text);
  1367. var L_BadPIDWhatToDoNext2_Text = "If your product key is not being accepted, then you might have an illegal copy of Windows.";
  1368. Agent_Speak(L_BadPIDWhatToDoNext2_Text);
  1369. if (window.parent.document.dir == "rtl")
  1370. {
  1371. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1372. }
  1373. else
  1374. {
  1375. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1376. }
  1377. var L_BadPIDWhatToDoNext3_Text = "If that's the case, click the Shutdown button to turn off your computer. ";
  1378. Agent_Speak(L_BadPIDWhatToDoNext3_Text);
  1379. Agent_Play("RestPose");
  1380. var L_BadPIDWhatToDoNext4_Text = "Then call 1-800-RU-LEGIT in the U.S. or Canada.";
  1381. Agent_Speak(L_BadPIDWhatToDoNext4_Text);
  1382. var L_BadPIDWhatToDoNext5_Text = "In all other countries/regions, contact your local Microsoft subsidiary office.";
  1383. Agent_Speak(L_BadPIDWhatToDoNext5_Text);
  1384. }
  1385. // ************************* ICONN Page (iconn.htm) Scripts ************************* //
  1386. function Agent_IconnAddCommands()
  1387. {
  1388. var L_IconnMenuCommand1_Text = "&Tell me about this step";
  1389. var L_IconnMenuCommand2_Text = "Which o&ption should I choose?";
  1390. var L_IconnMenuCommand3_Text = "&What should I do next?";
  1391. g_AgentCharacter.Commands.Add("Agent_IconnAboutThisStep", L_IconnMenuCommand1_Text);
  1392. g_AgentCharacter.Commands.Add("Agent_IconnWhichOption", L_IconnMenuCommand2_Text);
  1393. g_AgentCharacter.Commands.Add("Agent_OnIconnWhatToDoNext", L_IconnMenuCommand3_Text);
  1394. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1395. {
  1396. Agent_AddAssistantanceCommand();
  1397. }
  1398. }
  1399. function Agent_IconnAboutThisStep()
  1400. {
  1401. var L_IconnAboutThisStep1_Text = "You have successfully installed Windows Windows XP on your computer!";
  1402. Agent_Speak(L_IconnAboutThisStep1_Text);
  1403. var L_IconnAboutThisStep2_Text = "At this point, I can help you set up your computer for Internet access.";
  1404. Agent_Speak(L_IconnAboutThisStep2_Text);
  1405. 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.";
  1406. Agent_Speak(L_IconnAboutThisStep3_Text);
  1407. }
  1408. function Agent_IconnWhichOption()
  1409. {
  1410. 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.";
  1411. Agent_Speak(L_IconnWhichOption1_Text);
  1412. var L_IconnWhichOption2_Text = "You'll know this is the case if you already have a CD from that ISP.";
  1413. Agent_Speak(L_IconnWhichOption2_Text);
  1414. var L_IconnWhichOption3_Text = "Then set up your computer for Internet access after you finish setting up Windows.";
  1415. Agent_Speak(L_IconnWhichOption3_Text);
  1416. }
  1417. function Agent_OnIconnWhatToDoNext()
  1418. {
  1419. Agent_GestureAtElement(g.radioYesIconn, "Left");
  1420. var L_IconnWhatToDoNext1_Text = "If you would like assistance with setting up a connection to the Internet, click the Yes option.";
  1421. Agent_Speak(L_IconnWhatToDoNext1_Text);
  1422. Agent_Play("RestPose");
  1423. Agent_GestureAtElement(g.radioNoIconn, "Left");
  1424. var L_IconnWhatToDoNext2_Text = "Or, if you don't want to establish an Internet connection at this time, choose \"No\"";
  1425. Agent_Speak(L_IconnWhatToDoNext2_Text);
  1426. Agent_Play("RestPose");
  1427. if (window.parent.document.dir == "rtl")
  1428. {
  1429. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1430. }
  1431. else
  1432. {
  1433. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1434. }
  1435. var L_IconnWhatToDoNext3_Text = "Then, click the Next button to continue.";
  1436. Agent_Speak(L_IconnWhatToDoNext3_Text);
  1437. Agent_Play("RestPose");
  1438. }
  1439. // ************************* ISP Page (isp.htm) Scripts ************************* //
  1440. function Agent_ISPAddCommands()
  1441. {
  1442. var L_ISPMenuCommand1_Text = "&Tell me about this step";
  1443. var L_ISPMenuCommand2_Text = "Wh&at if my computer dealer gave me account information?";
  1444. var L_ISPMenuCommand3_Text = "&What should I do next?";
  1445. g_AgentCharacter.Commands.Add("Agent_ISPAboutThisStep", L_ISPMenuCommand1_Text);
  1446. g_AgentCharacter.Commands.Add("Agent_ISPWhatIfGivenAccount", L_ISPMenuCommand2_Text);
  1447. g_AgentCharacter.Commands.Add("Agent_ISPWhatToDoNext", L_ISPMenuCommand3_Text);
  1448. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1449. {
  1450. Agent_AddAssistantanceCommand();
  1451. }
  1452. }
  1453. function Agent_ISPAboutThisStep()
  1454. {
  1455. var L_ISPAboutThisStep1_Text = "On this screen you select how you want to access the Internet.";
  1456. Agent_Speak(L_ISPAboutThisStep1_Text);
  1457. Agent_GestureAtElement(g.radioGetNewISP, "Left");
  1458. var L_ISPAboutThisStep2_Text = "You can use MSN,";
  1459. Agent_Speak(L_ISPAboutThisStep2_Text);
  1460. Agent_Play("RestPose");
  1461. if (g.radioMigrateISP != null)
  1462. {
  1463. Agent_GestureAtElement(g.radioMigrateISP, "Left");
  1464. var L_ISPAboutThisStep3_Text = "or a different Internet service provider.";
  1465. Agent_Speak(L_ISPAboutThisStep3_Text);
  1466. Agent_Play("RestPose");
  1467. }
  1468. Agent_GestureAtElement(g.radioSkip, "Left");
  1469. var L_ISPAboutThisStep4_Text = "Or you can continue without setting up an Internet connection at this time.";
  1470. Agent_Speak(L_ISPAboutThisStep4_Text);
  1471. Agent_Play("RestPose");
  1472. }
  1473. function Agent_ISPWhatIfGivenAccount()
  1474. {
  1475. var L_ISPWhatIfGivenAccount1_Text = "When you purchased your computer, your dealer may have given you Internet account information on paper.";
  1476. Agent_Speak(L_ISPWhatIfGivenAccount1_Text);
  1477. var L_ISPWhatIfGivenAccount2_Text = "That account information includes a user name, password, and Internet service provider name and phone number.";
  1478. Agent_Speak(L_ISPWhatIfGivenAccount2_Text);
  1479. var L_ISPWhatIfGivenAccount3_Text = "If you have this information, then you already have an Internet account.";
  1480. Agent_Speak(L_ISPWhatIfGivenAccount3_Text);
  1481. Agent_GestureAtElement(g.radioGetNewISP, "Left");
  1482. var L_ISPWhatIfGivenAccount4_Text = "If the ISP name is MSN, select this first option.";
  1483. Agent_Speak(L_ISPWhatIfGivenAccount4_Text);
  1484. Agent_Play("RestPose");
  1485. if (g.radioMigrateISP != null)
  1486. {
  1487. Agent_GestureAtElement(g.radioMigrateISP, "Left");
  1488. var L_ISPWhatIfGivenAccount5_Text = "If the ISP name isn't MSN, select this second option instead.";
  1489. Agent_Speak(L_ISPWhatIfGivenAccount5_Text);
  1490. Agent_Play("RestPose");
  1491. }
  1492. Agent_GestureAtElement(g.radioSkip, "Left");
  1493. 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.";
  1494. Agent_Speak(L_ISPWhatIfGivenAccount6_Text);
  1495. if (window.parent.document.dir == "rtl")
  1496. {
  1497. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1498. }
  1499. else
  1500. {
  1501. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1502. }
  1503. var L_ISPWhatIfGivenAccount7_Text = "Then click the Next button.";
  1504. Agent_Speak(L_ISPWhatIfGivenAccount7_Text);
  1505. Agent_Play("RestPose");
  1506. }
  1507. function Agent_ISPWhatToDoNext()
  1508. {
  1509. if (window.parent.document.dir == "rtl")
  1510. {
  1511. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1512. }
  1513. else
  1514. {
  1515. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1516. }
  1517. var L_ISPWhatToDoNext1_Text = "After you choose an option, click the Next button.";
  1518. Agent_Speak(L_ISPWhatToDoNext1_Text);
  1519. Agent_Play("RestPose");
  1520. }
  1521. // ************************* ICS Page (ics.htm) Scripts ************************* //
  1522. function Agent_ICSAddCommands()
  1523. {
  1524. var L_ICSAddCommands1_Text = "&Tell me about this step";
  1525. var L_ICSAddCommands2_Text = "Wh&at is the Internet Connection Firewall?";
  1526. var L_ICSAddCommands3_Text = "What &is the Home Networking Wizard?";
  1527. g_AgentCharacter.Commands.Add("Agent_ICSAboutThisStep", L_ICSAddCommands1_Text);
  1528. g_AgentCharacter.Commands.Add("Agent_ICSWhatIsFirewall", L_ICSAddCommands2_Text);
  1529. g_AgentCharacter.Commands.Add("Agent_ICSWhatIsNetworkWizard", L_ICSAddCommands3_Text);
  1530. Agent_AddWhatToDoNextCommand();
  1531. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1532. {
  1533. Agent_AddAssistantanceCommand();
  1534. }
  1535. }
  1536. function Agent_ICSAboutThisStep()
  1537. {
  1538. var L_ICSAboutThisStep1_Text = "This screen is where you choose how you want this computer to access the Internet.";
  1539. Agent_Speak(L_ICSAboutThisStep1_Text);
  1540. var L_ICSAboutThisStep2_Text = "If this computer is connected to a network of other computers, you can use the network to access the Internet.";
  1541. Agent_Speak(L_ICSAboutThisStep2_Text);
  1542. var L_ICSAboutThisStep3_Text = "Otherwise, the computer can be set up to make a direct connection to the Internet.";
  1543. Agent_Speak(L_ICSAboutThisStep3_Text);
  1544. 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.";
  1545. Agent_Speak(L_ICSAboutThisStep4_Text);
  1546. }
  1547. function Agent_ICSWhatIsFirewall()
  1548. {
  1549. 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.";
  1550. Agent_Speak(L_ICSWhatIsFirewall1_Text);
  1551. var L_ICSWhatIsFirewall2_Text = "When you set up a network in Windows XP, Windows XP's Internet Connection Firewall feature is automatically turned on.";
  1552. Agent_Speak(L_ICSWhatIsFirewall2_Text);
  1553. var L_ICSWhatIsFirewall3_Text = "And it's also turned on if this computer isn't part of a network but accesses the Internet directly.";
  1554. Agent_Speak(L_ICSWhatIsFirewall3_Text);
  1555. }
  1556. function Agent_ICSWhatIsNetworkWizard()
  1557. {
  1558. var L_ICSWhatIsNetworkWizard1_Text = "This wizard guides you through each step in setting up a network in your home or place of business.";
  1559. Agent_Speak(L_ICSWhatIsNetworkWizard1_Text);
  1560. var L_ICSWhatIsNetworkWizard2_Text = "If you don't want to connect this computer to a network during this process, you can do it later.";
  1561. Agent_Speak(L_ICSWhatIsNetworkWizard2_Text);
  1562. var L_ICSWhatIsNetworkWizard3_Text = "Just go to the Start menu and click More Programs.";
  1563. Agent_Speak(L_ICSWhatIsNetworkWizard3_Text);
  1564. var L_ICSWhatIsNetworkWizard4_Text = "Then click Accessories and Communications to find the Home Networking Wizard.";
  1565. Agent_Speak(L_ICSWhatIsNetworkWizard4_Text);
  1566. 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.";
  1567. Agent_Speak(L_ICSWhatIsNetworkWizard5_Text);
  1568. }
  1569. // ************************* ICS DISCONNECT ERROR Page (icsdc.htm) Scripts ************************* //
  1570. function Agent_ICSDCAddCommands()
  1571. {
  1572. var L_ICSDCAddCommands1_Text = "&Tell me about this step";
  1573. var L_ICSDCAddCommands2_Text = "&What should I do next?";
  1574. g_AgentCharacter.Commands.Add("Agent_ICSDCAboutThisStep", L_ICSDCAddCommands1_Text);
  1575. g_AgentCharacter.Commands.Add("Agent_ICSDCWhatToDoNext", L_ICSDCAddCommands2_Text);
  1576. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1577. {
  1578. Agent_AddAssistantanceCommand();
  1579. }
  1580. }
  1581. function Agent_ICSDCAboutThisStep()
  1582. {
  1583. var L_ICSDCAboutThisStep1_Text = "This screen explains that your computer has become disconnected from the Internet.";
  1584. Agent_Speak(L_ICSDCAboutThisStep1_Text);
  1585. }
  1586. function Agent_ICSDCWhatToDoNext()
  1587. {
  1588. if (window.parent.document.dir == "rtl")
  1589. {
  1590. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1591. }
  1592. else
  1593. {
  1594. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1595. }
  1596. var L_ICSDCWhatToDoNext1_Text = "Click the Retry button to try reconnecting to the Internet.";
  1597. Agent_Speak(L_ICSDCWhatToDoNext1_Text);
  1598. Agent_Play("RestPose");
  1599. if (window.parent.document.dir == "rtl")
  1600. {
  1601. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  1602. }
  1603. else
  1604. {
  1605. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  1606. }
  1607. var L_ICSDCWhatToDoNext2_Text = "Or click \"Skip\" to continue without connecting to the Internet.";
  1608. Agent_Speak(L_ICSDCWhatToDoNext2_Text);
  1609. Agent_Play("RestPose");
  1610. }
  1611. // ************************* Identities 1 Page (ident1.htm) Scripts ************************* //
  1612. function Agent_Ident1AddCommands()
  1613. {
  1614. var L_Ident1AddCommands1_Text = "&Tell me about this step";
  1615. var L_Ident1AddCommands2_Text = "Wh&at is a user account?";
  1616. var L_Ident1AddCommands3_Text = "What a&re the benefits of setting up user accounts?";
  1617. var L_Ident1AddCommands4_Text = "&What should I do next?";
  1618. g_AgentCharacter.Commands.Add("Agent_Ident1Command_AboutThisStep", L_Ident1AddCommands1_Text);
  1619. g_AgentCharacter.Commands.Add("Agent_Ident1Command_WhatIsUserAccount", L_Ident1AddCommands2_Text);
  1620. g_AgentCharacter.Commands.Add("Agent_Ident1Command_Benefits", L_Ident1AddCommands3_Text);
  1621. g_AgentCharacter.Commands.Add("Agent_Ident1WhatToDoNext", L_Ident1AddCommands4_Text);
  1622. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1623. {
  1624. Agent_AddAssistantanceCommand();
  1625. }
  1626. }
  1627. function Agent_Ident1Command_AboutThisStep()
  1628. {
  1629. var L_Ident1AboutThisStep1_Text = "This is the screen where you identify the other people who will use this computer.";
  1630. Agent_Speak(L_Ident1AboutThisStep1_Text);
  1631. 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.";
  1632. Agent_Speak(L_Ident1AboutThisStep2_Text);
  1633. 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.";
  1634. Agent_Speak(L_Ident1AboutThisStep3_Text);
  1635. 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.";
  1636. Agent_Speak(L_Ident1AboutThisStep4_Text);
  1637. var L_Ident1AboutThisStep5_Text = "And it will even show you a picture for each individual.";
  1638. Agent_Speak(L_Ident1AboutThisStep5_Text);
  1639. 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.";
  1640. Agent_Speak(L_Ident1AboutThisStep6_Text);
  1641. }
  1642. function Agent_Ident1Command_WhatIsUserAccount()
  1643. {
  1644. var L_Ident1WhatIsUserAccount1_Text = "If you share a computer with other people in your home or office, you'll like user accounts.";
  1645. Agent_Speak(L_Ident1WhatIsUserAccount1_Text);
  1646. var L_Ident1WhatIsUserAccount2_Text = "With user accounts, you can:";
  1647. Agent_Speak(L_Ident1WhatIsUserAccount2_Text);
  1648. var L_Ident1WhatIsUserAccount3_Text = "Personalize the way you want Windows to organize and display information, without affecting other user preferences;";
  1649. Agent_Speak(L_Ident1WhatIsUserAccount3_Text);
  1650. var L_Ident1WhatIsUserAccount4_Text = "Require a password for access to your files;";
  1651. Agent_Speak(L_Ident1WhatIsUserAccount4_Text);
  1652. var L_Ident1WhatIsUserAccount5_Text = "Remember your personal list of Web Favorites and recently visited sites;";
  1653. Agent_Speak(L_Ident1WhatIsUserAccount5_Text);
  1654. var L_Ident1WhatIsUserAccount6_Text = "Protect your important computer settings;";
  1655. Agent_Speak(L_Ident1WhatIsUserAccount6_Text);
  1656. var L_Ident1WhatIsUserAccount7_Text = "Customize the desktop for each user; and";
  1657. Agent_Speak(L_Ident1WhatIsUserAccount7_Text);
  1658. var L_Ident1WhatIsUserAccount8_Text = "Simplify logging on and quickly switching between computer users.";
  1659. Agent_Speak(L_Ident1WhatIsUserAccount8_Text);
  1660. }
  1661. function Agent_Ident1Command_Benefits()
  1662. {
  1663. 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.";
  1664. Agent_Speak(L_Ident1Benefits1_Text);
  1665. var L_Ident1Benefits2_Text = "Now that's all changed!";
  1666. Agent_Speak(L_Ident1Benefits2_Text);
  1667. var L_Ident1Benefits3_Text = "When you set up user accounts, each user can personalize Windows without affecting the other users of this computer.";
  1668. Agent_Speak(L_Ident1Benefits3_Text);
  1669. 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.";
  1670. Agent_Speak(L_Ident1Benefits4_Text);
  1671. }
  1672. function Agent_Ident1WhatToDoNext()
  1673. {
  1674. if (window.parent.document.dir == "rtl")
  1675. {
  1676. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1677. }
  1678. else
  1679. {
  1680. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1681. }
  1682. var L_Ident1WhatToDoNext1_Text = "After you type the names of the other individuals who will use this computer, click the Next button to continue.";
  1683. Agent_Speak(L_Ident1WhatToDoNext1_Text);
  1684. Agent_Play('RestPose');
  1685. var L_Ident1WhatToDoNext2_Text = "You can change these names and add more users later after you finish setting up Windows.";
  1686. Agent_Speak(L_Ident1WhatToDoNext2_Text);
  1687. var L_Ident1WhatToDoNext3_Text = "Just click Control Panel on the Start menu, and choose User Accounts.";
  1688. Agent_Speak(L_Ident1WhatToDoNext3_Text);
  1689. }
  1690. // ************************* Identities Page (ident2.htm) Scripts ************************* //
  1691. function Agent_IdentitiesAddCommands()
  1692. {
  1693. var L_IdentitiesAddCommands1_Text = "&Tell me about this step";
  1694. var L_IdentitiesAddCommands2_Text = "Wh&at is a user account?";
  1695. var L_IdentitiesAddCommands3_Text = "What a&re the benefits of setting up user accounts?";
  1696. var L_IdentitiesAddCommands4_Text = "&What should I do next?";
  1697. g_AgentCharacter.Commands.Add("Agent_IdentitiesCommand_AboutThisStep", L_IdentitiesAddCommands1_Text);
  1698. g_AgentCharacter.Commands.Add("Agent_IdentitiesCommand_WhatIsUserAccount", L_IdentitiesAddCommands2_Text);
  1699. g_AgentCharacter.Commands.Add("Agent_IdentitiesCommand_Benefits", L_IdentitiesAddCommands3_Text);
  1700. g_AgentCharacter.Commands.Add("Agent_IdentitiesWhatToDoNext", L_IdentitiesAddCommands4_Text);
  1701. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1702. {
  1703. Agent_AddAssistantanceCommand();
  1704. }
  1705. }
  1706. function Agent_IdentitiesCommand_AboutThisStep()
  1707. {
  1708. var L_IdentitiesAboutThisStep1_Text = "This is the screen where you identify the other people who will use this computer.";
  1709. Agent_Speak(L_IdentitiesAboutThisStep1_Text);
  1710. 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.";
  1711. Agent_Speak(L_IdentitiesAboutThisStep2_Text);
  1712. 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.";
  1713. Agent_Speak(L_IdentitiesAboutThisStep3_Text);
  1714. 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.";
  1715. Agent_Speak(L_IdentitiesAboutThisStep4_Text);
  1716. var L_IdentitiesAboutThisStep5_Text = "And it will even show you a picture for each individual.";
  1717. Agent_Speak(L_IdentitiesAboutThisStep5_Text);
  1718. 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.";
  1719. Agent_Speak(L_IdentitiesAboutThisStep6_Text);
  1720. }
  1721. function Agent_IdentitiesCommand_WhatIsUserAccount()
  1722. {
  1723. var L_IdentitiesWhatIsUserAccount1_Text = "If you share a computer with other people in your home or office, you'll like user accounts.";
  1724. Agent_Speak(L_IdentitiesWhatIsUserAccount1_Text);
  1725. var L_IdentitiesWhatIsUserAccount2_Text = "With user accounts, you can:";
  1726. Agent_Speak(L_IdentitiesWhatIsUserAccount2_Text);
  1727. var L_IdentitiesWhatIsUserAccount3_Text = "Personalize the way you want Windows to organize and display information, without affecting other user preferences;";
  1728. Agent_Speak(L_IdentitiesWhatIsUserAccount3_Text);
  1729. var L_IdentitiesWhatIsUserAccount4_Text = "Require a password for access to your files;";
  1730. Agent_Speak(L_IdentitiesWhatIsUserAccount4_Text);
  1731. var L_IdentitiesWhatIsUserAccount5_Text = "Remember your personal list of Web Favorites and recently visited sites;";
  1732. Agent_Speak(L_IdentitiesWhatIsUserAccount5_Text);
  1733. var L_IdentitiesWhatIsUserAccount6_Text = "Protect your important computer settings;";
  1734. Agent_Speak(L_IdentitiesWhatIsUserAccount6_Text);
  1735. var L_IdentitiesWhatIsUserAccount7_Text = "Customize the desktop for each user; and";
  1736. Agent_Speak(L_IdentitiesWhatIsUserAccount7_Text);
  1737. var L_IdentitiesWhatIsUserAccount8_Text = "Simplify logging on and quickly switching between computer users.";
  1738. Agent_Speak(L_IdentitiesWhatIsUserAccount8_Text);
  1739. }
  1740. function Agent_IdentitiesCommand_Benefits()
  1741. {
  1742. 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.";
  1743. Agent_Speak(L_IdentitiesBenefits1_Text);
  1744. var L_IdentitiesBenefits2_Text = "Now that's all changed!";
  1745. Agent_Speak(L_IdentitiesBenefits2_Text);
  1746. var L_IdentitiesBenefits3_Text = "When you set up user accounts, each user can personalize Windows without affecting the other users of this computer.";
  1747. Agent_Speak(L_IdentitiesBenefits3_Text);
  1748. 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.";
  1749. Agent_Speak(L_IdentitiesBenefits4_Text);
  1750. }
  1751. function Agent_IdentitiesWhatToDoNext()
  1752. {
  1753. if (window.parent.document.dir == "rtl")
  1754. {
  1755. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1756. }
  1757. else
  1758. {
  1759. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1760. }
  1761. var L_IdentitiesWhatToDoNext1_Text = "After you type the names of the other individuals who will use this computer, click the Next button to continue.";
  1762. Agent_Speak(L_IdentitiesWhatToDoNext1_Text);
  1763. Agent_Play('RestPose');
  1764. var L_IdentitiesWhatToDoNext2_Text = "You can change these names and add more users later after you finish setting up Windows.";
  1765. Agent_Speak(L_IdentitiesWhatToDoNext2_Text);
  1766. var L_IdentitiesWhatToDoNext3_Text = "Just click Control Panel on the Start menu, and choose User Accounts.";
  1767. Agent_Speak(L_IdentitiesWhatToDoNext3_Text);
  1768. }
  1769. // ************************* Keybd Page (keybd.htm) Scripts ************************* //
  1770. function Agent_KeybdAddCommands()
  1771. {
  1772. var L_KeybdMenuCommand1_Text = "&Tell me about this step";
  1773. var L_KeybdMenuCommand2_Text = "How &do I select my region?";
  1774. var L_KeybdMenuCommand3_Text = "How d&o I select my language?";
  1775. var L_KeybdMenuCommand4_Text = "How do I &select my keyboard?";
  1776. g_AgentCharacter.Commands.Add("Agent_KeybdAboutThisStep", L_KeybdMenuCommand1_Text);
  1777. g_AgentCharacter.Commands.Add("Agent_KeybdHowToSelectRegion", L_KeybdMenuCommand2_Text);
  1778. g_AgentCharacter.Commands.Add("Agent_KeybdHowToSelectLanguage", L_KeybdMenuCommand3_Text);
  1779. g_AgentCharacter.Commands.Add("Agent_KeybdHowToSelectKeyboard", L_KeybdMenuCommand4_Text);
  1780. Agent_AddWhatToDoNextCommand();
  1781. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1782. {
  1783. Agent_AddAssistantanceCommand();
  1784. }
  1785. }
  1786. function Agent_KeybdAboutThisStep()
  1787. {
  1788. 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.";
  1789. Agent_Speak(L_KeybdAboutThisStep1_Text);
  1790. 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.";
  1791. Agent_Speak(L_KeybdAboutThisStep2_Text);
  1792. var L_KeybdAboutThisStep3_Text = "Windows will make sure to display the date, time, and currency correctly.";
  1793. Agent_Speak(L_KeybdAboutThisStep3_Text);
  1794. 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.";
  1795. Agent_Speak(L_KeybdAboutThisStep4_Text);
  1796. var L_KeybdAboutThisStep5_Text = "But if you select the United Kingdom as your region instead, they'll appear in British pounds.";
  1797. Agent_Speak(L_KeybdAboutThisStep5_Text);
  1798. }
  1799. function Agent_KeybdHowToSelectRegion()
  1800. {
  1801. Agent_GestureAtElement(g.selRegion, "Left");
  1802. var L_KeybdHowToSelectRegion1_Text = "The regions of the world appear in this list in alphabetical order.";
  1803. Agent_Speak(L_KeybdHowToSelectRegion1_Text);
  1804. var L_KeybdHowToSelectRegion2_Text = "Click inside this list, or press the Tab key on your keyboard until you reach it.";
  1805. Agent_Speak(L_KeybdHowToSelectRegion2_Text);
  1806. Agent_Play("RestPose");
  1807. Agent_GestureAtElement(g.selRegion, "Right");
  1808. 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.";
  1809. Agent_Speak(L_KeybdHowToSelectRegion3_Text);
  1810. var L_KeybdHowToSelectRegion4_Text = "When you see the region closest to where you live, click it or press Enter on your keyboard.";
  1811. Agent_Speak(L_KeybdHowToSelectRegion4_Text);
  1812. Agent_Play("RestPose");
  1813. Agent_GestureAtElement(g.RegionName, "Left");
  1814. var L_KeybdHowToSelectRegion5_Text = "The region you select will appear in this box.";
  1815. Agent_Speak(L_KeybdHowToSelectRegion5_Text);
  1816. Agent_Play("RestPose");
  1817. }
  1818. function Agent_KeybdHowToSelectLanguage()
  1819. {
  1820. var L_KeybdHowToSelectLanguage1_Text = "Choose the language that you communicate in most often.";
  1821. Agent_Speak(L_KeybdHowToSelectLanguage1_Text);
  1822. 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.";
  1823. Agent_Speak(L_KeybdHowToSelectLanguage2_Text);
  1824. Agent_GestureAtElement(g.selLang, "Left");
  1825. var L_KeybdHowToSelectLanguage3_Text = "Languages appear in this list in alphabetical order.";
  1826. Agent_Speak(L_KeybdHowToSelectLanguage3_Text);
  1827. var L_KeybdHowToSelectLanguage4_Text = "Click here or press the Tab key on your keyboard until you reach it.";
  1828. Agent_Speak(L_KeybdHowToSelectLanguage4_Text);
  1829. Agent_Play("RestPose");
  1830. Agent_GestureAtElement(g.selLang, "Right");
  1831. 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.";
  1832. Agent_Speak(L_KeybdHowToSelectLanguage5_Text);
  1833. var L_KeybdHowToSelectLanguage6_Text = "When you see the language you want, click it or press Enter on your keyboard.";
  1834. Agent_Speak(L_KeybdHowToSelectLanguage6_Text);
  1835. Agent_Play("RestPose");
  1836. Agent_GestureAtElement(g.LangName, "Left");
  1837. var L_KeybdHowToSelectLanguage7_Text = "The language you select will appear in this box.";
  1838. Agent_Speak(L_KeybdHowToSelectLanguage7_Text);
  1839. Agent_Play("RestPose");
  1840. }
  1841. function Agent_KeybdHowToSelectKeyboard()
  1842. {
  1843. var L_KeybdHowToSelectKeyboard1_Text = "Keyboards appear in this list in alphabetical order.";
  1844. Agent_Speak(L_KeybdHowToSelectKeyboard1_Text);
  1845. Agent_GestureAtElement(g.selKeyboard, "Left");
  1846. var L_KeybdHowToSelectKeyboard2_Text = "Click here or press the Tab key on your keyboard until you reach it.";
  1847. Agent_Speak(L_KeybdHowToSelectKeyboard2_Text);
  1848. Agent_Play("RestPose");
  1849. Agent_GestureAtElement(g.selKeyboard, "Right");
  1850. 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.";
  1851. Agent_Speak(L_KeybdHowToSelectKeyboard3_Text);
  1852. var L_KeybdHowToSelectKeyboard4_Text = "When you see the keyboard you're using with this computer, click it or press Enter on your keyboard.";
  1853. Agent_Speak(L_KeybdHowToSelectKeyboard4_Text);
  1854. Agent_Play("RestPose");
  1855. Agent_GestureAtElement(g.KeyboardName, "Left");
  1856. var L_KeybdHowToSelectKeyboard5_Text = "The keyboard you select will appear in this box.";
  1857. Agent_Speak(L_KeybdHowToSelectKeyboard5_Text);
  1858. Agent_Play("RestPose");
  1859. }
  1860. // ************************* Eula Page (neweula.htm) Scripts ************************* //
  1861. function Agent_EulaAddCommands()
  1862. {
  1863. var L_EulaCommand1_Text = "&Tell me about this step";
  1864. var L_EulaCommand2_Text = "H&ow do I indicate my answer";
  1865. var L_EulaCommand3_Text = "Wh&at exactly is the EULA?";
  1866. var L_EulaCommand4_Text = "What &does the EULA say?";
  1867. var L_EulaCommand5_Text = "Why &isn't the Next button available?";
  1868. var L_EulaCommand6_Text = "&What should I do next?";
  1869. g_AgentCharacter.Commands.Add("Agent_EulaAboutThisStep", L_EulaCommand1_Text);
  1870. g_AgentCharacter.Commands.Add("Agent_EulaHowToAnswer", L_EulaCommand2_Text);
  1871. g_AgentCharacter.Commands.Add("Agent_EulaWhatIsEula", L_EulaCommand3_Text);
  1872. g_AgentCharacter.Commands.Add("Agent_EulaWhatDoesEulaSay", L_EulaCommand4_Text);
  1873. g_AgentCharacter.Commands.Add("Agent_EulaWhereIsNextButton", L_EulaCommand5_Text);
  1874. g_AgentCharacter.Commands.Add("Agent_EulaWhatToDoNext", L_EulaCommand6_Text);
  1875. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1876. {
  1877. Agent_AddAssistantanceCommand();
  1878. }
  1879. }
  1880. function Agent_OnEulaPreDisplayMenu()
  1881. {
  1882. if (g.btnNext.disabled)
  1883. {
  1884. var L_EulaMenuCommand5_Text = "Why &isn't the Next button available?";
  1885. try
  1886. {
  1887. g_AgentCharacter.Commands.Insert("Agent_EulaWhereIsNextButton", "Agent_EulaWhatToDoNext",false,L_EulaMenuCommand5_Text);
  1888. }
  1889. catch (e)
  1890. {
  1891. }
  1892. }
  1893. else
  1894. {
  1895. try
  1896. {
  1897. g_AgentCharacter.Commands.Remove("Agent_OnEulaMenuCommand5");
  1898. }
  1899. catch (e)
  1900. {
  1901. }
  1902. }
  1903. }
  1904. function Agent_EulaAboutThisStep()
  1905. {
  1906. var L_EulaAboutThisStep1_Text = "This is the screen where you can view the Microsoft Windows license agreement, and then indicate whether you accept it.";
  1907. Agent_Speak(L_EulaAboutThisStep1_Text);
  1908. Agent_GestureAtElement(g.txtEULA,"Left");
  1909. var L_EulaAboutThisStep2_Text = "In order to use Windows, you must accept this agreement.";
  1910. Agent_Speak(L_EulaAboutThisStep2_Text);
  1911. Agent_Play("RestPose");
  1912. }
  1913. function Agent_EulaHowToAnswer()
  1914. {
  1915. Agent_GestureAtElement(g.radioAgree,"Left");
  1916. var L_EulaHowToAnswer1_Text = "Simply position the pointer in the white circle to the left of your answer, and click once.";
  1917. Agent_Speak(L_EulaHowToAnswer1_Text);
  1918. Agent_Play("RestPose");
  1919. var L_EulaHowToAnswer2_Text = "Then press the Next button.";
  1920. Agent_Speak(L_EulaHowToAnswer2_Text);
  1921. }
  1922. function Agent_EulaWhatIsEula()
  1923. {
  1924. 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.";
  1925. Agent_Speak(L_EulaWhatIsEula1_Text);
  1926. 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.";
  1927. Agent_Speak(L_EulaWhatIsEula2_Text);
  1928. }
  1929. function Agent_EulaWhatDoesEulaSay()
  1930. {
  1931. var L_EulaWhatDoesEulaSay1_Text = "Once you accept its terms, the EULA gives you permission to use Windows XP and grants you some additional rights.";
  1932. Agent_Speak(L_EulaWhatDoesEulaSay1_Text);
  1933. var L_EulaWhatDoesEulaSay2_Text = "It also imposes certain restrictions on your use of Windows XP.";
  1934. Agent_Speak(L_EulaWhatDoesEulaSay2_Text);
  1935. Agent_GestureAtElement(g.txtEULA,"Right");
  1936. var L_EulaWhatDoesEulaSay3_Text = "To read the details, scroll down to the 'Grant of License' section.";
  1937. Agent_Speak(L_EulaWhatDoesEulaSay3_Text);
  1938. Agent_Play("RestPose");
  1939. 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.";
  1940. Agent_Speak(L_EulaWhatDoesEulaSay4_Text);
  1941. }
  1942. function Agent_EulaWhereIsNextButton()
  1943. {
  1944. var L_EulaWhereIsNextButton1_Text = "The Next button is not yet available because you have not chosen whether you accept this license agreement.";
  1945. Agent_Speak(L_EulaWhereIsNextButton1_Text);
  1946. var L_EulaWhereIsNextButton2_Text = "You must first click the Yes or No option.";
  1947. Agent_Speak(L_EulaWhereIsNextButton2_Text);
  1948. }
  1949. function Agent_EulaWhatToDoNext()
  1950. {
  1951. Agent_GestureAtElement(g.radioAgree,"Left");
  1952. var L_EulaWhatToDoNext1_Text = "After you've read the license agreement, click Yes to accept it.";
  1953. Agent_Speak(L_EulaWhatToDoNext1_Text);
  1954. Agent_Play("RestPose");
  1955. var L_EulaWhatToDoNext2_Text = "Or if you don't want to accept it, click No.";
  1956. Agent_Speak(L_EulaWhatToDoNext2_Text);
  1957. var L_EulaWhatToDoNext3_Text = "You must accept this agreement if you want to continue using Windows.";
  1958. Agent_Speak(L_EulaWhatToDoNext3_Text);
  1959. if (window.parent.document.dir == "rtl")
  1960. {
  1961. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  1962. }
  1963. else
  1964. {
  1965. Agent_GestureAtElement(g.btnNext, "TopLeft");
  1966. }
  1967. var L_EulaWhatToDoNext4_Text = "Then click the Next button to move to the next screen.";
  1968. Agent_Speak(L_EulaWhatToDoNext4_Text);
  1969. Agent_Play("RestPose");
  1970. }
  1971. // ************************* BadEula Page (badeula.htm) Scripts ************************* //
  1972. function Agent_BadEulaAddCommands() {
  1973. var L_BadEulaCommand1_Text = "&Tell me about this step";
  1974. var L_BadEulaCommand2_Text = "Wh&at does the EULA say?";
  1975. var L_BadEulaCommand3_Text = "What &if I don't accept the EULA?";
  1976. var L_BadEulaCommand4_Text = "&What should I do next";
  1977. g_AgentCharacter.Commands.Add("Agent_BadEulaAboutThisStep", L_BadEulaCommand1_Text);
  1978. g_AgentCharacter.Commands.Add("Agent_BadEulaWhatDoesEulaSay", L_BadEulaCommand2_Text);
  1979. g_AgentCharacter.Commands.Add("Agent_BadEulaWhatIfIDontAcceptEula", L_BadEulaCommand3_Text);
  1980. g_AgentCharacter.Commands.Add("Agent_BadEulaWhatToDoNext", L_BadEulaCommand4_Text);
  1981. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  1982. {
  1983. Agent_AddAssistantanceCommand();
  1984. }
  1985. }
  1986. function Agent_BadEulaAboutThisStep()
  1987. {
  1988. var L_BadEulaAboutThisStep1_Text = "On the previous screen you chose not to accept the license agreement.";
  1989. Agent_Speak(L_BadEulaAboutThisStep1_Text);
  1990. var L_BadEulaAboutThisStep2_Text = "As a result, you will not be able to use Windows.";
  1991. Agent_Speak(L_BadEulaAboutThisStep2_Text);
  1992. if (window.parent.document.dir == "rtl")
  1993. {
  1994. Agent_GestureAtElement(g.btnBack, "TopLeft");
  1995. }
  1996. else
  1997. {
  1998. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  1999. }
  2000. var L_BadEulaAboutThisStep3_Text = "But you can return to the previous screen by clicking the Back button, and accept the agreement.";
  2001. Agent_Speak(L_BadEulaAboutThisStep3_Text);
  2002. Agent_Play("RestPose");
  2003. if (window.parent.document.dir == "rtl")
  2004. {
  2005. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  2006. }
  2007. else
  2008. {
  2009. Agent_GestureAtElement(g.btnNext, "TopLeft");
  2010. }
  2011. var L_BadEulaAboutThisStep4_Text = "Or confirm that you want to stop using Windows and turn off your computer.";
  2012. Agent_Speak(L_BadEulaAboutThisStep4_Text);
  2013. Agent_Play("RestPose");
  2014. }
  2015. function Agent_BadEulaWhatDoesEulaSay()
  2016. {
  2017. var L_BadEulaWhatDoesEulaSay1_Text = "Once you accept its terms, the EULA gives you permission to use Windows XP and grants you some additional rights.";
  2018. Agent_Speak(L_BadEulaWhatDoesEulaSay1_Text);
  2019. var L_BadEulaWhatDoesEulaSay2_Text = "It also imposes certain restrictions on your use of Windows XP.";
  2020. Agent_Speak(L_BadEulaWhatDoesEulaSay2_Text);
  2021. var L_BadEulaWhatDoesEulaSay3_Text = "To read the details, click the Back button, open the EULA, and scroll down to the 'Grant of License' section.";
  2022. Agent_Speak(L_BadEulaWhatDoesEulaSay3_Text);
  2023. 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.";
  2024. Agent_Speak(L_BadEulaWhatDoesEulaSay4_Text);
  2025. }
  2026. function Agent_BadEulaWhatIfIDontAcceptEula()
  2027. {
  2028. 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.";
  2029. Agent_Speak(L_BadEulaWhatIfIDontAcceptEula1_Text);
  2030. if (window.parent.document.dir == "rtl")
  2031. {
  2032. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  2033. }
  2034. else
  2035. {
  2036. Agent_GestureAtElement(g.btnNext, "TopLeft");
  2037. }
  2038. var L_BadEulaWhatIfIDontAcceptEula2_Text = "If you decide not to accept it, then you can turn off your computer by clicking the Shutdown button.";
  2039. Agent_Speak(L_BadEulaWhatIfIDontAcceptEula2_Text);
  2040. Agent_Play("RestPose");
  2041. var L_BadEulaWhatIfIDontAcceptEula3_Text = "When you restart your computer, you'll return to this screen.";
  2042. Agent_Speak(L_BadEulaWhatIfIDontAcceptEula3_Text);
  2043. }
  2044. function Agent_BadEulaWhatToDoNext()
  2045. {
  2046. if (window.parent.document.dir == "rtl")
  2047. {
  2048. Agent_GestureAtElement(g.btnBack, "TopLeft");
  2049. }
  2050. else
  2051. {
  2052. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  2053. }
  2054. var L_BadEulaWhatToDoNext1_Text = "If you decide to accept the license agreement, click the Back button.";
  2055. Agent_Speak(L_BadEulaWhatToDoNext1_Text);
  2056. Agent_Play("RestPose");
  2057. var L_BadEulaWhatToDoNext2_Text = "You must accept the agreement in order to continue this process and begin using Windows.";
  2058. Agent_Speak(L_BadEulaWhatToDoNext2_Text);
  2059. var L_BadEulaWhatToDoNext3_Text = "If you decide not to accept it, click the Shutdown button to turn off your computer.";
  2060. Agent_Speak(L_BadEulaWhatToDoNext3_Text);
  2061. if (window.parent.document.dir == "rtl")
  2062. {
  2063. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  2064. }
  2065. else
  2066. {
  2067. Agent_GestureAtElement(g.btnNext, "TopLeft");
  2068. }
  2069. var L_BadEulaWhatToDoNext4_Text = "When you restart your computer, you'll return to this screen.";
  2070. Agent_Speak(L_BadEulaWhatToDoNext4_Text);
  2071. Agent_Play("RestPose");
  2072. }
  2073. // ************************* Product Key Page(prodkey.htm) Scripts ************************* //
  2074. function Agent_ProductKeyAddCommands()
  2075. {
  2076. var L_ProductKeyAddCommands1_Text = "&Tell me about this step";
  2077. var L_ProductKeyAddCommands2_Text = "Wh&at is a product key?";
  2078. var L_ProductKeyAddCommands4_Text = "&What should I do next?";
  2079. g_AgentCharacter.Commands.Add("Agent_ProductKeyAboutThisStep", L_ProductKeyAddCommands1_Text);
  2080. g_AgentCharacter.Commands.Add("Agent_ProductKeyWhatIsProdKey", L_ProductKeyAddCommands2_Text);
  2081. g_AgentCharacter.Commands.Add("Agent_ProductKeyWhatToDoNext",L_ProductKeyAddCommands4_Text);
  2082. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  2083. {
  2084. Agent_AddAssistantanceCommand();
  2085. }
  2086. }
  2087. function Agent_OnProductKeyPreDisplayMenu()
  2088. {
  2089. if (g.btnNext.disabled)
  2090. {
  2091. var L_ProductKeyAddCommands3_Text = "Why &isn't the next button available?";
  2092. try
  2093. {
  2094. g_AgentCharacter.Commands.Insert("Agent_ProductKeyWhyNextNotAvailable","Agent_ProductKeyWhatToDoNext",false,L_ProductKeyAddCommands3_Text);
  2095. }
  2096. catch (e)
  2097. {
  2098. }
  2099. }
  2100. else
  2101. {
  2102. try
  2103. {
  2104. g_AgentCharacter.Commands.Remove("Agent_ProductKeyWhyNextNotAvailable");
  2105. }
  2106. catch (e)
  2107. {
  2108. }
  2109. }
  2110. }
  2111. function Agent_ProductKeyAboutThisStep()
  2112. {
  2113. 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.";
  2114. Agent_Speak(L_ProductKeyAboutThisStep1_Text);
  2115. 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.";
  2116. Agent_Speak(L_ProductKeyAboutThisStep2_Text);
  2117. Agent_GestureAtElement(g.pid1,"Left");
  2118. var L_ProductKeyAboutThisStep3_Text = "Any letters you type here will automatically be capitalized for you.";
  2119. Agent_Speak(L_ProductKeyAboutThisStep3_Text);
  2120. Agent_Play("RestPose");
  2121. var L_ProductKeyAboutThisStep4_Text = "After this step, you can register your computer and your copy of Microsoft Windows.";
  2122. Agent_Speak(L_ProductKeyAboutThisStep4_Text);
  2123. var L_ProductKeyAboutThisStep5_Text = "It's easy, and registering Windows makes all sorts of great benefits available to you.";
  2124. Agent_Speak(L_ProductKeyAboutThisStep5_Text);
  2125. }
  2126. function Agent_ProductKeyWhatIsProdKey()
  2127. {
  2128. var L_ProductKeyWhatIsProdKey1_Text = "Every copy of Windows produced by Microsoft is coded with a unique product key.";
  2129. Agent_Speak(L_ProductKeyWhatIsProdKey1_Text);
  2130. var L_ProductKeyWhatIsProdKey2_Text = "The product key helps assure you that you have purchased a genuine Microsoft product.";
  2131. Agent_Speak(L_ProductKeyWhatIsProdKey2_Text);
  2132. var L_ProductKeyWhatIsProdKey3_Text = "And it helps protect you from a pirated copy of Windows.";
  2133. Agent_Speak(L_ProductKeyWhatIsProdKey3_Text);
  2134. var L_ProductKeyWhatIsProdKey4_Text = "The product key also qualifies you for certain customer benefits, such as support, marketing services, upgrades and Web offers.";
  2135. Agent_Speak(L_ProductKeyWhatIsProdKey4_Text);
  2136. }
  2137. function Agent_ProductKeyWhyNextNotAvailable()
  2138. {
  2139. var L_ProductKeyWhyNextNotAvailable1_Text = "The Next button is not available because you have not typed a valid product key.";
  2140. Agent_Speak(L_ProductKeyWhyNextNotAvailable1_Text);
  2141. var L_ProductKeyWhyNextNotAvailable2_Text = "You must type a valid product key.";
  2142. Agent_Speak(L_ProductKeyWhyNextNotAvailable2_Text);
  2143. var L_ProductKeyWhyNextNotAvailable3_Text = "Then you will be able to click the Next button to go on.";
  2144. Agent_Speak(L_ProductKeyWhyNextNotAvailable3_Text);
  2145. }
  2146. function Agent_ProductKeyWhatToDoNext()
  2147. {
  2148. if (window.parent.document.dir == "rtl")
  2149. {
  2150. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  2151. }
  2152. else
  2153. {
  2154. Agent_GestureAtElement(g.btnNext, "TopLeft");
  2155. }
  2156. var L_ProductKeyWhatToDoNext1_Text = "After you type a valid product key, click the Next button.";
  2157. Agent_Speak(L_ProductKeyWhatToDoNext1_Text);
  2158. Agent_Play("RestPose");
  2159. }
  2160. // ************************* Reg1 Page (reg1.htm) Scripts ************************* //
  2161. function Agent_Reg1AddCommands()
  2162. {
  2163. var L_Reg1Command1_Text = "&Tell me about this step";
  2164. var L_Reg1Command2_Text = "T&ell me about registration";
  2165. var L_Reg1Command3_Text = "H&ow do I register now?";
  2166. var L_Reg1Command4_Text = "Can I &register later?";
  2167. var L_Reg1Command5_Text = "Wh&at's the value of registering?";
  2168. var L_Reg1Command6_Text = "Tell &me about sharing information";
  2169. g_AgentCharacter.Commands.Add("Agent_Reg1AboutThisStep", L_Reg1Command1_Text);
  2170. g_AgentCharacter.Commands.Add("Agent_Reg1AboutRegistration", L_Reg1Command2_Text);
  2171. g_AgentCharacter.Commands.Add("Agent_Reg1HowToRegister", L_Reg1Command3_Text);
  2172. g_AgentCharacter.Commands.Add("Agent_Reg1RegisterLater", L_Reg1Command4_Text);
  2173. g_AgentCharacter.Commands.Add("Agent_Reg1WhyRegister", L_Reg1Command5_Text);
  2174. g_AgentCharacter.Commands.Add("Agent_Reg1AboutSharingInfo", L_Reg1Command6_Text);
  2175. Agent_AddWhatToDoNextCommand();
  2176. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  2177. {
  2178. Agent_AddAssistantanceCommand();
  2179. }
  2180. }
  2181. function Agent_Reg1AboutThisStep()
  2182. {
  2183. var L_Reg1AboutThisStep1_Text = "This is the beginning of the registration section.";
  2184. Agent_Speak(L_Reg1AboutThisStep1_Text);
  2185. var L_Reg1AboutThisStep2_Text = "Here you will be able to register your copy of Windows.";
  2186. Agent_Speak(L_Reg1AboutThisStep2_Text);
  2187. var L_Reg1AboutThisStep3_Text = "When you do, you become eligible for a number of Microsoft customer benefits.";
  2188. Agent_Speak(L_Reg1AboutThisStep3_Text);
  2189. var L_Reg1AboutThisStep4_Text = "These include being notified of product updates, and having access to Microsoft's award-winning product support services.";
  2190. Agent_Speak(L_Reg1AboutThisStep4_Text);
  2191. var L_Reg1AboutThisStep5_Text = "On this screen, you can decide how you would like to register.";
  2192. Agent_Speak(L_Reg1AboutThisStep5_Text);
  2193. Agent_GestureAtElement(g.txtMSReglink,"Left");
  2194. var L_Reg1AboutThisStep6_Text = "And if you want to find out more about Microsoft's privacy policy, click this link.";
  2195. Agent_Speak(L_Reg1AboutThisStep6_Text);
  2196. Agent_Play("RestPose");
  2197. }
  2198. function Agent_Reg1AboutRegistration()
  2199. {
  2200. Agent_GestureAtElement(g.rb_reg_ms_yes,"Left");
  2201. var L_Reg1AboutRegistration1_Text = "Click here to begin the registration process, then click the Next button.";
  2202. Agent_Speak(L_Reg1AboutRegistration1_Text);
  2203. Agent_Play("RestPose");
  2204. Agent_GestureAtElement(g.rb_reg_ms_no,"Left");
  2205. var L_Reg1AboutRegistration2_Text = "But if you prefer not to register, click this second option instead, then click \"Next\".";
  2206. Agent_Speak(L_Reg1AboutRegistration2_Text);
  2207. Agent_Play("RestPose");
  2208. }
  2209. function Agent_Reg1HowToRegister()
  2210. {
  2211. Agent_GestureAtElement(g.rb_reg_ms_yes,"Left");
  2212. var L_Reg1HowToRegister1_Text = "To register your copy of Windows, make sure the Yes option is selected.";
  2213. Agent_Speak(L_Reg1HowToRegister1_Text);
  2214. Agent_Play("RestPose");
  2215. var L_Reg1HowToRegister2_Text = "Then click the Next button to continue.";
  2216. Agent_Speak(L_Reg1HowToRegister2_Text);
  2217. }
  2218. function Agent_Reg1RegisterLater()
  2219. {
  2220. var L_Reg1RegisterLater1_Text = "If you skip registration now, you can register your copy of Windows after you finish setting up Windows.";
  2221. Agent_Speak(L_Reg1RegisterLater1_Text);
  2222. var L_Reg1RegisterLater2_Text = "Just click Run on the Start menu and type regwiz /r.";
  2223. Agent_Speak(L_Reg1RegisterLater2_Text);
  2224. 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.";
  2225. Agent_Speak(L_Reg1RegisterLater3_Text);
  2226. }
  2227. function Agent_Reg1WhyRegister()
  2228. {
  2229. var L_Reg1WhyRegister1_Text = "When you register your copy of Windows, you become eligible for a number of Microsoft customer benefits.";
  2230. Agent_Speak(L_Reg1WhyRegister1_Text);
  2231. var L_Reg1WhyRegister2_Text = "These include being notified of product updates and having access to Microsoft's award-winning product support services.";
  2232. Agent_Speak(L_Reg1WhyRegister2_Text);
  2233. }
  2234. function Agent_Reg1AboutSharingInfo()
  2235. {
  2236. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  2237. {
  2238. Agent_GestureAtElement(g.reg1_spn3,"Left");
  2239. var L_Reg1AboutSharingInfo1_Text = "When you check these options, you choose to share your registration information with Microsoft and with your computer's manufacturer.";
  2240. Agent_Speak(L_Reg1AboutSharingInfo1_Text);
  2241. Agent_Play("RestPose");
  2242. }
  2243. else
  2244. {
  2245. Agent_GestureAtElement(g.reg1_spn3,"Left");
  2246. var L_Reg1AboutSharingInfo1_Text = "When you check these options, you choose to share your registration information with Microsoft.";
  2247. Agent_Speak(L_Reg1AboutSharingInfo1_Text);
  2248. Agent_Play("RestPose");
  2249. }
  2250. Agent_GestureAtElement(g.txtMSReglink,"Left");
  2251. var L_Reg1AboutSharingInfo2_Text = "To learn more about Microsoft's privacy policy, click this link.";
  2252. Agent_Speak(L_Reg1AboutSharingInfo2_Text);
  2253. Agent_Play("RestPose");
  2254. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  2255. {
  2256. Agent_GestureAtElement(g.reg1_spn3,"Left");
  2257. var L_Reg1AboutSharingInfo3_Text = "To learn more about the %1 privacy policy, click this link.";
  2258. Agent_Speak(ApiObj.FormatMessage(L_Reg1AboutSharingInfo3_Text, g_OEMNameStr));
  2259. Agent_Play("RestPose");
  2260. }
  2261. }
  2262. // ************************* Reg3 Page (reg3.htm) Scripts ************************* //
  2263. function Agent_Reg3AddCommands()
  2264. {
  2265. var L_Reg3Command1_Text = "&Tell me about this step";
  2266. var L_Reg3Command2_Text = "H&ow do I change information?";
  2267. var L_Reg3Command3_Text = "Tell &me about sharing information";
  2268. g_AgentCharacter.Commands.Add("Agent_Reg3AboutThisStep", L_Reg3Command1_Text);
  2269. g_AgentCharacter.Commands.Add("Agent_Reg3HowToChangeInfo", L_Reg3Command2_Text);
  2270. g_AgentCharacter.Commands.Add("Agent_Reg3AboutSharingInfo", L_Reg3Command3_Text);
  2271. Agent_AddWhatToDoNextCommand();
  2272. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  2273. {
  2274. Agent_AddAssistantanceCommand();
  2275. }
  2276. }
  2277. function Agent_Reg3AboutThisStep()
  2278. {
  2279. var L_Reg3AboutThisStep1_Text = "To register your copy of Microsoft Windows, you'll need to fill in the required information on this screen.";
  2280. Agent_Speak(L_Reg3AboutThisStep1_Text);
  2281. Agent_GestureAtElement(g.UserCity,"Left");
  2282. var L_Reg3AboutThisStep2_Text = "We will need information for all the boxes except the ones marked 'Optional.'";
  2283. Agent_Speak(L_Reg3AboutThisStep2_Text);
  2284. Agent_Play("RestPose");
  2285. var L_Reg3AboutThisStep3_Text = "But it would be great if you could fill in the optional information, too.";
  2286. Agent_Speak(L_Reg3AboutThisStep3_Text);
  2287. if (window.parent.document.dir == "rtl")
  2288. {
  2289. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  2290. }
  2291. else
  2292. {
  2293. Agent_GestureAtElement(g.btnNext, "TopLeft");
  2294. }
  2295. var L_Reg3AboutThisStep4_Text = "When you're done, just click the Next button.";
  2296. Agent_Speak(L_Reg3AboutThisStep4_Text);
  2297. Agent_Play("RestPose");
  2298. }
  2299. function Agent_Reg3HowToChangeInfo()
  2300. {
  2301. var L_Reg3HowToChangeInfo1_Text = "We've added some hints inside the boxes to show you what to do.";
  2302. Agent_Speak(L_Reg3HowToChangeInfo1_Text);
  2303. Agent_GestureAtElement(g.UserLastName,"Left");
  2304. var L_Reg3HowToChangeInfo2_Text = "For example, just click in this Last name box in order to begin typing.";
  2305. Agent_Speak(L_Reg3HowToChangeInfo2_Text);
  2306. var L_Reg3HowToChangeInfo3_Text = "A blinking vertical line, known as the insertion point, should appear in the box.";
  2307. Agent_Speak(L_Reg3HowToChangeInfo3_Text);
  2308. var L_Reg3HowToChangeInfo4_Text = "Whatever you type will be entered at the insertion point.";
  2309. Agent_Speak(L_Reg3HowToChangeInfo4_Text);
  2310. Agent_Play("RestPose");
  2311. 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.";
  2312. Agent_Speak(L_Reg3HowToChangeInfo5_Text);
  2313. 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.";
  2314. Agent_Speak(L_Reg3HowToChangeInfo6_Text);
  2315. 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.";
  2316. Agent_Speak(L_Reg3HowToChangeInfo7_Text);
  2317. var L_Reg3HowToChangeInfo8_Text = "Then type the character you want to insert.";
  2318. Agent_Speak(L_Reg3HowToChangeInfo8_Text);
  2319. var L_Reg3HowToChangeInfo9_Text = "Don't worry if you don't type in a box and the hint still appears there.";
  2320. Agent_Speak(L_Reg3HowToChangeInfo9_Text);
  2321. var L_Reg3HowToChangeInfo10_Text = "The hint is just to help you. It's not part of your registration information.";
  2322. Agent_Speak(L_Reg3HowToChangeInfo10_Text);
  2323. }
  2324. function Agent_Reg3AboutSharingInfo()
  2325. {
  2326. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  2327. {
  2328. Agent_GestureAtElement(g.sharemsonly,"Left");
  2329. var L_Reg3AboutSharingInfo1_Text = "When you check these options, you choose to share your registration information with Microsoft and with your computer's manufacturer.";
  2330. Agent_Speak(L_Reg3AboutSharingInfo1_Text);
  2331. Agent_Play("RestPose");
  2332. }
  2333. else
  2334. {
  2335. Agent_GestureAtElement(g.sharemsonly,"Left");
  2336. var L_Reg3AboutSharingInfo1_Text = "When you check these options, you choose to share your registration information with Microsoft.";
  2337. Agent_Speak(L_Reg3AboutSharingInfo1_Text);
  2338. Agent_Play("RestPose");
  2339. }
  2340. }
  2341. function Agent_OnRegister3KeyDown(elem, keyCode) {
  2342. switch (elem.id) {
  2343. case "UserFirstName":
  2344. case "UserMiddleName":
  2345. case "UserLastName":
  2346. case "UserAddress":
  2347. case "UserAddress2":
  2348. case "UserCity":
  2349. case "UserStateTextBox":
  2350. case "UserZipCode":
  2351. case "UserEmailAddress":
  2352. case "selUSState":
  2353. case "selCAProvince":
  2354. case "selCountry":
  2355. case "sharems":
  2356. case "shareoem":
  2357. // Is it the Tab (or Shift-Tab) key?
  2358. if (keyCode == 9) {
  2359. // We don't want to start looking in this case
  2360. // because we'll wind up looking at the wrong
  2361. // thing. We will get a GotFocus event as a result
  2362. // of the tab key which will move us along.
  2363. return;
  2364. }
  2365. // If we aren't looking at the control, stop what we're
  2366. // doing and immediately move to the control. Then, start
  2367. // looking at it.
  2368. if (!Agent_IsLooking()) {
  2369. Agent_StopAll();
  2370. var dir;
  2371. if (elem.type == "checkbox")
  2372. if (g.document.dir == "rtl") {
  2373. if (elem.id == "sharems")
  2374. dir = "TopCenterWidth";
  2375. else
  2376. dir = "BottomCenterWidth";
  2377. }
  2378. else
  2379. dir = "Left";
  2380. else {
  2381. if ((elem.id == "UserZipCode") && !IsFarEastLocale()) {
  2382. if (g.document.dir == "rtl")
  2383. dir = "Left";
  2384. else
  2385. dir = "TopRight";
  2386. }
  2387. else {
  2388. if (g.document.dir == "rtl")
  2389. dir = "Left";
  2390. else
  2391. dir = "Right";
  2392. }
  2393. }
  2394. Agent_MoveToElement(elem, dir, 0);
  2395. if ((dir == "TopRight") || (dir == "TopCenterWidth"))
  2396. Agent_StartLookingAtElement(elem, "LookDown");
  2397. else if (dir == "BottomCenterWidth")
  2398. Agent_StartLookingAtElement(elem, "LookUp");
  2399. else
  2400. Agent_StartLookingAtElement(elem, "Look" + dir);
  2401. }
  2402. else {
  2403. // We're already looking at it, just keep at it
  2404. Agent_KeepLooking();
  2405. }
  2406. break;
  2407. default:
  2408. return;
  2409. }
  2410. }
  2411. function Agent_OnRegister3GotFocus(elem) {
  2412. var dir;
  2413. if (elem.type == "checkbox"){
  2414. if (g.document.dir == "rtl") {
  2415. if (elem.id == "sharems")
  2416. dir = "TopCenterWidth"
  2417. else
  2418. dir = "BottomCenterWidth"
  2419. }
  2420. else
  2421. dir = "Left";
  2422. }
  2423. else {
  2424. // removed Country as text boxes spec change
  2425. if ((elem.id == "UserZipCode")&& !IsFarEastLocale()) {
  2426. if (g.document.dir == "rtl")
  2427. dir = "Left"
  2428. else
  2429. dir = "TopRight";
  2430. }
  2431. else {
  2432. if (g.document.dir == "rtl")
  2433. dir = "Left"
  2434. else
  2435. dir = "Right";
  2436. }
  2437. }
  2438. Agent_StopAll();
  2439. Agent_MoveToElement(elem, dir, 0);
  2440. if ((dir == "TopRight") || (dir == "TopCenterWidth"))
  2441. Agent_StartLookingAtElement(elem, "LookDown");
  2442. else if (dir == "BottomCenterWidth")
  2443. Agent_StartLookingAtElement(elem, "LookUp");
  2444. else
  2445. Agent_StartLookingAtElement(elem, "Look" + dir);
  2446. // Keep track of whether dropdowns have ever had
  2447. // focus.
  2448. switch (elem.id) {
  2449. case "selUSState":
  2450. g_bAgentRegister3VisitState = true;
  2451. break;
  2452. case "selCAProvince":
  2453. g_bAgentRegister3VisitProvince = true;
  2454. break;
  2455. case "selCountry":
  2456. g_bAgentRegister3VisitCountry = true;
  2457. break;
  2458. }
  2459. }
  2460. function Agent_Register3PlayCheckBoxScript(id) {
  2461. var elemMs;
  2462. var elemOem;
  2463. // Mark both check boxes as visited. We only want to
  2464. // play this script once (for both boxes since they
  2465. // are pretty much the same).
  2466. elemMs = g.document.all("sharems");
  2467. elemOem = g.document.all("shareoem");
  2468. if (id == "sharems")
  2469. elem = elemMs;
  2470. else if (id == "shareoem")
  2471. elem = elemOem;
  2472. else
  2473. return;
  2474. // Move to the element
  2475. if (g.document.dir == "rtl")
  2476. Agent_MoveToElement(elem, "TopCenterWidth", kdwAgentMoveSpeed);
  2477. else
  2478. Agent_MoveToElement(elem, "Left", kdwAgentMoveSpeed);
  2479. // Generate the appropriate string
  2480. L_Register3PlayCheckBoxScript1_Text = "Currently, the registration information on this screen is set to be sent both to Microsoft and the computer manufacturer.";
  2481. L_Register3PlayCheckBoxScript2_Text = "Currently, the registration information on this screen is set to be sent to Microsoft, but not the computer manufacturer.";
  2482. L_Register3PlayCheckBoxScript3_Text = "Currently, the registration information on this screen is set to be sent to the computer manufacturer but not Microsoft.";
  2483. L_Register3PlayCheckBoxScript4_Text = "Currently, the registration information on this screen will not be sent to either Microsoft or the computer manufacturer.";
  2484. var str;
  2485. if (elemMs.checked && elemOem.checked)
  2486. str = L_Register3PlayCheckBoxScript1_Text;
  2487. else if (elemMs.checked && !elemOem.checked)
  2488. str = L_Register3PlayCheckBoxScript2_Text;
  2489. else if (!elemMs.checked && elemOem.checked)
  2490. str = L_Register3PlayCheckBoxScript3_Text;
  2491. else if (!elemMs.checked && !elemOem.checked)
  2492. str = L_Register3PlayCheckBoxScript4_Text;
  2493. // Play the script
  2494. Agent_Speak(str);
  2495. var L_Register3PlayCheckBoxScript5_Text = "This information helps them to keep you apprised of product updates and other benefits to registered customers.";
  2496. Agent_Speak(L_Register3PlayCheckBoxScript5_Text);
  2497. var L_Register3PlayCheckBoxScript6_Text = "If you want to change whether this information is sent,";
  2498. Agent_Speak(L_Register3PlayCheckBoxScript6_Text);
  2499. if (g.document.dir == "rtl")
  2500. Agent_GestureAtElement(elem, "TopCenterWidth");
  2501. else
  2502. Agent_GestureAtElement(elem, "Left");
  2503. var L_Register3PlayCheckBoxScript7_Text = "Just click the boxes here.";
  2504. Agent_Speak(L_Register3PlayCheckBoxScript7_Text);
  2505. Agent_Play("RestPose");
  2506. }
  2507. function Agent_Register3IsComplete() {
  2508. // Page is complete if all required fields are non-empty
  2509. // and all required visits have occurred.
  2510. // Always check the current field first
  2511. var strCurrent = g_strAgentLastFocusID;
  2512. if (strCurrent == "") {
  2513. if (IsFarEastLocale() && !IsKoreanLocale())
  2514. strCurrent = "UserLastName";
  2515. else
  2516. strCurrent = "UserFirstName";
  2517. }
  2518. var elem = g.document.all(strCurrent);
  2519. if (null == elem)
  2520. return null;
  2521. switch (strCurrent) {
  2522. case "UserFirstName":
  2523. if ((elem.value == "") && (g.document.all("UserMiddleName").value == ""))
  2524. return elem;
  2525. break;
  2526. case "UserMiddleName":
  2527. if ((elem.value == "") && (g.document.all("UserFirstName").value == ""))
  2528. return elem;
  2529. break;
  2530. case "UserLastName":
  2531. case "UserAddress":
  2532. case "UserCity":
  2533. if (elem.value == "")
  2534. return elem;
  2535. break;
  2536. case "UserStateTextBox":
  2537. if ((elem.value == "") && (g.document.all("StateLabel").innerText.indexOf("*") >=0))
  2538. return elem;
  2539. break;
  2540. case "UserZipCode":
  2541. if ((elem.value == "") && (g.document.all("LabelZip").innerText.indexOf("*") >=0))
  2542. return elem;
  2543. break;
  2544. case "UserEmailAddress":
  2545. if ((elem.value == "") && !g_bAgentRegister3ShortEmail ) {
  2546. return elem;
  2547. }
  2548. break;
  2549. }
  2550. // Check to see if we are have a Far East locale (T. Chinese, S. Chinese,
  2551. // Korean, Japanese) first to determine how we process the order of completion
  2552. if (!IsFarEastLocale()) {
  2553. // Not a Far East locale
  2554. // Start with FirstName and work our way down
  2555. elem = g.document.all("UserFirstName");
  2556. if (elem.value == "") {
  2557. if (g.document.all("UserMiddleName").value == "")
  2558. return elem;
  2559. }
  2560. // NOTE: we don't need to check the middle name. If it's empty
  2561. // and the first name is empty, we would have caught that above.
  2562. // If the first name is not empty, we don't care about the middle
  2563. // name.
  2564. elem = g.document.all("UserMiddleName");
  2565. if (elem.value == "") {
  2566. if (g.document.all("UserFirstName").value == "")
  2567. return elem;
  2568. }
  2569. // Last Name
  2570. elem = g.document.all("UserLastName");
  2571. if (elem.value == "")
  2572. return elem;
  2573. // Address
  2574. elem = g.document.all("UserAddress");
  2575. if (elem.value == "")
  2576. return elem;
  2577. // City
  2578. elem = g.document.all("UserCity");
  2579. if (elem.value == "")
  2580. return elem;
  2581. // State
  2582. elem = g.document.all("UserStateTextBox");
  2583. if (elem.style.display != "none") {
  2584. if ((elem.value == "") && (g.document.all("StateLabel").innerText.indexOf("*") >=0))
  2585. return elem;
  2586. }
  2587. else {
  2588. elem = g.document.all("selUSState");
  2589. // NOTE: elem.style.visibility isn't always "visible"
  2590. if (elem.style.display != "none") {
  2591. if ((!g_bAgentRegister3VisitState) || (elem.options(elem.selectedIndex).text == "") )
  2592. return elem;
  2593. }
  2594. else {
  2595. elem = g.document.all("selCAProvince");
  2596. if ((!g_bAgentRegister3VisitProvince)|| (elem.options(elem.selectedIndex).text == "") )
  2597. return elem;
  2598. }
  2599. }
  2600. // Zip
  2601. elem = g.document.all("UserZipCode");
  2602. if ((elem.value == "") && (g.document.all("LabelZip").innerText.indexOf("*") >=0))
  2603. return elem;
  2604. // Country
  2605. elem = g.document.all("selCountry");
  2606. if (!g_bAgentRegister3VisitCountry)
  2607. return elem;
  2608. // Email
  2609. elem = g.document.all("UserEmailAddress");
  2610. if (elem.value != "") {
  2611. if ((elem.value.indexOf("@") < 0) || (elem.value.indexOf(".") < 0))
  2612. return elem;
  2613. }
  2614. // Share MS
  2615. if (!g_bAgentRegister3Privacy) {
  2616. // check to see if the checkboxes are visible
  2617. if (g.document.all("RegChkBxGrp").style.display != "none") {
  2618. g_bAgentRegister3Privacy = true;
  2619. return g.document.all("sharems");
  2620. }
  2621. }
  2622. // We're done
  2623. return null;
  2624. }
  2625. // Otherwise this must be a Far East locale
  2626. // so do the alternate ordering
  2627. else
  2628. return Agent_Reg3FarEastLocaleOrder();
  2629. }
  2630. function Agent_Reg3FarEastLocaleOrder() {
  2631. // Start with LastName and work our way down
  2632. // Last Name
  2633. if(!IsKoreanLocale()) {
  2634. elem = g.document.all("UserLastName");
  2635. if (elem.value == "")
  2636. return elem;
  2637. }
  2638. // First Name
  2639. elem = g.document.all("UserFirstName");
  2640. if (elem.value == "")
  2641. return elem;
  2642. // Country
  2643. elem = g.document.all("selCountry");
  2644. if (!g_bAgentRegister3VisitCountry)
  2645. return elem;
  2646. // State/Province text box
  2647. elem = g.document.all("UserStateTextBox");
  2648. if ((elem.style.visibility != "hidden") && (elem.style.display != "none")) {
  2649. if ((elem.value == "") && (g.document.all("StateLabel").innerText.indexOf("*") >=0))
  2650. return elem;
  2651. }
  2652. else {
  2653. elem = g.document.all("selUSState");
  2654. // NOTE: elem.style.visibility isn't always "visible"
  2655. if (elem.style.display != "none") {
  2656. if ((!g_bAgentRegister3VisitState) || (elem.options(elem.selectedIndex).text == "") )
  2657. return elem;
  2658. }
  2659. else {
  2660. elem = g.document.all("selCAProvince");
  2661. if ((!g_bAgentRegister3VisitProvince) || (elem.options(elem.selectedIndex).text == "") )
  2662. return elem;
  2663. }
  2664. }
  2665. // City
  2666. elem = g.document.all("UserCity");
  2667. if (elem.value == "")
  2668. return elem;
  2669. // Address
  2670. elem = g.document.all("UserAddress");
  2671. if (elem.value == "")
  2672. return elem;
  2673. // Zip
  2674. elem = g.document.all("UserZipCode");
  2675. if ((elem.value == "") && (g.document.all("LabelZip").innerText.indexOf("*") >=0))
  2676. return elem;
  2677. // Email
  2678. elem = g.document.all("UserEmailAddress");
  2679. if (elem.value != "") {
  2680. if ((elem.value.indexOf("@") < 0) || (elem.value.indexOf(".") < 0))
  2681. return elem;
  2682. }
  2683. // Share MS
  2684. if (!g_bAgentRegister3Privacy) {
  2685. // check to see if the checkboxes are visible
  2686. if (g.document.all("RegChkBxGrp").style.display != "none") {
  2687. g_bAgentRegister3Privacy = true;
  2688. return g.document.all("sharems");
  2689. }
  2690. }
  2691. // We're done
  2692. return null;
  2693. }
  2694. function Agent_Register3EncourageInteraction(elem) {
  2695. var bExplainDropDownArrow = false;
  2696. // Is this element different than the element that
  2697. // has focus?
  2698. if (g_strAgentLastFocusID == "") {
  2699. elem.focus();
  2700. g_AgentCharacter.Activate(2);
  2701. Agent_StopAll();
  2702. }
  2703. else if (g_strAgentLastFocusID != elem.id) {
  2704. // If the specified element is next in the tab order,
  2705. // tell the user to press the Tab key. Otherwise, tell
  2706. // them to click the mouse.
  2707. switch (elem.id) {
  2708. case "UserMiddleName":
  2709. case "UserLastName":
  2710. case "UserAddress":
  2711. case "UserAddress2":
  2712. case "UserCity":
  2713. case "UserStateTextBox":
  2714. case "UserEmailAddress":
  2715. if (g.document.dir == "rtl")
  2716. Agent_GestureAtElement(elem, "Left");
  2717. else
  2718. Agent_GestureAtElement(elem, "Right");
  2719. if (Agent_IsNextTabItem(g.document.all(g_strAgentLastFocusID), elem))
  2720. Agent_Register3EncourageTabKey();
  2721. else
  2722. Agent_Register3EncourageMouseClick();
  2723. if (elem.id == "UserEmailAddress")
  2724. break;
  2725. return;
  2726. case "UserZipCode":
  2727. if (g.document.dir == "rtl")
  2728. Agent_GestureAtElement(elem, "Left");
  2729. else
  2730. Agent_GestureAtElement(elem, (IsFarEastLocale() ? "Right" : "TopRight"));
  2731. if (Agent_IsNextTabItem(g.document.all(g_strAgentLastFocusID), elem))
  2732. Agent_Register3EncourageTabKey();
  2733. else
  2734. Agent_Register3EncourageMouseClick();
  2735. if (elem.id == "UserEmailAddress")
  2736. break;
  2737. return;
  2738. case "selUSState":
  2739. case "selCAProvince":
  2740. case "selCountry":
  2741. if (Agent_IsNextTabItem(g.document.all(g_strAgentLastFocusID), elem))
  2742. bExplainDropDownArrow = true;
  2743. break;
  2744. }
  2745. }
  2746. switch (elem.id) {
  2747. case "UserFirstName":
  2748. case "UserMiddleName":
  2749. case "UserLastName":
  2750. case "UserAddress":
  2751. case "UserAddress2":
  2752. case "UserCity":
  2753. case "UserStateTextBox":
  2754. case "selUSState":
  2755. case "selCAProvince":
  2756. case "selCountry":
  2757. case "UserZipCode":
  2758. case "UserEmailAddress":
  2759. case "sharems":
  2760. case "shareoem":
  2761. Agent_Register3PlayElementScript(elem);
  2762. if (bExplainDropDownArrow)
  2763. Agent_Register3DropDownArrowExplain();
  2764. break;
  2765. }
  2766. }
  2767. function Agent_Register3EncourageTabKey() {
  2768. var L_Register3EncourageTabKey1_Text = "Press the Tab key to move here.";
  2769. Agent_Speak(L_Register3EncourageTabKey1_Text);
  2770. }
  2771. function Agent_Register3EncourageMouseClick() {
  2772. var L_Register3EncourageMouseClick1_Text = "Move the mouse pointer here and click the left button.";
  2773. Agent_Speak(L_Register3EncourageMouseClick1_Text);
  2774. }
  2775. function Agent_Register3DropDownArrowExplain() {
  2776. // The code in this function was removed as it blocks the text box
  2777. // Agent_Play("Think");
  2778. // 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.";
  2779. // Agent_Think(L_Register3DropDownArrowExplain1_Text);
  2780. }
  2781. function Agent_Register3PlayElementScript(elem) {
  2782. var str;
  2783. var dir;
  2784. switch (elem.id) {
  2785. case "UserFirstName":
  2786. if (g.document.dir == "rtl")
  2787. Agent_GestureAtElement(elem, "Left");
  2788. else
  2789. Agent_GestureAtElement(elem, "Right");
  2790. var L_Register3PlayElementScript1_Text = "In this box, type your first name.";
  2791. Agent_Speak(L_Register3PlayElementScript1_Text);
  2792. if (g.document.dir == "rtl") {
  2793. Agent_Play("LookLeft");
  2794. Agent_Play("LookLeftBlink");
  2795. Agent_Play("LookLefttReturn");
  2796. }
  2797. else {
  2798. Agent_Play("LookRight");
  2799. Agent_Play("LookRightBlink");
  2800. Agent_Play("LookRightReturn");
  2801. }
  2802. break;
  2803. case "UserMiddleName":
  2804. if (g.document.dir == "rtl")
  2805. Agent_GestureAtElement(elem, "Left");
  2806. else
  2807. Agent_GestureAtElement(elem, "Right");
  2808. var L_Register3PlayElementScript3_Text = "This is where you type your middle name.";
  2809. Agent_Speak(L_Register3PlayElementScript3_Text);
  2810. break;
  2811. case "UserLastName":
  2812. if (g.document.dir == "rtl")
  2813. Agent_GestureAtElement(elem, "Left");
  2814. else
  2815. Agent_GestureAtElement(elem, "Right");
  2816. var L_Register3PlayElementScript4_Text = "In this box, type your last name.";
  2817. Agent_Speak(L_Register3PlayElementScript4_Text);
  2818. break;
  2819. case "UserAddress":
  2820. if (g.document.dir == "rtl")
  2821. Agent_GestureAtElement(elem, "Left");
  2822. else
  2823. Agent_GestureAtElement(elem, "Right");
  2824. var L_Register3PlayElementScript5_Text = "Type in your street address here.";
  2825. Agent_Speak(L_Register3PlayElementScript5_Text);
  2826. break;
  2827. case "UserAddress2":
  2828. if (g.document.dir == "rtl")
  2829. Agent_GestureAtElement(elem, "Left");
  2830. else
  2831. Agent_GestureAtElement(elem, "Right");
  2832. Agent_Play("Think");
  2833. var L_Register3PlayElementScript6_Text = "If you need additional space for your address, enter it here. Otherwise, press the Tab key to move on.";
  2834. Agent_Speak(L_Register3PlayElementScript6_Text);
  2835. Agent_Play("RestPose");
  2836. break;
  2837. case "UserCity":
  2838. if (g.document.dir == "rtl")
  2839. Agent_GestureAtElement(elem, "Left");
  2840. else
  2841. Agent_GestureAtElement(elem, "Right");
  2842. var L_Register3PlayElementScript7_Text = "Type the name of the city or town where you live here.";
  2843. Agent_Speak(L_Register3PlayElementScript7_Text);
  2844. break;
  2845. case "UserStateTextBox":
  2846. if (g.document.dir == "rtl")
  2847. Agent_GestureAtElement(elem, "Left");
  2848. else
  2849. Agent_GestureAtElement(elem, "Right");
  2850. var L_Register3PlayElementScript8_Text = "Type in your state or province here.";
  2851. Agent_Speak(L_Register3PlayElementScript8_Text);
  2852. break;
  2853. case "selUSState":
  2854. case "selCAProvince":
  2855. case "selCountry":
  2856. if (g.document.dir == "rtl")
  2857. dir = "Left"
  2858. else
  2859. dir = "Right";
  2860. Agent_MoveToElement(elem, dir);
  2861. Agent_Play("Explain");
  2862. if (elem.id == "selUSState") {
  2863. var L_Register3PlayElementScript91_Text = "You need to select your state.";
  2864. Agent_Speak(L_Register3PlayElementScript91_Text);
  2865. Agent_GestureAtElement(elem, dir);
  2866. var L_Register3PlayElementScript92_Text = "To display the list of states, click the downward pointing arrow button with your mouse.";
  2867. Agent_Speak(L_Register3PlayElementScript92_Text);
  2868. }
  2869. else if (elem.id == "selCAProvince") {
  2870. var L_Register3PlayElementScript93_Text = "You need to select your province.";
  2871. Agent_Speak(L_Register3PlayElementScript93_Text);
  2872. Agent_GestureAtElement(elem, dir);
  2873. var L_Register3PlayElementScript94_Text = "To display the list of provinces, click the downward pointing arrow button with your mouse.";
  2874. Agent_Speak(L_Register3PlayElementScript94_Text);
  2875. }
  2876. else {
  2877. var L_Register3PlayElementScript95_Text = "You need to select your country or region, click the downward pointing arrow button with your mouse.";
  2878. Agent_Speak(L_Register3PlayElementScript95_Text);
  2879. Agent_GestureAtElement(elem, dir);
  2880. var L_Register3PlayElementScript96_Text = "To display the list of countries and regions, click the downward pointing arrow button with your mouse.";
  2881. Agent_Speak(L_Register3PlayElementScript96_Text);
  2882. }
  2883. Agent_Play("Explain");
  2884. var L_Register3PlayElementScript11_Text = "Then, make a selection by clicking your state.";
  2885. var L_Register3PlayElementScript12_Text = "Then, make a selection by clicking your province.";
  2886. var L_Register3PlayElementScript13_Text = "Then, make a selection by clicking your country or region.";
  2887. if (elem.id == "selUSState")
  2888. str = L_Register3PlayElementScript11_Text;
  2889. else if (elem.id == "selCAProvince")
  2890. str = L_Register3PlayElementScript12_Text;
  2891. else
  2892. str = L_Register3PlayElementScript13_Text;
  2893. Agent_Speak(str);
  2894. break;
  2895. case "UserZipCode":
  2896. if (g.document.dir == "rtl")
  2897. Agent_GestureAtElement(elem, "Left");
  2898. else
  2899. Agent_GestureAtElement(elem, (IsFarEastLocale() ? "Right" : "TopRight"));
  2900. var L_Register3PlayElementScript14_Text = "Enter your zip or postal code here.";
  2901. Agent_Speak(L_Register3PlayElementScript14_Text);
  2902. break;
  2903. case "UserEmailAddress":
  2904. if (elem.value == "") {
  2905. if (g.document.dir == "rtl")
  2906. Agent_GestureAtElement(elem, "Left");
  2907. else
  2908. Agent_GestureAtElement(elem, "Right");
  2909. var L_Register3PlayElementScript15_Text = "Your e-mail address is optional, but is our preferred method of contacting you.";
  2910. Agent_Speak(L_Register3PlayElementScript15_Text);
  2911. g_bAgentRegister3ShortEmail = true;
  2912. Agent_Play("Explain");
  2913. var L_Register3PlayElementScript16_Text = "If you don't have an e-mail address, leave this box blank.";
  2914. Agent_Speak(L_Register3PlayElementScript16_Text);
  2915. Agent_Play("Blink");
  2916. }
  2917. else if ((elem.value.indexOf("@") < 0) || (elem.value.indexOf(".") < 0)) {
  2918. if (g_strAgentLastFocusID == "UserEmailAddress") {
  2919. Agent_Play("Decline");
  2920. var L_Register3PlayElementScript17_Text = "I'm sorry, this doesn't look like a valid e-mail address.";
  2921. Agent_Speak(L_Register3PlayElementScript17_Text);
  2922. Agent_ExplainEmailAddress();
  2923. if (g.document.dir == "rtl")
  2924. Agent_GestureAtElement(elem, "Left");
  2925. else
  2926. Agent_GestureAtElement(elem, "Right");
  2927. Agent_Play("Alert");
  2928. var L_Register3PlayElementScript18_Text = "If you don't have an e-mail address, leave this field blank.";
  2929. Agent_Speak(L_Register3PlayElementScript18_Text);
  2930. Agent_Play("Blink");
  2931. }
  2932. }
  2933. break;
  2934. case "sharems":
  2935. case "shareoem":
  2936. if (g.document.all("RegChkBxGrp").style.display != "none") {
  2937. Agent_Register3PlayCheckBoxScript(elem.id);
  2938. return;
  2939. }
  2940. else {
  2941. Agent_EncourageNextButton();
  2942. }
  2943. }
  2944. }
  2945. function Agent_ExplainEmailAddress()
  2946. {
  2947. var L_ExplainEmailAddress1_Text = "An e-mail address typically has two parts.";
  2948. Agent_Speak(L_ExplainEmailAddress1_Text);
  2949. var L_ExplainEmailAddress2_Text = "The first part is the account name, which is followed by the @ symbol. The second part is the domain name.";
  2950. Agent_Speak(L_ExplainEmailAddress2_Text);
  2951. var L_ExplainEmailAddress3_Text = "For example, an email address might look like this: %s";
  2952. var re = /%s/i;
  2953. var strEmail = "\\map=\"\"=\"[email protected]\"\\";
  2954. Agent_Speak(L_ExplainEmailAddress3_Text.replace(re, strEmail) + "\\pau=2000\\");
  2955. Agent_Play("RestPose");
  2956. }
  2957. // ************************* MSPrivacy Page (prvcyms.htm)Scripts ************************* //
  2958. function Agent_PrivacyMSAddCommands()
  2959. {
  2960. var L_PrivacyMSCommand1_Text = "&Tell me about this step";
  2961. var L_PrivacyMSCommand2_Text = "Wh&at is a secure server?";
  2962. var L_PrivacyMSCommand3_Text = "What is a coo&kie?";
  2963. var L_PrivacyMSCommand4_Text = "&What should I do next?";
  2964. g_AgentCharacter.Commands.Add("Agent_PrivacyMSAboutThisStep", L_PrivacyMSCommand1_Text);
  2965. g_AgentCharacter.Commands.Add("Agent_PrivacyMSWhatIsSecureServer", L_PrivacyMSCommand2_Text);
  2966. g_AgentCharacter.Commands.Add("Agent_PrivacyMSWhatIsCookie", L_PrivacyMSCommand3_Text);
  2967. g_AgentCharacter.Commands.Add("Agent_PrivacyMSWhatToDoNext", L_PrivacyMSCommand4_Text);
  2968. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  2969. {
  2970. Agent_AddAssistantanceCommand();
  2971. }
  2972. }
  2973. function Agent_PrivacyMSAboutThisStep()
  2974. {
  2975. var L_PrivacyMSAboutThisStep1_Text = "This screen displays Microsoft's privacy statement.";
  2976. Agent_Speak(L_PrivacyMSAboutThisStep1_Text);
  2977. Agent_GestureAtElement(g.privtext,"Left");
  2978. var L_PrivacyMSAboutThisStep2_Text = "You can read through the text here.";
  2979. Agent_Speak(L_PrivacyMSAboutThisStep2_Text);
  2980. Agent_Play("RestPose");
  2981. if (window.parent.document.dir == "rtl")
  2982. {
  2983. Agent_GestureAtElement(g.btnBack, "TopLeft");
  2984. }
  2985. else
  2986. {
  2987. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  2988. }
  2989. var L_PrivacyMSAboutThisStep3_Text = "Then click the Back button to return to the previous screen.";
  2990. Agent_Speak(L_PrivacyMSAboutThisStep3_Text);
  2991. Agent_Play("RestPose");
  2992. }
  2993. function Agent_PrivacyMSWhatIsSecureServer()
  2994. {
  2995. var L_PrivacyMSWhatIsSecureServer1_Text = "A server is a computer that provides shared resources, such as information, to other computers on a network.";
  2996. Agent_Speak(L_PrivacyMSWhatIsSecureServer1_Text);
  2997. 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.";
  2998. Agent_Speak(L_PrivacyMSWhatIsSecureServer2_Text);
  2999. var L_PrivacyMSWhatIsSecureServer3_Text = "For example, when you register with Microsoft, your name and address information are stored on Microsoft's secure registration server.";
  3000. Agent_Speak(L_PrivacyMSWhatIsSecureServer3_Text);
  3001. 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.";
  3002. Agent_Speak(L_PrivacyMSWhatIsSecureServer4_Text);
  3003. }
  3004. function Agent_PrivacyMSWhatIsCookie()
  3005. {
  3006. var L_PrivacyMSWhatIsCookie1_Text = "A cookie is a small data file that is stored on your computer when you visit certain Web sites.";
  3007. Agent_Speak(L_PrivacyMSWhatIsCookie1_Text);
  3008. 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.";
  3009. Agent_Speak(L_PrivacyMSWhatIsCookie2_Text);
  3010. 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.";
  3011. Agent_Speak(L_PrivacyMSWhatIsCookie3_Text);
  3012. var L_PrivacyMSWhatIsCookie4_Text = "So the next time you visit that Web site, you won't have to enter that information again.";
  3013. Agent_Speak(L_PrivacyMSWhatIsCookie4_Text);
  3014. 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.";
  3015. Agent_Speak(L_PrivacyMSWhatIsCookie5_Text);
  3016. var L_PrivacyMSWhatIsCookie6_Text = "So the next time you visit www.microsoft.com, the Web site will recognize you as a registered Windows user.";
  3017. Agent_Speak(L_PrivacyMSWhatIsCookie6_Text);
  3018. }
  3019. function Agent_PrivacyMSWhatToDoNext()
  3020. {
  3021. Agent_GestureAtElement(g.privtext,"Left");
  3022. var L_PrivacyMSWhatToDoNext1_Text = "To see more of the privacy statement, click in this box.";
  3023. Agent_Speak(L_PrivacyMSWhatToDoNext1_Text);
  3024. Agent_Play("RestPose");
  3025. Agent_GestureAtElement(g.privtext,"Right");
  3026. var L_PrivacyMSWhatToDoNext2_Text = "Then use the up and down arrow buttons here to scroll through the privacy statement.";
  3027. Agent_Speak(L_PrivacyMSWhatToDoNext2_Text);
  3028. Agent_Play("RestPose");
  3029. var L_PrivacyMSWhatToDoNext3_Text = "You can also use the Page Down and Page Up keys on your keyboard to move through the text.";
  3030. Agent_Speak(L_PrivacyMSWhatToDoNext3_Text);
  3031. if (window.parent.document.dir == "rtl")
  3032. {
  3033. Agent_GestureAtElement(g.btnBack, "TopLeft");
  3034. }
  3035. else
  3036. {
  3037. Agent_GestureAtElement(g.btnBack, "TopCenterWidth");
  3038. }
  3039. var L_PrivacyMSWhatToDoNext4_Text = "When you are done reading the privacy statement, click the Back button to return to the previous registration screen.";
  3040. Agent_Speak(L_PrivacyMSWhatToDoNext4_Text);
  3041. Agent_Play("RestPose");
  3042. }
  3043. // ************************* RefDial Page (drdyref.htm) Scripts ************************* //
  3044. function Agent_RefDialAddCommands()
  3045. {
  3046. var L_RefDialAddCommands1_Text = "&Tell me about this step";
  3047. var L_RefDialAddCommands2_Text = "&What should I do next?";
  3048. g_AgentCharacter.Commands.Add("Agent_RefDialAboutThisStep", L_RefDialAddCommands1_Text);
  3049. g_AgentCharacter.Commands.Add("Agent_RefDialWhatToDoNext", L_RefDialAddCommands2_Text);
  3050. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3051. {
  3052. Agent_AddAssistantanceCommand();
  3053. }
  3054. }
  3055. function Agent_RefDialAboutThisStep()
  3056. {
  3057. var L_RefDialAboutThisStep1_Text = "At this point, Windows needs to make a toll-free phone call.";
  3058. Agent_Speak(L_RefDialAboutThisStep1_Text);
  3059. var L_RefDialAboutThisStep2_Text = "This will enable you to use your existing Internet account on this computer.";
  3060. Agent_Speak(L_RefDialAboutThisStep2_Text);
  3061. }
  3062. function Agent_RefDialWhatToDoNext()
  3063. {
  3064. Agent_GestureAtElement(g.btnManual,"Left");
  3065. 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.";
  3066. Agent_Speak(L_RefDialWhatToDoNext1_Text);
  3067. Agent_Play("RestPose");
  3068. if (window.parent.document.dir == "rtl")
  3069. {
  3070. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3071. }
  3072. else
  3073. {
  3074. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3075. }
  3076. var L_RefDialWhatToDoNext2_Text = "If you want to select from a list of available ISPs in your area, click Next to continue.";
  3077. Agent_Speak(L_RefDialWhatToDoNext2_Text);
  3078. Agent_Play("RestPose");
  3079. if (window.parent.document.dir == "rtl")
  3080. {
  3081. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3082. }
  3083. else
  3084. {
  3085. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3086. }
  3087. var L_RefDialWhatToDoNext3_Text = "Or click Skip to continue without setting up this computer for Internet access.";
  3088. Agent_Speak(L_RefDialWhatToDoNext3_Text);
  3089. Agent_Play("RestPose");
  3090. }
  3091. // ************************* RefDialing Page (refdial.htm) Scripts ************************* //
  3092. function Agent_RefDialingAddCommands()
  3093. {
  3094. var L_RefDialingAddCommands1_Text = "&Tell me about this step";
  3095. var L_RefDialingAddCommands2_Text = "Wh&at's the bar in the middle of my screen?";
  3096. var L_RefDialingAddCommands3_Text = "&What should I do next?";
  3097. g_AgentCharacter.Commands.Add("Agent_RefDialingAboutThisStep", L_RefDialingAddCommands1_Text);
  3098. g_AgentCharacter.Commands.Add("Agent_RefDialingWhatsThisBar", L_RefDialingAddCommands2_Text);
  3099. g_AgentCharacter.Commands.Add("Agent_RefDialingWhatToDoNext", L_RefDialingAddCommands3_Text);
  3100. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3101. {
  3102. Agent_AddAssistantanceCommand();
  3103. }
  3104. }
  3105. function Agent_RefDialingAboutThisStep()
  3106. {
  3107. 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.";
  3108. Agent_Speak(L_RefDialingAboutThisStep1_Text);
  3109. var L_RefDialingAboutThisStep2_Text = "Please wait...";
  3110. Agent_Speak(L_RefDialingAboutThisStep2_Text);
  3111. if (window.parent.document.dir == "rtl")
  3112. {
  3113. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3114. }
  3115. else
  3116. {
  3117. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3118. }
  3119. var L_RefDialingAboutThisStep3_Text = "Or if you prefer, you can skip this step or go back to the previous screen.";
  3120. Agent_Speak(L_RefDialingAboutThisStep3_Text);
  3121. Agent_Play("RestPose");
  3122. }
  3123. function Agent_RefDialingWhatsThisBar()
  3124. {
  3125. Agent_GestureAtElement(g.tblProg,"Left");
  3126. var L_RefDialingWhatsThisBar1_Text = "That is a progress bar, which shows you where you are in this process.";
  3127. Agent_Speak(L_RefDialingWhatsThisBar1_Text);
  3128. var L_RefDialingWhatsThisBar2_Text = "As information is downloaded from the referral service to your computer, the bar fills up.";
  3129. Agent_Speak(L_RefDialingWhatsThisBar2_Text);
  3130. Agent_Play("RestPose");
  3131. 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.";
  3132. Agent_Speak(L_RefDialingWhatsThisBar2_Text);
  3133. }
  3134. function Agent_RefDialingWhatToDoNext()
  3135. {
  3136. var L_RefDialingWhatToDoNext1_Text = "Please wait while Windows downloads information about ISPs from the Microsoft Referral Service to your computer.";
  3137. Agent_Speak(L_RefDialingWhatToDoNext1_Text);
  3138. var L_RefDialingWhatToDoNext2_Text = "Once the download is complete, the next screen will appear automatically.";
  3139. Agent_Speak(L_RefDialingWhatToDoNext2_Text);
  3140. if (window.parent.document.dir == "rtl")
  3141. {
  3142. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3143. }
  3144. else
  3145. {
  3146. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3147. }
  3148. var L_RefDialingWhatToDoNext3_Text = "If you want to skip this step, click the Skip button.";
  3149. Agent_Speak(L_RefDialingWhatToDoNext3_Text);
  3150. Agent_Play("RestPose");
  3151. }
  3152. // ************************* RegDial Page (regdial.htm) Scripts ************************* //
  3153. function Agent_RegDialAddCommands()
  3154. {
  3155. var L_RegDialAddCommands1_Text = "&Tell me about this step";
  3156. var L_RegDialAddCommands2_Text = "&What should I do next?";
  3157. g_AgentCharacter.Commands.Add("Agent_RegDialAboutThisStep", L_RegDialAddCommands1_Text);
  3158. g_AgentCharacter.Commands.Add("Agent_RegDialWhatToDoNext", L_RegDialAddCommands2_Text);
  3159. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3160. {
  3161. Agent_AddAssistantanceCommand();
  3162. }
  3163. }
  3164. function Agent_RegDialAboutThisStep()
  3165. {
  3166. var L_RegDialAboutThisStep1_Text = "Windows is using your computer to make a toll-free phone call to connect to the registration center.";
  3167. Agent_Speak(L_RegDialAboutThisStep1_Text);
  3168. var L_RegDialAboutThisStep2_Text = "Please wait...";
  3169. Agent_Speak(L_RegDialAboutThisStep2_Text);
  3170. if (window.parent.document.dir == "rtl")
  3171. {
  3172. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3173. }
  3174. else
  3175. {
  3176. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3177. }
  3178. var L_RegDialAboutThisStep3_Text = "Or if you prefer, you can skip this step, or go back to the previous screen.";
  3179. Agent_Speak(L_RegDialAboutThisStep3_Text);
  3180. Agent_Play("RestPose");
  3181. }
  3182. function Agent_RegDialWhatToDoNext()
  3183. {
  3184. var L_RegDialWhatToDoNext1_Text = "Please wait while Windows connects to the registration center.";
  3185. Agent_Speak(L_RegDialWhatToDoNext1_Text);
  3186. var L_RegDialWhatToDoNext2_Text = "Once Windows has connected, it will automatically move to the next screen.";
  3187. Agent_Speak(L_RegDialWhatToDoNext2_Text);
  3188. if (window.parent.document.dir == "rtl")
  3189. {
  3190. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3191. }
  3192. else
  3193. {
  3194. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3195. }
  3196. var L_RegDialWhatToDoNext3_Text = "If you want to skip this step, click the Skip button.";
  3197. Agent_Speak(L_RegDialWhatToDoNext3_Text);
  3198. Agent_Play("RestPose");
  3199. }
  3200. // ************************* MigDial Page (drdymig.htm) Scripts ************************* //
  3201. function Agent_MigDialAddCommands()
  3202. {
  3203. var L_MigDialAddCommands1_Text = "&Tell me about this step";
  3204. var L_MigDialAddCommands2_Text = "&What should I do next";
  3205. g_AgentCharacter.Commands.Add("Agent_MigDialAboutThisStep", L_MigDialAddCommands1_Text);
  3206. g_AgentCharacter.Commands.Add("Agent_MigDialWhatToDoNext", L_MigDialAddCommands2_Text);
  3207. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3208. {
  3209. Agent_AddAssistantanceCommand();
  3210. }
  3211. }
  3212. function Agent_MigDialAboutThisStep()
  3213. {
  3214. var L_MigDialAboutThisStep1_Text = "At this point, Windows needs to make a toll-free phone call.";
  3215. Agent_Speak(L_MigDialAboutThisStep1_Text);
  3216. var L_MigDialAboutThisStep2_Text = "This will enable you to use your existing Internet account on this computer.";
  3217. Agent_Speak(L_MigDialAboutThisStep2_Text);
  3218. }
  3219. function Agent_MigDialWhatToDoNext()
  3220. {
  3221. if (window.parent.document.dir == "rtl")
  3222. {
  3223. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3224. }
  3225. else
  3226. {
  3227. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3228. }
  3229. var L_MigDialWhatToDoNext1_Text = "Click the Next button to begin dialing.";
  3230. Agent_Speak(L_MigDialWhatToDoNext1_Text);
  3231. Agent_Play("RestPose");
  3232. if (window.parent.document.dir == "rtl")
  3233. {
  3234. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3235. }
  3236. else
  3237. {
  3238. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3239. }
  3240. var L_MigDialWhatToDoNext2_Text = "Or, if you want to skip this step, click the Skip button.";
  3241. Agent_Speak(L_MigDialWhatToDoNext2_Text);
  3242. Agent_Play("RestPose");
  3243. }
  3244. // ************************* MigList Page (miglist.htm) Scripts ************************* //
  3245. function Agent_MigListAddCommands()
  3246. {
  3247. // NOTE: If commands are added or removed or command names are changed
  3248. // Please make the necessary change to Agent_OnMigListPreDisplayMenu as well.
  3249. var L_MigListAddCommands1_Text = "&Tell me about this step";
  3250. var L_MigListAddCommands2_Text = "&What should I do next";
  3251. g_AgentCharacter.Commands.Add("Agent_MigListAboutThisStep", L_MigListAddCommands1_Text);
  3252. g_AgentCharacter.Commands.Add("Agent_MigListWhatToDoNext", L_MigListAddCommands2_Text);
  3253. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3254. {
  3255. Agent_AddAssistantanceCommand();
  3256. }
  3257. }
  3258. function Agent_OnMigListPreDisplayMenu()
  3259. {
  3260. var MigListCommands = g_AgentCharacter.Commands;
  3261. if (g.MigListNoOffer.style.display == "inline")
  3262. {
  3263. if (MigListCommands.count >= 3)
  3264. {
  3265. MigListCommands.Remove("Agent_MigListAboutThisStep");
  3266. MigListCommands.Remove("Agent_MigListWhatToDoNext");
  3267. }
  3268. }
  3269. else
  3270. {
  3271. if (MigListCommands.count < 3)
  3272. {
  3273. Agent_MigListAddCommands();
  3274. }
  3275. }
  3276. }
  3277. function Agent_MigListAboutThisStep()
  3278. {
  3279. var L_MigListAboutThisStep1_Text = "On this screen you choose the Internet service provider, or 'ISP' for short, you want to use.";
  3280. Agent_Speak(L_MigListAboutThisStep1_Text);
  3281. var L_MigListAboutThisStep2_Text = "This will enable you to use your existing Internet account on this computer.";
  3282. Agent_Speak(L_MigListAboutThisStep2_Text);
  3283. }
  3284. function Agent_MigListWhatToDoNext()
  3285. {
  3286. Agent_GestureAtElement(g.selISPDropList,"Left");
  3287. var L_MigListWhatToDoNext1_Text = "Select your Internet service provider by clicking it in this list.";
  3288. Agent_Speak(L_MigListWhatToDoNext1_Text);
  3289. Agent_Play("RestPose");
  3290. 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.";
  3291. Agent_Speak(L_MigListWhatToDoNext2_Text);
  3292. var L_MigListWhatToDoNext3_Text = "And contact your ISP for assistance in re-establishing your Internet account on this computer.";
  3293. Agent_Speak(L_MigListWhatToDoNext3_Text);
  3294. if (window.parent.document.dir == "rtl")
  3295. {
  3296. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3297. }
  3298. else
  3299. {
  3300. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3301. }
  3302. var L_MigListWhatToDoNext4_Text = "Then click the Next button to continue.";
  3303. Agent_Speak(L_MigListWhatToDoNext4_Text);
  3304. Agent_Play("RestPose");
  3305. }
  3306. // ************************* MigPage Page (MigPage.htm) Scripts ************************* //
  3307. function Agent_MigPageAddCommands()
  3308. {
  3309. var L_MigPageAddCommands1_Text = "Tell me what to do &next";
  3310. var L_MigPageAddCommands2_Text = "Tell me about this &screen";
  3311. var L_MigPageAddCommands3_Text = "Tell me how to &move to the next screen";
  3312. g_AgentCharacter.Commands.Add("Agent_MigPageCommand_WhatToDoNext", L_MigPageAddCommands1_Text);
  3313. g_AgentCharacter.Commands.Add("Agent_MigPageCommand_AboutThisStep", L_MigPageAddCommands2_Text);
  3314. g_AgentCharacter.Commands.Add("Agent_MigPageCommand_HowToMoveOn", L_MigPageAddCommands3_Text);
  3315. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3316. {
  3317. Agent_AddAssistantanceCommand();
  3318. }
  3319. }
  3320. function Agent_MigPageCommand_WhatToDoNext() {
  3321. var L_MigPageWhatToDoNext1_Text = "When you are done with this page.";
  3322. Agent_Speak(L_MigPageWhatToDoNext1_Text);
  3323. if (window.parent.document.dir == "rtl")
  3324. {
  3325. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3326. }
  3327. else
  3328. {
  3329. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3330. }
  3331. var L_MigPageWhatToDoNext2_Text = "Click the Next button.";
  3332. Agent_Speak(L_MigPageWhatToDoNext2_Text);
  3333. Agent_Play("RestPose");
  3334. }
  3335. function Agent_MigPageCommand_AboutThisStep()
  3336. {
  3337. var L_MigPageAboutThisStep1_Text = "On this screen, we will try to enable your Internet account with your existing service provider.";
  3338. Agent_Speak(L_MigPageAboutThisStep1_Text);
  3339. Agent_Play("Pleased");
  3340. var L_MigPageAboutThisStep2_Text = "Just follow the instructions on this screen provided by your Internet service provider.";
  3341. Agent_Speak(L_MigPageAboutThisStep2_Text);
  3342. }
  3343. function Agent_MigPageCommand_HowToMoveOn()
  3344. {
  3345. var L_MigPageHowToMoveOn1_Text = "When you have completed this screen,";
  3346. Agent_Speak(L_MigPageHowToMoveOn1_Text);
  3347. if (window.parent.document.dir == "rtl")
  3348. {
  3349. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3350. }
  3351. else
  3352. {
  3353. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3354. }
  3355. var L_MigPageHowToMoveOn2_Text = "Click the Next button to continue.";
  3356. Agent_Speak(L_MigPageHowToMoveOn2_Text);
  3357. Agent_Play("RestPose");
  3358. }
  3359. // ************************* ISPDial Page (drdyisp.htm) Scripts ************************* //
  3360. function Agent_ISPDialAddCommands()
  3361. {
  3362. var L_ISPDial1_Text = "&Tell me about this step";
  3363. var L_ISPDial2_Text = "&What should I do next?";
  3364. g_AgentCharacter.Commands.Add("Agent_ISPDialAboutThisStep", L_ISPDial1_Text);
  3365. g_AgentCharacter.Commands.Add("Agent_ISPDialWhatToDoNext", L_ISPDial2_Text);
  3366. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3367. {
  3368. Agent_AddAssistantanceCommand();
  3369. }
  3370. }
  3371. function Agent_ISPDialAboutThisStep()
  3372. {
  3373. var L_ISPDialAboutThisStep1_Text = "At this point, Windows needs to make a toll-free phone call.";
  3374. Agent_Speak(L_ISPDialAboutThisStep1_Text);
  3375. var L_ISPDialAboutThisStep2_Text = "This is to sign you up for your new Internet account.";
  3376. Agent_Speak(L_ISPDialAboutThisStep2_Text);
  3377. var L_ISPDialAboutThisStep3_Text = "Just click the Next button to continue.";
  3378. Agent_Speak(L_ISPDialAboutThisStep3_Text);
  3379. }
  3380. function Agent_ISPDialWhatToDoNext()
  3381. {
  3382. var L_ISPDialWhatToDoNext1_Text = "Click the Next button to continue.";
  3383. Agent_Speak(L_ISPDialWhatToDoNext1_Text);
  3384. var L_ISPDialWhatToDoNext2_Text = "Or click Skip to continue without setting up this computer for Internet access. You can always do it later...";
  3385. Agent_Speak(L_ISPDialWhatToDoNext2_Text);
  3386. }
  3387. // ************************* DialTone Page (dialtone.htm) Scripts ************************* //
  3388. function Agent_DialToneAddCommands()
  3389. {
  3390. var L_DialToneAddCommands1_Text = "&Tell me about this step";
  3391. var L_DialToneAddCommands2_Text = "Wh&at if I need to move my computer?";
  3392. var L_DialToneAddCommands3_Text = "&What should I do next?";
  3393. g_AgentCharacter.Commands.Add("Agent_DialToneAboutThisStep", L_DialToneAddCommands1_Text);
  3394. g_AgentCharacter.Commands.Add("Agent_DialToneHowToMove", L_DialToneAddCommands2_Text);
  3395. g_AgentCharacter.Commands.Add("Agent_DialToneWhatToDoNext", L_DialToneAddCommands3_Text);
  3396. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3397. {
  3398. Agent_AddAssistantanceCommand();
  3399. }
  3400. }
  3401. function Agent_DialToneAboutThisStep()
  3402. {
  3403. var L_DialToneAboutThisStep1_Text = "Windows could not detect a dial tone.";
  3404. Agent_Speak(L_DialToneAboutThisStep1_Text);
  3405. var L_DialToneAboutThisStep2_Text = "There could be several reasons for this.";
  3406. Agent_Speak(L_DialToneAboutThisStep2_Text);
  3407. var L_DialToneAboutThisStep3_Text = "First, check to make sure that the phone cable for your computer is correctly plugged in at each end.";
  3408. Agent_Speak(L_DialToneAboutThisStep3_Text);
  3409. var L_DialToneAboutThisStep4_Text = "Second, make sure that no one is trying to use your phone line right now.";
  3410. Agent_Speak(L_DialToneAboutThisStep4_Text);
  3411. if (window.parent.document.dir == "rtl")
  3412. {
  3413. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3414. }
  3415. else
  3416. {
  3417. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3418. }
  3419. var L_DialToneAboutThisStep5_Text = "Then click the Redial button to try dialing again.";
  3420. Agent_Speak(L_DialToneAboutThisStep5_Text);
  3421. Agent_Play("RestPose");
  3422. }
  3423. function Agent_DialToneHowToMove()
  3424. {
  3425. var L_DialToneHowToMove1_Text = "If you need to move your computer to connect it to your phone line, make sure the power is off.";
  3426. Agent_Speak(L_DialToneHowToMove1_Text);
  3427. var L_DialToneHowToMove2_Text = "When you restart your computer, Windows will resume this process where you left off.";
  3428. Agent_Speak(L_DialToneHowToMove2_Text);
  3429. }
  3430. function Agent_DialToneWhatToDoNext()
  3431. {
  3432. var L_DialToneWhatToDoNext1_Text = "First check your computer's connection to your phone line.";
  3433. Agent_Speak(L_DialToneWhatToDoNext1_Text);
  3434. var L_DialToneWhatToDoNext2_Text = "Next, check to make sure that your phone line is not already in use.";
  3435. Agent_Speak(L_DialToneWhatToDoNext2_Text);
  3436. if (window.parent.document.dir == "rtl")
  3437. {
  3438. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3439. }
  3440. else
  3441. {
  3442. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3443. }
  3444. var L_DialToneWhatToDoNext3_Text = "Then click the Redial button to try dialing again.";
  3445. Agent_Speak(L_DialToneWhatToDoNext3_Text);
  3446. Agent_Play("RestPose");
  3447. if (window.parent.document.dir == "rtl")
  3448. {
  3449. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3450. }
  3451. else
  3452. {
  3453. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3454. }
  3455. var L_DialToneWhatToDoNext4_Text = "Or click the Skip button to continue without registering or activating your copy of Windows XP.";
  3456. Agent_Speak(L_DialToneWhatToDoNext4_Text);
  3457. Agent_Play("RestPose");
  3458. var L_DialToneWhatToDoNext5_Text = "You can always register later.";
  3459. Agent_Speak(L_DialToneWhatToDoNext5_Text);
  3460. }
  3461. // ************************* CnnctErr Page (cnncterr.htm) Scripts ************************* //
  3462. function Agent_CnnctErrAddCommands()
  3463. {
  3464. var L_CnnctErrAddCommands1_Text = "&Tell me about this step";
  3465. var L_CnnctErrAddCommands2_Text = "H&ow do I turn off call waiting?";
  3466. var L_CnnctErrAddCommands3_Text = "&What should I do next?";
  3467. g_AgentCharacter.Commands.Add("Agent_CnnctErrAboutThisStep", L_CnnctErrAddCommands1_Text);
  3468. g_AgentCharacter.Commands.Add("Agent_CnnctErrTurnOffCallWaiting", L_CnnctErrAddCommands2_Text);
  3469. g_AgentCharacter.Commands.Add("Agent_CnnctErrWhatToDoNext", L_CnnctErrAddCommands3_Text);
  3470. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3471. {
  3472. Agent_AddAssistantanceCommand();
  3473. }
  3474. }
  3475. function Agent_CnnctErrAboutThisStep()
  3476. {
  3477. var L_CnnctErrAboutThisStep1_Text = "Your phone call to the registration center was interrupted.";
  3478. Agent_Speak(L_CnnctErrAboutThisStep1_Text);
  3479. var L_CnnctErrAboutThisStep2_Text = "There could be several reasons for this.";
  3480. Agent_Speak(L_CnnctErrAboutThisStep2_Text);
  3481. 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.";
  3482. Agent_Speak(L_CnnctErrAboutThisStep3_Text);
  3483. var L_CnnctErrAboutThisStep4_Text = "Second, someone may have tried to use your phone line while you were connected.";
  3484. Agent_Speak(L_CnnctErrAboutThisStep4_Text);
  3485. var L_CnnctErrAboutThisStep5_Text = "Third, if you have call waiting, you may have been interrupted by an incoming call.";
  3486. Agent_Speak(L_CnnctErrAboutThisStep5_Text);
  3487. Agent_GestureAtElement(g.Callwait,"Left");
  3488. var L_CnnctErrAboutThisStep6_Text = "If your phone service includes call waiting, and you know the number to turn it off, type it here.";
  3489. Agent_Speak(L_CnnctErrAboutThisStep6_Text);
  3490. Agent_Play("RestPose");
  3491. if (window.parent.document.dir == "rtl")
  3492. {
  3493. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3494. }
  3495. else
  3496. {
  3497. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3498. }
  3499. var L_CnnctErrAboutThisStep7_Text = "Then click the Next button to try to reconnect.";
  3500. Agent_Speak(L_CnnctErrAboutThisStep7_Text);
  3501. Agent_Play("RestPose");
  3502. }
  3503. function Agent_CnnctErrTurnOffCallWaiting()
  3504. {
  3505. var L_CnnctErrTurnOffCallWaiting1_Text = "Your telephone service provider can tell you the code to turn off call waiting.";
  3506. Agent_Speak(L_CnnctErrTurnOffCallWaiting1_Text);
  3507. Agent_GestureAtElement(g.Callwait,"Left");
  3508. 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.";
  3509. Agent_Speak(L_CnnctErrTurnOffCallWaiting2_Text);
  3510. Agent_Play("RestPose");
  3511. if (window.parent.document.dir == "rtl")
  3512. {
  3513. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3514. }
  3515. else
  3516. {
  3517. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3518. }
  3519. var L_CnnctErrTurnOffCallWaiting3_Text = "Then click the Next button.";
  3520. Agent_Speak(L_CnnctErrTurnOffCallWaiting3_Text);
  3521. Agent_Play("RestPose");
  3522. }
  3523. function Agent_CnnctErrWhatToDoNext()
  3524. {
  3525. 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.";
  3526. Agent_Speak(L_CnnctErrWhatToDoNext1_Text);
  3527. var L_CnnctErrWhatToDoNext2_Text = "Second, if you have call waiting, turn it off temporarily.";
  3528. Agent_Speak(L_CnnctErrWhatToDoNext2_Text);
  3529. Agent_GestureAtElement(g.Callwait,"Left");
  3530. var L_CnnctErrWhatToDoNext3_Text = "To turn it off, type the code in this box.";
  3531. Agent_Speak(L_CnnctErrWhatToDoNext3_Text);
  3532. Agent_Play("RestPose");
  3533. var L_CnnctErrWhatToDoNext4_Text = "After your call is complete, we'll automatically turn on call waiting again.";
  3534. Agent_Speak(L_CnnctErrWhatToDoNext4_Text);
  3535. if (window.parent.document.dir == "rtl")
  3536. {
  3537. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3538. }
  3539. else
  3540. {
  3541. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3542. }
  3543. var L_CnnctErrWhatToDoNext5_Text = "When you're ready to try again, click the Next button.";
  3544. Agent_Speak(L_CnnctErrWhatToDoNext5_Text);
  3545. Agent_Play("RestPose");
  3546. if (window.parent.document.dir == "rtl")
  3547. {
  3548. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3549. }
  3550. else
  3551. {
  3552. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3553. }
  3554. var L_CnnctErrWhatToDoNext6_Text = "Or click the Skip button to continue without registering.";
  3555. Agent_Speak(L_CnnctErrWhatToDoNext6_Text);
  3556. Agent_Play("RestPose");
  3557. }
  3558. // ************************* HandShake Page (hndshake.htm) Scripts ************************* //
  3559. function Agent_HandShakeAddCommands()
  3560. {
  3561. var L_HandShakeAddCommands1_Text = "&Tell me about this step";
  3562. var L_HandShakeAddCommands2_Text = "&What should I do next?";
  3563. g_AgentCharacter.Commands.Add("Agent_HandShakeAboutThisStep", L_HandShakeAddCommands1_Text);
  3564. g_AgentCharacter.Commands.Add("Agent_HandShakeWhatToDoNext", L_HandShakeAddCommands2_Text);
  3565. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3566. {
  3567. Agent_AddAssistantanceCommand();
  3568. }
  3569. }
  3570. function Agent_HandShakeAboutThisStep()
  3571. {
  3572. var L_HandShakeAboutThisStep1_Text = "Windows was unable to connect to Microsoft at this time.";
  3573. Agent_Speak(L_HandShakeAboutThisStep1_Text);
  3574. var L_HandShakeAboutThisStep2_Text = "This could be because the phone lines are busy, or because your computer was unable to make a phone call.";
  3575. Agent_Speak(L_HandShakeAboutThisStep2_Text);
  3576. var L_HandShakeAboutThisStep3_Text = "Try waiting a few minutes.";
  3577. Agent_Speak(L_HandShakeAboutThisStep3_Text);
  3578. if (window.parent.document.dir == "rtl")
  3579. {
  3580. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3581. }
  3582. else
  3583. {
  3584. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3585. }
  3586. var L_HandShakeAboutThisStep4_Text = "Then click the Redial button to try again.";
  3587. Agent_Speak(L_HandShakeAboutThisStep4_Text);
  3588. Agent_Play("RestPose");
  3589. }
  3590. function Agent_HandShakeWhatToDoNext()
  3591. {
  3592. if (window.parent.document.dir == "rtl")
  3593. {
  3594. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3595. }
  3596. else
  3597. {
  3598. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3599. }
  3600. var L_HandShakeWhatToDoNext1_Text = "Wait a few minutes, and then click the Redial button.";
  3601. Agent_Speak(L_HandShakeWhatToDoNext1_Text);
  3602. Agent_Play("RestPose");
  3603. var L_HandShakeWhatToDoNext2_Text = "If you have already tried this a couple times, contact your computer manufacturer.";
  3604. Agent_Speak(L_HandShakeWhatToDoNext2_Text);
  3605. if (window.parent.document.dir == "rtl")
  3606. {
  3607. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3608. }
  3609. else
  3610. {
  3611. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3612. }
  3613. var L_HandShakeWhatToDoNext3_Text = "Or click the Skip button to continue without registering your computer.";
  3614. Agent_Speak(L_HandShakeWhatToDoNext3_Text);
  3615. Agent_Play("RestPose");
  3616. }
  3617. // ************************* NoAnswer Page (noanswer.htm) Scripts ************************* //
  3618. function Agent_NoAnswerAddCommands()
  3619. {
  3620. var L_NoAnswerAddCommands1_Text = "&Tell me about this step";
  3621. var L_NoAnswerAddCommands2_Text = "Wh&at if the phone number is incorrect?";
  3622. var L_NoAnswerAddCommands3_Text = "&What should I do next?";
  3623. g_AgentCharacter.Commands.Add("Agent_NoAnswerAboutThisStep", L_NoAnswerAddCommands1_Text);
  3624. g_AgentCharacter.Commands.Add("Agent_NoAnswerWhatIfWrongNumber", L_NoAnswerAddCommands2_Text);
  3625. g_AgentCharacter.Commands.Add("Agent_NoAnswerWhatToDoNext", L_NoAnswerAddCommands3_Text);
  3626. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3627. {
  3628. Agent_AddAssistantanceCommand();
  3629. }
  3630. }
  3631. function Agent_NoAnswerAboutThisStep()
  3632. {
  3633. var L_NoAnswerAboutThisStep1_Text = "The phone number we tried to dial did not answer.";
  3634. Agent_Speak(L_NoAnswerAboutThisStep1_Text);
  3635. var L_NoAnswerAboutThisStep2_Text = "Check to see if the number looks correct.";
  3636. Agent_Speak(L_NoAnswerAboutThisStep2_Text);
  3637. if (window.parent.document.dir == "rtl")
  3638. {
  3639. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3640. }
  3641. else
  3642. {
  3643. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3644. }
  3645. var L_NoAnswerAboutThisStep3_Text = "If it looks OK, wait a few minutes, then click the Redial button to try again.";
  3646. Agent_Speak(L_NoAnswerAboutThisStep3_Text);
  3647. Agent_Play("RestPose");
  3648. Agent_GestureAtElement(g.edtPhoneNumber,"Left");
  3649. var L_NoAnswerAboutThisStep4_Text = "However, if the number is incorrect, click here and edit it.";
  3650. Agent_Speak(L_NoAnswerAboutThisStep4_Text);
  3651. Agent_Play("RestPose");
  3652. var L_NoAnswerAboutThisStep5_Text = "And then click the Redial button.";
  3653. Agent_Speak(L_NoAnswerAboutThisStep5_Text);
  3654. Agent_GestureAtElement(g.btnRestore,"Right");
  3655. var L_NoAnswerAboutThisStep6_Text = "You can always restore the original number that Windows tried to dial by clicking the Restore button.";
  3656. Agent_Speak(L_NoAnswerAboutThisStep6_Text);
  3657. Agent_Play("RestPose");
  3658. }
  3659. function Agent_NoAnswerWhatIfWrongNumber()
  3660. {
  3661. var L_NoAnswerWhatIfWrongNumber1_Text = "If the phone number here is not correct, click the text box.";
  3662. Agent_Speak(L_NoAnswerWhatIfWrongNumber1_Text);
  3663. var L_NoAnswerWhatIfWrongNumber2_Text = "A blinking vertical line, known as the insertion point, should appear in the box.";
  3664. Agent_Speak(L_NoAnswerWhatIfWrongNumber2_Text);
  3665. var L_NoAnswerWhatIfWrongNumber3_Text = "Whatever you type will be entered at the insertion point.";
  3666. Agent_Speak(L_NoAnswerWhatIfWrongNumber3_Text);
  3667. 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.";
  3668. Agent_Speak(L_NoAnswerWhatIfWrongNumber4_Text);
  3669. var L_NoAnswerWhatIfWrongNumber5_Text = "And you can use the Delete key to remove characters after the insertion point.";
  3670. Agent_Speak(L_NoAnswerWhatIfWrongNumber5_Text);
  3671. var L_NoAnswerWhatIfWrongNumber6_Text = "Or use the Backspace key to remove characters before the insertion point.";
  3672. Agent_Speak(L_NoAnswerWhatIfWrongNumber6_Text);
  3673. }
  3674. function Agent_NoAnswerWhatToDoNext()
  3675. {
  3676. if (window.parent.document.dir == "rtl")
  3677. {
  3678. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3679. }
  3680. else
  3681. {
  3682. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3683. }
  3684. var L_NoAnswerWhatToDoNext1_Text = "If you've checked the phone number here and it looks correct, click the Redial button to try reconnecting.";
  3685. Agent_Speak(L_NoAnswerWhatToDoNext1_Text);
  3686. Agent_Play("RestPose");
  3687. if (window.parent.document.dir == "rtl")
  3688. {
  3689. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3690. }
  3691. else
  3692. {
  3693. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3694. }
  3695. var L_NoAnswerWhatToDoNext2_Text = "In order to proceed, you need to choose either to reconnect or to skip registering your computer at this time.";
  3696. Agent_Speak(L_NoAnswerWhatToDoNext2_Text);
  3697. Agent_Play("RestPose");
  3698. }
  3699. // ************************* Pulse Page (pulse.htm) Scripts ************************* //
  3700. function Agent_PulseAddCommands()
  3701. {
  3702. var L_PulseAddCommands1_Text = "&Tell me about this step";
  3703. var L_PulseAddCommands2_Text = "&What should I do next?";
  3704. g_AgentCharacter.Commands.Add("Agent_PulseAboutThisStep", L_PulseAddCommands1_Text);
  3705. g_AgentCharacter.Commands.Add("Agent_PulseWhatToDoNext", L_PulseAddCommands2_Text);
  3706. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3707. {
  3708. Agent_AddAssistantanceCommand();
  3709. }
  3710. }
  3711. function Agent_PulseAboutThisStep()
  3712. {
  3713. var L_PulseAboutThisStep1_Text = "Windows could not determine whether your phone uses tone or pulse dialing.";
  3714. Agent_Speak(L_PulseAboutThisStep1_Text);
  3715. var L_PulseAboutThisStep2_Text = "Windows needs to know this before we proceed.";
  3716. Agent_Speak(L_PulseAboutThisStep2_Text);
  3717. Agent_GestureAtElement(g.pulse,"Left");
  3718. var L_PulseAboutThisStep3_Text = "On this screen, you specify your phone line's dialing method.";
  3719. Agent_Speak(L_PulseAboutThisStep3_Text);
  3720. Agent_Play("RestPose");
  3721. }
  3722. function Agent_PulseWhatToDoNext()
  3723. {
  3724. var L_PulseWhatToDoNext1_Text = "Click inside the white circle to the left of the dialing method that your phone line uses.";
  3725. Agent_Speak(L_PulseWhatToDoNext1_Text);
  3726. Agent_GestureAtElement(g.tone,"Left");
  3727. var L_PulseWhatToDoNext2_Text = "Click here if your phone uses tone dialing.";
  3728. Agent_Speak(L_PulseWhatToDoNext2_Text);
  3729. Agent_Play("RestPose");
  3730. Agent_GestureAtElement(g.pulse,"Left");
  3731. var L_PulseWhatToDoNext3_Text = "Or here for pulse dialing.";
  3732. Agent_Speak(L_PulseWhatToDoNext3_Text);
  3733. Agent_Play("RestPose");
  3734. if (window.parent.document.dir == "rtl")
  3735. {
  3736. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3737. }
  3738. else
  3739. {
  3740. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3741. }
  3742. var L_PulseWhatToDoNext4_Text = "Then click the Next button to try dialing again.";
  3743. Agent_Speak(L_PulseWhatToDoNext4_Text);
  3744. Agent_Play("RestPose");
  3745. if (window.parent.document.dir == "rtl")
  3746. {
  3747. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3748. }
  3749. else
  3750. {
  3751. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3752. }
  3753. var L_PulseWhatToDoNext5_Text = "Or click the Skip button to continue without registering your computer.";
  3754. Agent_Speak(L_PulseWhatToDoNext5_Text);
  3755. Agent_Play("RestPose");
  3756. }
  3757. // ------------- TooBusy Page (toobusy.htm) Scripts ----------------- //
  3758. function Agent_TooBusyAddCommands()
  3759. {
  3760. var L_TooBusyAddCommands1_Text = "&Tell me about this step";
  3761. var L_TooBusyAddCommands2_Text = "Wh&at if the phone number is incorrect?";
  3762. var L_TooBusyAddCommands3_Text = "&What should I do next?";
  3763. g_AgentCharacter.Commands.Add("Agent_TooBusyCommand_AboutThisStep", L_TooBusyAddCommands1_Text);
  3764. g_AgentCharacter.Commands.Add("Agent_TooBusyCommand_WhatIfIncorrect", L_TooBusyAddCommands2_Text);
  3765. g_AgentCharacter.Commands.Add("Agent_TooBusyCommand_WhatToDoNext", L_TooBusyAddCommands3_Text);
  3766. Agent_AddAssistantanceCommand();
  3767. }
  3768. function Agent_TooBusyCommand_AboutThisStep()
  3769. {
  3770. var L_TooBusyAboutThisStep1_Text = "The phone number we tried to dial is either incorrect or busy.";
  3771. Agent_Speak(L_TooBusyAboutThisStep1_Text);
  3772. Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right");
  3773. var L_TooBusyAboutThisStep2_Text = "Check to see whether this number looks correct.";
  3774. Agent_Speak(L_TooBusyAboutThisStep2_Text);
  3775. Agent_Play("RestPose");
  3776. var L_TooBusyAboutThisStep3_Text = "If it looks OK, wait a few minutes,";
  3777. Agent_Speak(L_TooBusyAboutThisStep3_Text);
  3778. if (window.parent.document.dir == "rtl")
  3779. {
  3780. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3781. }
  3782. else
  3783. {
  3784. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3785. }
  3786. var L_TooBusyAboutThisStep4_Text = "Then click the Redial button to try dialing again.";
  3787. Agent_Speak(L_TooBusyAboutThisStep4_Text);
  3788. Agent_Play("RestPose");
  3789. }
  3790. function Agent_TooBusyCommand_WhatIfIncorrect()
  3791. {
  3792. Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right");
  3793. var L_TooBusyPhoneNumberIncorrect1_Text = "If the phone number shown here is not correct,";
  3794. Agent_Speak(L_TooBusyPhoneNumberIncorrect1_Text);
  3795. Agent_Play("RestPose");
  3796. Agent_GestureAtElement(g.document.all("cb_altnumber"),"Left");
  3797. var L_TooBusyPhoneNumberIncorrect2_Text = " click this checkbox,";
  3798. Agent_Speak(L_TooBusyPhoneNumberIncorrect2_Text);
  3799. Agent_Play("RestPose");
  3800. Agent_GestureAtElement(g.document.all("edt_altnumber"),"Right");
  3801. var L_TooBusyPhoneNumberIncorrect3_Text = "and enter an alternative number here.";
  3802. Agent_Speak(L_TooBusyPhoneNumberIncorrect3_Text);
  3803. Agent_Play("RestPose");
  3804. Agent_GestureAtElement(g.document.all("cb_outsideline"),"Left");
  3805. var L_TooBusyPhoneNumberIncorrect4_Text = "If you need to dial a number in order to get an outside line, click this checkbox,";
  3806. Agent_Speak(L_TooBusyPhoneNumberIncorrect4_Text);
  3807. Agent_Play("RestPose");
  3808. Agent_GestureAtElement(g.document.all("edt_outsideline"),"Right");
  3809. var L_TooBusyPhoneNumberIncorrect5_Text = "and type the number here.";
  3810. Agent_Speak(L_TooBusyPhoneNumberIncorrect5_Text);
  3811. Agent_Play("RestPose");
  3812. var L_TooBusyPhoneNumberIncorrect6_Text = "If you have call waiting, your outgoing call could be interrupted by an incoming call.";
  3813. Agent_Speak(L_TooBusyPhoneNumberIncorrect6_Text);
  3814. var L_TooBusyPhoneNumberIncorrect7_Text = "It's easy to turn off your phone's call waiting service while you're making this connection.";
  3815. Agent_Speak(L_TooBusyPhoneNumberIncorrect7_Text);
  3816. Agent_GestureAtElement(g.document.all("cb_callwaiting"),"Left");
  3817. var L_TooBusyPhoneNumberIncorrect8_Text = "Just click this checkbox,";
  3818. Agent_Speak(L_TooBusyPhoneNumberIncorrect8_Text);
  3819. Agent_Play("RestPose");
  3820. Agent_GestureAtElement(g.document.all("edt_callwaiting"),"Right");
  3821. var L_TooBusyPhoneNumberIncorrect9_Text = "and type the code here.";
  3822. Agent_Speak(L_TooBusyPhoneNumberIncorrect9_Text);
  3823. Agent_Play("RestPose");
  3824. var L_TooBusyPhoneNumberIncorrect10_Text = "Call waiting will be turned back on after the call is complete.";
  3825. Agent_Speak(L_TooBusyPhoneNumberIncorrect10_Text);
  3826. if (window.parent.document.dir == "rtl")
  3827. {
  3828. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3829. }
  3830. else
  3831. {
  3832. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3833. }
  3834. var L_TooBusyPhoneNumberIncorrect11_Text = "Remember to click the Redial button when you're ready to try again.";
  3835. Agent_Speak(L_TooBusyPhoneNumberIncorrect11_Text);
  3836. Agent_Play("RestPose");
  3837. }
  3838. function Agent_TooBusyCommand_WhatToDoNext()
  3839. {
  3840. Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right");
  3841. var L_TooBusyWhatToDoNext1_Text = "If you've checked the phone number here and it looks correct,";
  3842. Agent_Speak(L_TooBusyWhatToDoNext1_Text);
  3843. Agent_Play("RestPose");
  3844. if (window.parent.document.dir == "rtl")
  3845. {
  3846. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3847. }
  3848. else
  3849. {
  3850. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3851. }
  3852. var L_TooBusyWhatToDoNext2_Text = "click the Redial button to try reconnecting.";
  3853. Agent_Speak(L_TooBusyWhatToDoNext2_Text);
  3854. Agent_Play("RestPose");
  3855. if (window.parent.document.dir == "rtl")
  3856. {
  3857. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  3858. }
  3859. else
  3860. {
  3861. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  3862. }
  3863. var L_TooBusyWhatToDoNext3_Text = "Or click the Skip button to skip this step. You can always register after you finish setting up Windows.";
  3864. Agent_Speak(L_TooBusyWhatToDoNext3_Text);
  3865. Agent_Play("RestPose");
  3866. }
  3867. // ************************* ISPDTone Page (isptone.htm) Scripts ************************* //
  3868. function Agent_ISPDToneAddCommands()
  3869. {
  3870. var L_ISPDToneAddCommands1_Text = "&Tell me about this step";
  3871. var L_ISPDToneAddCommands2_Text = "Wh&at if I need to move my computer";
  3872. var L_ISPDToneAddCommands3_Text = "&What should I do next";
  3873. g_AgentCharacter.Commands.Add("Agent_ISPDToneAboutThisStep", L_ISPDToneAddCommands1_Text);
  3874. g_AgentCharacter.Commands.Add("Agent_ISPDToneHowToMove", L_ISPDToneAddCommands2_Text);
  3875. g_AgentCharacter.Commands.Add("Agent_ISPDToneWhatToDoNext", L_ISPDToneAddCommands3_Text);
  3876. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  3877. {
  3878. Agent_AddAssistantanceCommand();
  3879. }
  3880. }
  3881. function Agent_ISPDToneAboutThisStep()
  3882. {
  3883. var L_ISPDToneAboutThisStep1_Text = "Windows could not detect a dial tone.";
  3884. Agent_Speak(L_ISPDToneAboutThisStep1_Text);
  3885. var L_ISPDToneAboutThisStep2_Text = "There could be several reasons for this.";
  3886. Agent_Speak(L_ISPDToneAboutThisStep2_Text);
  3887. var L_ISPDToneAboutThisStep3_Text = "First, check to make sure that the phone cable for your computer is correctly plugged in at each end.";
  3888. Agent_Speak(L_ISPDToneAboutThisStep3_Text);
  3889. var L_ISPDToneAboutThisStep4_Text = "Second, make sure that no one is trying to use your phone line right now.";
  3890. Agent_Speak(L_ISPDToneAboutThisStep4_Text);
  3891. if (window.parent.document.dir == "rtl")
  3892. {
  3893. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3894. }
  3895. else
  3896. {
  3897. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3898. }
  3899. var L_ISPDToneAboutThisStep5_Text = "Then click the Redial button to try dialing again.";
  3900. Agent_Speak(L_ISPDToneAboutThisStep5_Text);
  3901. Agent_Play("RestPose");
  3902. }
  3903. function Agent_ISPDToneHowToMove()
  3904. {
  3905. var L_ISPDToneHowToMove1_Text = "If you need to move your computer to connect it to your phone line, make sure the power is off.";
  3906. Agent_Speak(L_ISPDToneHowToMove1_Text);
  3907. var L_ISPDToneHowToMove2_Text = "When you restart your computer, Windows will resume this process where you left off.";
  3908. Agent_Speak(L_ISPDToneHowToMove2_Text);
  3909. }
  3910. function Agent_ISPDToneWhatToDoNext()
  3911. {
  3912. var L_ISPDToneWhatToDoNext1_Text = "First check your computer's connection to your phone line.";
  3913. Agent_Speak(L_ISPDToneWhatToDoNext1_Text);
  3914. var L_ISPDToneWhatToDoNext2_Text = "Next, check to make sure that your phone line is not already in use.";
  3915. Agent_Speak(L_ISPDToneWhatToDoNext2_Text);
  3916. if (window.parent.document.dir == "rtl")
  3917. {
  3918. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3919. }
  3920. else
  3921. {
  3922. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3923. }
  3924. var L_ISPDToneWhatToDoNext3_Text = "Then click the Redial button to try dialing again.";
  3925. Agent_Speak(L_ISPDToneWhatToDoNext3_Text);
  3926. Agent_Play("RestPose");
  3927. }
  3928. // ------------- ISPCnErr Page (ispcnerr.htm) Scripts ----------------- //
  3929. function Agent_ISPCnErrAddCommands() {
  3930. var L_ISPCnErrAddCommands1_Text = "Tell me what to do &next";
  3931. var L_ISPCnErrAddCommands2_Text = "Tell me how to &turn off call waiting";
  3932. var L_ISPCnErrAddCommands3_Text = "Tell me about this &screen";
  3933. var L_ISPCnErrAddCommands4_Text = "Tell me how to &move to the next screen";
  3934. g_AgentCharacter.Commands.Add("Agent_ISPCnErrCommand_WhatToDoNext", L_ISPCnErrAddCommands1_Text);
  3935. g_AgentCharacter.Commands.Add("Agent_ISPCnErrCommand_HowToTurnOffCallWaiting", L_ISPCnErrAddCommands2_Text);
  3936. g_AgentCharacter.Commands.Add("Agent_ISPCnErrCommand_AboutThisScreen", L_ISPCnErrAddCommands3_Text);
  3937. g_AgentCharacter.Commands.Add("Agent_ISPCnErrCommand_HowToMoveOn", L_ISPCnErrAddCommands4_Text);
  3938. Agent_AddAssistantanceCommand();
  3939. }
  3940. function Agent_ISPCnErrIntro() {
  3941. }
  3942. function Agent_ISPCnErrCommand_AboutThisScreen()
  3943. {
  3944. var L_ISPCnErrIntro1_Text = "Your phone connection to setup your Internet service was interrupted.";
  3945. Agent_Speak(L_ISPCnErrIntro1_Text);
  3946. Agent_MoveToElement(g.document.all("txtBullet1"),"Left");
  3947. var L_ISPCnErrIntro2_Text = "There could be several reasons for this.";
  3948. Agent_Speak(L_ISPCnErrIntro2_Text);
  3949. 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.";
  3950. Agent_Speak(L_ISPCnErrIntro3_Text);
  3951. var L_ISPCnErrIntro4_Text = "Second, someone may have tried to use your phone line while you were connected.";
  3952. Agent_Speak(L_ISPCnErrIntro4_Text);
  3953. var L_ISPCnErrIntro5_Text = "Third, if you have call waiting, you may have been interrupted by an incoming call.";
  3954. Agent_Speak(L_ISPCnErrIntro5_Text);
  3955. Agent_GestureAtElement(g.document.all("Callwait"),"Left");
  3956. var L_ISPCnErrIntro6_Text = "If your phone service includes call waiting, and you know the number to turn it off, enter it here.";
  3957. Agent_Speak(L_ISPCnErrIntro6_Text);
  3958. Agent_Play("RestPose");
  3959. if (window.parent.document.dir == "rtl")
  3960. {
  3961. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3962. }
  3963. else
  3964. {
  3965. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3966. }
  3967. var L_ISPCnErrIntro7_Text = "Then click the Redial button to try to reconnect.";
  3968. Agent_Speak(L_ISPCnErrIntro7_Text);
  3969. Agent_Play("RestPose");
  3970. }
  3971. function Agent_ISPCnErrCommand_WhatToDoNext()
  3972. {
  3973. Agent_GestureAtElement(g.document.all("txtBullet1"),"Left");
  3974. var L_ISPCnErrWhatToDoNext1_Text = "If you have resolved all these potential causes,";
  3975. Agent_Speak(L_ISPCnErrWhatToDoNext1_Text);
  3976. Agent_Play("RestPose");
  3977. var L_ISPCnErrWhatToDoNext2_Text = "And you want to try reconnecting,";
  3978. Agent_Speak(L_ISPCnErrWhatToDoNext2_Text);
  3979. var L_ISPCnErrWhatToDoNext3_Text = "Click the Redial button to try again.";
  3980. Agent_Speak(L_ISPCnErrWhatToDoNext3_Text);
  3981. }
  3982. function Agent_ISPCnErrCommand_HowToTurnOffCallWaiting()
  3983. {
  3984. Agent_GestureAtElement(g.document.all("Callwait"),"Left");
  3985. var L_ISPCnErrHowToTurnOffCallWaiting1_Text = "If you want to turn off your phone's call waiting service, while you are making this connection,";
  3986. Agent_Speak(L_ISPCnErrHowToTurnOffCallWaiting1_Text);
  3987. var L_ISPCnErrHowToTurnOffCallWaiting2_Text = "Enter that number here.";
  3988. Agent_Speak(L_ISPCnErrHowToTurnOffCallWaiting2_Text);
  3989. Agent_Play("RestPose");
  3990. if (window.parent.document.dir == "rtl")
  3991. {
  3992. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  3993. }
  3994. else
  3995. {
  3996. Agent_GestureAtElement(g.btnNext, "TopLeft");
  3997. }
  3998. var L_ISPCnErrHowToTurnOffCallWaiting3_Text = "Then, click the Redial button.";
  3999. Agent_Speak(L_ISPCnErrHowToTurnOffCallWaiting3_Text);
  4000. Agent_Play("RestPose");
  4001. }
  4002. function Agent_ISPCnErrCommand_HowToMoveOn()
  4003. {
  4004. var L_ISPCnErrHowToMoveOn1_Text = "In order to proceed, you need to choose to reconnect or skip this step.";
  4005. Agent_Speak(L_ISPCnErrHowToMoveOn1_Text);
  4006. if (window.parent.document.dir == "rtl")
  4007. {
  4008. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4009. }
  4010. else
  4011. {
  4012. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4013. }
  4014. var L_ISPCnErrHowToMoveOn2_Text = "Click the Redial button to try reconnecting,";
  4015. Agent_Speak(L_ISPCnErrHowToMoveOn2_Text);
  4016. Agent_Play("RestPose");
  4017. if (window.parent.document.dir == "rtl")
  4018. {
  4019. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  4020. }
  4021. else
  4022. {
  4023. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  4024. }
  4025. var L_ISPCnErrHowToMoveOn3_Text = "Or, click the Skip button to continue without retrying.";
  4026. Agent_Speak(L_ISPCnErrHowToMoveOn3_Text);
  4027. Agent_Play("RestPose");
  4028. }
  4029. function Agent_OnISPCnErrGotFocus(elem) {
  4030. Agent_StopAll();
  4031. var dir = "Left";
  4032. Agent_MoveToElement(elem, dir, 0);
  4033. Agent_StartLookingAtElement(elem, "Look" + dir);
  4034. }
  4035. function Agent_OnISPCnErrKeyDown(elem, keyCode) {
  4036. switch (elem.id) {
  4037. case "Callwait":
  4038. // Is it the Tab (or Shift-Tab) key?
  4039. if (keyCode == 9) {
  4040. // We don't want to start looking in this case
  4041. // because we'll wind up looking at the wrong
  4042. // thing. We will get a GotFocus event as a result
  4043. // of the tab key which will move us along.
  4044. return;
  4045. }
  4046. if (!Agent_IsLooking()) {
  4047. Agent_StopAll();
  4048. Agent_MoveToElement(elem, "Left", 0);
  4049. Agent_StartLookingAtElement(elem, "LookLeft");
  4050. }
  4051. else {
  4052. // We're already looking at it, just keep at it
  4053. Agent_KeepLooking();
  4054. }
  4055. break;
  4056. default:
  4057. return;
  4058. }
  4059. }
  4060. // ------------- ISP HandShake Page (isphdshk.htm) Scripts ----------------- //
  4061. function Agent_ISPHandShakeAddCommands() {
  4062. var L_ISPHandShakeAddCommands1_Text = "Tell me what to do &next";
  4063. var L_ISPHandShakeAddCommands2_Text = "Tell me about this &screen";
  4064. var L_ISPHandShakeAddCommands3_Text = "Tell me how to &move to the next screen";
  4065. g_AgentCharacter.Commands.Add("Agent_ISPHandShakeCommand_WhatToDoNext", L_ISPHandShakeAddCommands1_Text);
  4066. g_AgentCharacter.Commands.Add("Agent_ISPHandShakeCommand_AboutThisScreen", L_ISPHandShakeAddCommands2_Text);
  4067. g_AgentCharacter.Commands.Add("Agent_ISPHandShakeCommand_HowToMoveOn", L_ISPHandShakeAddCommands3_Text);
  4068. Agent_AddAssistantanceCommand();
  4069. }
  4070. function Agent_ISPHandShakeIntro() {
  4071. }
  4072. function Agent_ISPHandShakeCommand_AboutThisScreen()
  4073. {
  4074. var L_ISPHandShakeIntro1_Text = "New account services for the Internet service provider you selected are currently unavailable.";
  4075. Agent_Speak(L_ISPHandShakeIntro1_Text);
  4076. var L_ISPHandShakeIntro2_Text = "I am not sure why.";
  4077. Agent_Speak(L_ISPHandShakeIntro2_Text);
  4078. var L_ISPHandShakeIntro3_Text = "However, you can try waiting a few minutes, then redialing.";
  4079. Agent_Speak(L_ISPHandShakeIntro3_Text);
  4080. Agent_Play("RestPose");
  4081. if (window.parent.document.dir == "rtl")
  4082. {
  4083. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  4084. }
  4085. else
  4086. {
  4087. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  4088. }
  4089. var L_ISPHandShakeIntro4_Text = "Or you can skip setting up your Internet service at this time.";
  4090. Agent_Speak(L_ISPHandShakeIntro4_Text);
  4091. Agent_Play("RestPose");
  4092. }
  4093. function Agent_ISPHandShakeCommand_WhatToDoNext()
  4094. {
  4095. if (window.parent.document.dir == "rtl")
  4096. {
  4097. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4098. }
  4099. else
  4100. {
  4101. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4102. }
  4103. var L_ISPHandShakeWhatToDoNext1_Text = "Wait a few minutes, then click the Redial button.";
  4104. Agent_Speak(L_ISPHandShakeWhatToDoNext1_Text);
  4105. Agent_Play("RestPose");
  4106. var L_ISPHandShakeWhatToDoNext2_Text = "If you have already tried this a couple times,";
  4107. Agent_Speak(L_ISPHandShakeWhatToDoNext2_Text);
  4108. if (window.parent.document.dir == "rtl")
  4109. {
  4110. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  4111. }
  4112. else
  4113. {
  4114. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  4115. }
  4116. var L_ISPHandShakeWhatToDoNext3_Text = "you can click the Skip button to continue without setting up your Internet service at this time.";
  4117. Agent_Speak(L_ISPHandShakeWhatToDoNext3_Text);
  4118. Agent_Play("RestPose");
  4119. }
  4120. function Agent_ISPHandShakeCommand_HowToMoveOn()
  4121. {
  4122. var L_ISPHandShakeHowToMoveOn1_Text = "Wait a few minutes,";
  4123. Agent_Speak(L_ISPHandShakeHowToMoveOn1_Text);
  4124. if (window.parent.document.dir == "rtl")
  4125. {
  4126. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4127. }
  4128. else
  4129. {
  4130. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4131. }
  4132. var L_ISPHandShakeHowToMoveOn2_Text = "then click the Redial button to try connecting again.";
  4133. Agent_Speak(L_ISPHandShakeHowToMoveOn2_Text);
  4134. Agent_Play("RestPose");
  4135. var L_ISPHandShakeHowToMoveOn3_Text = "Or if you have already tried this,";
  4136. Agent_Speak(L_ISPHandShakeHowToMoveOn3_Text);
  4137. if (window.parent.document.dir == "rtl")
  4138. {
  4139. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  4140. }
  4141. else
  4142. {
  4143. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  4144. }
  4145. var L_ISPHandShakeHowToMoveOn4_Text = "You can continue without setting up your Internet service by clicking the Skip button.";
  4146. Agent_Speak(L_ISPHandShakeHowToMoveOn4_Text);
  4147. Agent_Play("RestPose");
  4148. }
  4149. // ------------- ISPIns Page (ispins.htm) Scripts ----------------- //
  4150. function Agent_ISPInsAddCommands() {
  4151. var L_ISPInsAddCommands1_Text = "Tell me what to do &next";
  4152. var L_ISPInsAddCommands2_Text = "Tell me about this &screen";
  4153. var L_ISPInsAddCommands3_Text = "Tell me how to &move to the next screen";
  4154. g_AgentCharacter.Commands.Add("Agent_ISPInsCommand_WhatToDoNext", L_ISPInsAddCommands1_Text);
  4155. g_AgentCharacter.Commands.Add("Agent_ISPInsCommand_AboutThisScreen", L_ISPInsAddCommands2_Text);
  4156. g_AgentCharacter.Commands.Add("Agent_ISPInsCommand_HowToMoveOn", L_ISPInsAddCommands3_Text);
  4157. Agent_AddAssistantanceCommand();
  4158. }
  4159. function Agent_ISPInsIntro() {
  4160. }
  4161. function Agent_ISPInsCommand_AboutThisScreen()
  4162. {
  4163. var L_ISPInsIntro1_Text = "I'm sorry. Windows was unable to connect to the Internet through the service provider you selected.";
  4164. Agent_Speak(L_ISPInsIntro1_Text);
  4165. var L_ISPInsIntro2_Text = "If you experience problems connecting to the Internet with your Web browser or sending and receiving electronic mail,";
  4166. Agent_Speak(L_ISPInsIntro2_Text);
  4167. var L_ISPInsIntro3_Text = "Call your service provider's technical support for assistance.";
  4168. Agent_Speak(L_ISPInsIntro3_Text);
  4169. }
  4170. function Agent_ISPInsCommand_WhatToDoNext()
  4171. {
  4172. var L_ISPInsWhatToDoNext1_Text = "Click the Next button to continue.";
  4173. Agent_Speak(L_ISPInsWhatToDoNext1_Text);
  4174. }
  4175. function Agent_ISPInsCommand_HowToMoveOn()
  4176. {
  4177. if (window.parent.document.dir == "rtl")
  4178. {
  4179. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4180. }
  4181. else
  4182. {
  4183. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4184. }
  4185. var L_ISPInsHowToMoveOn1_Text = "Just click the Next button.";
  4186. Agent_Speak(L_ISPInsHowToMoveOn1_Text);
  4187. Agent_Play("RestPose");
  4188. }
  4189. // ------------- ISPNoAnw Page (ispnoanw.htm) Scripts ----------------- //
  4190. function Agent_ISPNoAnwAddCommands() {
  4191. var L_ISPNoAnwAddCommands1_Text = "Tell me what to do &next";
  4192. var L_ISPNoAnwAddCommands2_Text = "Tell me what to do if the &phone number is incorrect";
  4193. var L_ISPNoAnwAddCommands3_Text = "Tell me about this &screen";
  4194. var L_ISPNoAnwAddCommands4_Text = "Tell me how to &move to the next screen";
  4195. g_AgentCharacter.Commands.Add("Agent_ISPNoAnwCommand_WhatToDoNext", L_ISPNoAnwAddCommands1_Text);
  4196. g_AgentCharacter.Commands.Add("Agent_ISPNoAnwCommand_WhatToDoPhoneNumberIncorrect", L_ISPNoAnwAddCommands2_Text);
  4197. g_AgentCharacter.Commands.Add("Agent_ISPNoAnwCommand_AboutThisScreen", L_ISPNoAnwAddCommands3_Text);
  4198. g_AgentCharacter.Commands.Add("Agent_ISPNoAnwCommand_HowToMoveOn", L_ISPNoAnwAddCommands4_Text);
  4199. Agent_AddAssistantanceCommand();
  4200. }
  4201. function Agent_ISPNoAnwCommand_AboutThisScreen()
  4202. {
  4203. var L_ISPNoAnwIntro1_Text = "The phone number we tried to dial did not answer.";
  4204. Agent_Speak(L_ISPNoAnwIntro1_Text);
  4205. Agent_GestureAtElement(g.document.all("edtPhoneNumber"),"Left");
  4206. var L_ISPNoAnwIntro2_Text = "Check to see if the number looks correct.";
  4207. Agent_Speak(L_ISPNoAnwIntro2_Text);
  4208. Agent_Play("RestPose");
  4209. var L_ISPNoAnwIntro3_Text = "If it looks OK, wait a few minutes,";
  4210. Agent_Speak(L_ISPNoAnwIntro3_Text);
  4211. var L_ISPNoAnwIntro4_Text = "Then click the Redial button to try again.";
  4212. Agent_Speak(L_ISPNoAnwIntro4_Text);
  4213. var L_ISPNoAnwIntro5_Text = "However, if the number is incorrect,";
  4214. Agent_Speak(L_ISPNoAnwIntro5_Text);
  4215. Agent_GestureAtElement(g.document.all("edtPhoneNumber"),"Left");
  4216. var L_ISPNoAnwIntro6_Text = "Click here and edit it.";
  4217. Agent_Speak(L_ISPNoAnwIntro6_Text);
  4218. Agent_Play("RestPose");
  4219. var L_ISPNoAnwIntro7_Text = "And then click the Redial button.";
  4220. Agent_Speak(L_ISPNoAnwIntro7_Text);
  4221. }
  4222. function Agent_ISPNoAnwCommand_WhatToDoNext()
  4223. {
  4224. Agent_GestureAtElement(g.document.all("edtPhoneNumber"),"Left");
  4225. var L_ISPNoAnwWhatToDoNext1_Text = "If you've checked the phone number here and it looks correct,";
  4226. Agent_Speak(L_ISPNoAnwWhatToDoNext1_Text);
  4227. Agent_Play("RestPose");
  4228. var L_ISPNoAnwWhatToDoNext2_Text = "And you are ready to try reconnecting,";
  4229. Agent_Speak(L_ISPNoAnwWhatToDoNext2_Text);
  4230. if (window.parent.document.dir == "rtl")
  4231. {
  4232. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4233. }
  4234. else
  4235. {
  4236. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4237. }
  4238. var L_ISPNoAnwWhatToDoNext3_Text = "Click the Redial button.";
  4239. Agent_Speak(L_ISPNoAnwWhatToDoNext3_Text);
  4240. Agent_Play("RestPose");
  4241. }
  4242. function Agent_ISPNoAnwCommand_WhatToDoPhoneNumberIncorrect()
  4243. {
  4244. Agent_GestureAtElement(g.document.all("edtPhoneNumber"),"Left");
  4245. var L_ISPNoAnwPhoneNumberIncorrect1_Text = "If the phone number here is not correct,";
  4246. Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect1_Text);
  4247. var L_ISPNoAnwPhoneNumberIncorrect2_Text = "Click the text box.";
  4248. Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect2_Text);
  4249. Agent_Play("RestPose");
  4250. var L_ISPNoAnwPhoneNumberIncorrect3_Text = "A blinking vertical line, known as the insertion point, should appear in the box.";
  4251. Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect3_Text);
  4252. var L_ISPNoAnwPhoneNumberIncorrect4_Text = "Whatever you type will be entered at the insertion point.";
  4253. Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect4_Text);
  4254. 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.";
  4255. Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect5_Text);
  4256. var L_ISPNoAnwPhoneNumberIncorrect6_Text = "And you can use the Delete key to remove characters after the insertion point.";
  4257. Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect6_Text);
  4258. var L_ISPNoAnwPhoneNumberIncorrect7_Text = "Or use the Backspace key to remove characters before the insertion point.";
  4259. Agent_Speak(L_ISPNoAnwPhoneNumberIncorrect7_Text);
  4260. }
  4261. function Agent_ISPNoAnwCommand_HowToMoveOn()
  4262. {
  4263. var L_ISPNoAnwHowToMoveOn1_Text = "In order to proceed, you need to choose either to reconnect or to skip setting your Internet service.";
  4264. Agent_Speak(L_ISPNoAnwHowToMoveOn1_Text);
  4265. if (window.parent.document.dir == "rtl")
  4266. {
  4267. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4268. }
  4269. else
  4270. {
  4271. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4272. }
  4273. var L_ISPNoAnwHowToMoveOn2_Text = "Click the Redial button to try reconnecting.";
  4274. Agent_Speak(L_ISPNoAnwHowToMoveOn2_Text);
  4275. Agent_Play("RestPose");
  4276. if (window.parent.document.dir == "rtl")
  4277. {
  4278. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  4279. }
  4280. else
  4281. {
  4282. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  4283. }
  4284. var L_ISPNoAnwHowToMoveOn3_Text = "Or, click the Skip button to continue without setting up Internet service.";
  4285. Agent_Speak(L_ISPNoAnwHowToMoveOn3_Text);
  4286. Agent_Play("RestPose");
  4287. }
  4288. function Agent_OnISPNoAnwGotFocus(elem) {
  4289. Agent_StopAll();
  4290. var dir = "Left";
  4291. Agent_MoveToElement(elem, dir, 0);
  4292. Agent_StartLookingAtElement(elem, "Look" + dir);
  4293. }
  4294. function Agent_OnISPNoAnwKeyDown(elem, keyCode) {
  4295. switch (elem.id) {
  4296. case "edtPhoneNumber":
  4297. // Is it the Tab (or Shift-Tab) key?
  4298. if (keyCode == 9) {
  4299. // We don't want to start looking in this case
  4300. // because we'll wind up looking at the wrong
  4301. // thing. We will get a GotFocus event as a result
  4302. // of the tab key which will move us along.
  4303. return;
  4304. }
  4305. if (!Agent_IsLooking()) {
  4306. Agent_StopAll();
  4307. Agent_MoveToElement(elem, "Left", 0);
  4308. Agent_StartLookingAtElement(elem, "LookLeft");
  4309. }
  4310. else {
  4311. // We're already looking at it, just keep at it
  4312. Agent_KeepLooking();
  4313. }
  4314. break;
  4315. default:
  4316. return;
  4317. }
  4318. }
  4319. // ------------- ISPPhBsy Page (ispphbsy.htm) Scripts ----------------- //
  4320. function Agent_ISPPhBsyAddCommands() {
  4321. var L_ISPPhBsyAddCommands1_Text = "Tell me what to do &next";
  4322. var L_ISPPhBsyAddCommands2_Text = "Tell me what to do if the &phone number is incorrect";
  4323. var L_ISPPhBsyAddCommands3_Text = "&Tell me about this step";
  4324. g_AgentCharacter.Commands.Add("Agent_ISPPhBsyCommand_WhatToDoNext", L_ISPPhBsyAddCommands1_Text);
  4325. g_AgentCharacter.Commands.Add("Agent_ISPPhBsyCommand_WhatToDoPhoneNumberIncorrect", L_ISPPhBsyAddCommands2_Text);
  4326. g_AgentCharacter.Commands.Add("Agent_ISPPhBsyCommand_AboutThisScreen", L_ISPPhBsyAddCommands3_Text);
  4327. Agent_AddAssistantanceCommand();
  4328. }
  4329. function Agent_ISPPhBsyIntro() {
  4330. }
  4331. function Agent_ISPPhBsyCommand_AboutThisScreen()
  4332. {
  4333. var L_ISPPhBsyIntro1_Text = "Windows was unable to connect with the Internet service provider you selected.";
  4334. Agent_Speak(L_ISPPhBsyIntro1_Text);
  4335. var L_ISPPhBsyIntro2_Text ="The phone line might be busy, or the Internet service provider may be experiencing technical problems.";
  4336. Agent_Speak(L_ISPPhBsyIntro2_Text);
  4337. Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right");
  4338. var L_ISPPhBsyIntro3_Text = "Check to see if the number looks correct.";
  4339. Agent_Speak(L_ISPPhBsyIntro3_Text);
  4340. Agent_Play("RestPose");
  4341. var L_ISPPhBsyIntro4_Text = "If it looks OK, wait a few minutes,";
  4342. Agent_Speak(L_ISPPhBsyIntro4_Text);
  4343. if (window.parent.document.dir == "rtl")
  4344. {
  4345. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4346. }
  4347. else
  4348. {
  4349. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4350. }
  4351. var L_ISPPhBsyIntro5_Text = "Then click the Redial button to try dialing again.";
  4352. Agent_Speak(L_ISPPhBsyIntro5_Text);
  4353. Agent_Play("RestPose");
  4354. var L_ISPPhBsyIntro6_Text = "However, if the number is incorrect,";
  4355. Agent_Speak(L_ISPPhBsyIntro6_Text);
  4356. Agent_GestureAtElement(g.document.all("DialRuleYes"),"Left");
  4357. var L_ISPPhBsyIntro7_Text = "Click here to try an alternative number in the phone book.";
  4358. Agent_Speak(L_ISPPhBsyIntro7_Text);
  4359. Agent_Play("RestPose");
  4360. var L_ISPPhBsyIntro8_Text = "And then click the Redial button.";
  4361. Agent_Speak(L_ISPPhBsyIntro8_Text);
  4362. }
  4363. function Agent_ISPPhBsyCommand_WhatToDoNext()
  4364. {
  4365. Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right");
  4366. var L_ISPPhBsyWhatToDoNext1_Text = "If you've checked the phone number and it looks OK,";
  4367. Agent_Speak(L_ISPPhBsyWhatToDoNext1_Text);
  4368. Agent_Play("RestPose");
  4369. Agent_GestureAtElement(g.document.all("DialRuleYes"),"Left");
  4370. var L_ISPPhBsyWhatToDoNext2_Text = "or you've chosen to dial an alternative number,";
  4371. Agent_Speak(L_ISPPhBsyWhatToDoNext2_Text);
  4372. Agent_Play("RestPose");
  4373. if (window.parent.document.dir == "rtl")
  4374. {
  4375. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4376. }
  4377. else
  4378. {
  4379. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4380. }
  4381. var L_ISPPhBsyWhatToDoNext4_Text = "Click the Redial button to try reconnecting.";
  4382. Agent_Speak(L_ISPPhBsyWhatToDoNext4_Text);
  4383. Agent_Play("RestPose");
  4384. }
  4385. function Agent_ISPPhBsyCommand_WhatToDoPhoneNumberIncorrect()
  4386. {
  4387. Agent_GestureAtElement(g.document.all("spanDisplayNumber"),"Right");
  4388. var L_ISPPhBsyPhoneNumberIncorrect1_Text = "If the phone number here is not correct,";
  4389. Agent_Speak(L_ISPPhBsyPhoneNumberIncorrect1_Text);
  4390. Agent_Play("RestPose");
  4391. Agent_GestureAtElement(g.document.all("DialRuleYes"),"Left");
  4392. var L_ISPPhBsyPhoneNumberIncorrect2_Text = "Click this radio button to try an alternative number in the phone book.";
  4393. Agent_Speak(L_ISPPhBsyPhoneNumberIncorrect2_Text);
  4394. Agent_Play("RestPose");
  4395. if (window.parent.document.dir == "rtl")
  4396. {
  4397. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4398. }
  4399. else
  4400. {
  4401. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4402. }
  4403. var L_ISPPhBsyPhoneNumberIncorrect3_Text = "Click the Redial button when you are ready to try reconnecting.";
  4404. Agent_Speak(L_ISPPhBsyPhoneNumberIncorrect3_Text);
  4405. Agent_Play("RestPose");
  4406. }
  4407. function Agent_OnISPPhBsyGotFocus(elem) {
  4408. Agent_StopAll();
  4409. var dir = "Left";
  4410. Agent_MoveToElement(elem, dir, 0);
  4411. Agent_StartLookingAtElement(elem, "Look" + dir);
  4412. }
  4413. function Agent_OnISPPhBsyKeyDown(elem, keyCode) {
  4414. switch (elem.id) {
  4415. case "edtPhoneNumber":
  4416. // Is it the Tab (or Shift-Tab) key?
  4417. if (keyCode == 9) {
  4418. // We don't want to start looking in this case
  4419. // because we'll wind up looking at the wrong
  4420. // thing. We will get a GotFocus event as a result
  4421. // of the tab key which will move us along.
  4422. return;
  4423. }
  4424. if (!Agent_IsLooking()) {
  4425. Agent_StopAll();
  4426. Agent_MoveToElement(elem, "Left", 0);
  4427. Agent_StartLookingAtElement(elem, "LookLeft");
  4428. }
  4429. else {
  4430. // We're already looking at it, just keep at it
  4431. Agent_KeepLooking();
  4432. }
  4433. break;
  4434. default:
  4435. return;
  4436. }
  4437. }
  4438. // ************************* Finish Page (fini.htm) Scripts ************************* //
  4439. function Agent_FinishAddCommands() {
  4440. var L_FinishAddCommands1_Text = "&Tell me about this step";
  4441. var L_FinishAddCommands2_Text = "H&ow do I register from the desktop?";
  4442. var L_FinishAddCommands3_Text = "How &do I activate Windows from the desktop?";
  4443. var L_FinishAddCommands4_Text = "How do I &access the Internet?";
  4444. var L_FinishAddCommands5_Text = "&What should I do next?";
  4445. g_AgentCharacter.Commands.Add("Agent_FinishAboutThisStep", L_FinishAddCommands1_Text);
  4446. if (!g_IsMSRegistrationSuccessful)
  4447. {
  4448. g_AgentCharacter.Commands.Add("Agent_FinishHowToRegister", L_FinishAddCommands2_Text);
  4449. }
  4450. if (!g_IsActivationSuccessful)
  4451. {
  4452. g_AgentCharacter.Commands.Add("Agent_FinishHowToActivate", L_FinishAddCommands3_Text);
  4453. }
  4454. if (!(bHasSignup || ConnectedToInternetEx(false)))
  4455. {
  4456. g_AgentCharacter.Commands.Add("Agent_FinishHowToAccessInternet", L_FinishAddCommands4_Text);
  4457. }
  4458. g_AgentCharacter.Commands.Add("Agent_FinishWhatToDoNext", L_FinishAddCommands5_Text);
  4459. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  4460. {
  4461. Agent_AddAssistantanceCommand();
  4462. }
  4463. }
  4464. function Agent_FinishAboutThisStep()
  4465. {
  4466. var L_FinishAboutThisStep1_Text = "Congratulations! You've completed this process!";
  4467. Agent_Speak(L_FinishAboutThisStep1_Text);
  4468. if (window.parent.document.dir == "rtl")
  4469. {
  4470. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4471. }
  4472. else
  4473. {
  4474. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4475. }
  4476. var L_FinishAboutThisStep2_Text = "To start using Windows now, just click the Finish button.";
  4477. Agent_Speak(L_FinishAboutThisStep2_Text);
  4478. Agent_Play("RestPose");
  4479. 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.";
  4480. Agent_Speak(L_FinishAboutThisStep3_Text);
  4481. }
  4482. function Agent_FinishHowToRegister()
  4483. {
  4484. 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.";
  4485. Agent_Speak(L_FinishHowToRegister1_Text);
  4486. 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.";
  4487. Agent_Speak(L_FinishHowToRegister2_Text);
  4488. }
  4489. function Agent_FinishHowToActivate()
  4490. {
  4491. var L_FinishHowToActivate1_Text = "If you skipped activation earlier in this process, a small reminder will appear on the Windows desktop every few days.";
  4492. Agent_Speak(L_FinishHowToActivate1_Text);
  4493. var L_FinishHowToActivate2_Text = "You must activate Windows within the specified activation period in order to continue using it.";
  4494. Agent_Speak(L_FinishHowToActivate2_Text);
  4495. 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.";
  4496. Agent_Speak(L_FinishHowToActivate3_Text);
  4497. 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.";
  4498. Agent_Speak(L_FinishHowToActivate4_Text);
  4499. }
  4500. function Agent_FinishHowToAccessInternet()
  4501. {
  4502. 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.";
  4503. Agent_Speak(L_FinishHowToAccessInternet1_Text);
  4504. var L_FinishHowToAccessInternet2_Text = "If this computer isn't set up for Internet access, the Internet Connection Wizard will appear.";
  4505. Agent_Speak(L_FinishHowToAccessInternet2_Text);
  4506. var L_FinishHowToAccessInternet3_Text = "Follow the steps in this wizard to connect to the Internet.";
  4507. Agent_Speak(L_FinishHowToAccessInternet3_Text);
  4508. }
  4509. function Agent_FinishWhatToDoNext()
  4510. {
  4511. var L_FinishWhatToDoNext1_Text = "You've finished setting up your computer with Microsoft Windows XP!";
  4512. Agent_Speak(L_FinishWhatToDoNext1_Text);
  4513. if (window.parent.document.dir == "rtl")
  4514. {
  4515. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4516. }
  4517. else
  4518. {
  4519. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4520. }
  4521. var L_FinishWhatToDoNext2_Text = "Just click the Finish button.";
  4522. Agent_Speak(L_FinishWhatToDoNext2_Text);
  4523. Agent_Play("RestPose");
  4524. 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.";
  4525. Agent_Speak(L_FinishWhatToDoNext3_Text);
  4526. var L_FinishWhatToDoNext4_Text = "And enjoy using Windows Windows XP!";
  4527. Agent_Speak(L_FinishWhatToDoNext4_Text);
  4528. }
  4529. // --------------- Mouse Tutorial Page (mouse.htm)Scripts ---------------- //
  4530. function Agent_MouseTutAddCommands() {
  4531. var L_MouseTutMenuCommand1_Text = "Tell me what to do &next";
  4532. var L_MouseTutMenuCommand2_Text = "Tell me about this &screen";
  4533. var L_MouseTutMenuCommand3_Text = "Tell me how to &move to the next screen";
  4534. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  4535. // MUST be equal to the name of the function that handles the
  4536. // command.
  4537. g_AgentCharacter.Commands.Add("Agent_OnMouseTutTellMeWhatToDoNext", L_MouseTutMenuCommand1_Text);
  4538. g_AgentCharacter.Commands.Add("Agent_OnMouseTutTellMeAboutThisScreen", L_MouseTutMenuCommand2_Text);
  4539. g_AgentCharacter.Commands.Add("Agent_OnMouseTutTellMeHowToMoveToNextScreen", L_MouseTutMenuCommand3_Text);
  4540. Agent_AddAssistantanceCommand();
  4541. }
  4542. function Agent_OnMouseTutTellMeWhatToDoNext() {
  4543. if (window.parent.document.dir == "rtl")
  4544. {
  4545. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4546. }
  4547. else
  4548. {
  4549. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4550. }
  4551. var L_MouseTutIntroTellMeWhatToDoNext1_Text = "To begin, click the Tutorial button.";
  4552. Agent_Speak(L_MouseTutIntroTellMeWhatToDoNext1_Text);
  4553. Agent_Play("RestPose");
  4554. }
  4555. function Agent_OnMouseTutTellMeAboutThisScreen()
  4556. {
  4557. var L_MouseTutTellMeAboutThisScreen1_Text = "This is the beginning of a set of screens to help you learn how to use your computer's mouse.";
  4558. Agent_Speak(L_MouseTutTellMeAboutThisScreen1_Text);
  4559. var L_MouseTutTellMeAboutThisScreen2_Text = "You can choose to go through this tutorial,";
  4560. Agent_Speak(L_MouseTutTellMeAboutThisScreen2_Text);
  4561. var L_MouseTutTellMeAboutThisScreen3_Text = "Or you can skip it if you are already comfortable with using the mouse.";
  4562. Agent_Speak(L_MouseTutTellMeAboutThisScreen3_Text);
  4563. }
  4564. function Agent_OnMouseTutTellMeHowToMoveToNextScreen()
  4565. {
  4566. if (window.parent.document.dir == "rtl")
  4567. {
  4568. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4569. }
  4570. else
  4571. {
  4572. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4573. }
  4574. var L_MouseTutIntroTellMeHowToMoveToNextScreen1_Text = "To begin, click the Tutorial button.";
  4575. Agent_Speak(L_MouseTutIntroTellMeHowToMoveToNextScreen1_Text);
  4576. Agent_Play("RestPose");
  4577. if (window.parent.document.dir == "rtl")
  4578. {
  4579. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  4580. }
  4581. else
  4582. {
  4583. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  4584. }
  4585. var L_MouseTutIntroTellMeHowToMoveToNextScreen2_Text = "Or click Next to skip this tutorial.";
  4586. Agent_Speak(L_MouseTutIntroTellMeHowToMoveToNextScreen2_Text);
  4587. Agent_Play("RestPose");
  4588. }
  4589. // --------------- mouse_a.htm Page Scripts ---------------- //
  4590. function Agent_MouseTutAAddCommands() {
  4591. var L_MouseTutAMenuCommand1_Text = "Tell me what to do &next";
  4592. var L_MouseTutAMenuCommand2_Text = "Tell me about this &screen";
  4593. var L_MouseTutAMenuCommand3_Text = "Tell me how to &move to the next screen";
  4594. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  4595. // MUST be equal to the name of the function that handles the
  4596. // command.
  4597. g_AgentCharacter.Commands.Add("Agent_OnMouseTutATellMeWhatToDoNext", L_MouseTutAMenuCommand1_Text);
  4598. g_AgentCharacter.Commands.Add("Agent_OnMouseTutATellMeAboutThisScreen", L_MouseTutAMenuCommand2_Text);
  4599. g_AgentCharacter.Commands.Add("Agent_OnMouseTutATellMeHowToMoveToNextScreen", L_MouseTutAMenuCommand3_Text);
  4600. Agent_AddAssistantanceCommand();
  4601. }
  4602. function Agent_OnMouseTutATellMeWhatToDoNext()
  4603. {
  4604. var L_MouseTutAWhatToDoNext1_Text = "Try moving the mouse around and see how it moves the pointer on your screen.";
  4605. Agent_Speak(L_MouseTutAWhatToDoNext1_Text);
  4606. var L_MouseTutAWhatToDoNext2_Text = "Make sure you move across a flat surface.";
  4607. Agent_Speak(L_MouseTutAWhatToDoNext2_Text);
  4608. }
  4609. function Agent_OnMouseTutATellMeAboutThisScreen()
  4610. {
  4611. if (g.document.dir == "rtl")
  4612. Agent_GestureAtElement(g.document.all("image"), "LeftCenter");
  4613. else
  4614. Agent_GestureAtElement(g.document.all("image"), "RightCenter");
  4615. var L_MouseTutATellMeAboutThisScreen1_Text = "This screen shows you how to use your mouse to move the pointer on the screen.";
  4616. Agent_Speak(L_MouseTutATellMeAboutThisScreen1_Text);
  4617. Agent_Play("RestPose");
  4618. var L_MouseTutATellMeAboutThisScreen2_Text = "Just move the mouse left or right, or toward or away from your computer.";
  4619. Agent_Speak(L_MouseTutATellMeAboutThisScreen2_Text);
  4620. var L_MouseTutATellMeAboutThisScreen3_Text = "Try it yourself!";
  4621. Agent_Speak(L_MouseTutATellMeAboutThisScreen3_Text);
  4622. }
  4623. function Agent_OnMouseTutATellMeHowToMoveToNextScreen() {
  4624. MouseTut_HowToMoveToNextScreen();
  4625. }
  4626. // --------------- mouse_b.htm Page Scripts ---------------- //
  4627. function Agent_MouseTutBAddCommands() {
  4628. var L_MouseTutBMenuCommand1_Text = "Tell me what to do &next";
  4629. var L_MouseTutBMenuCommand2_Text = "Tell me about this &screen";
  4630. var L_MouseTutBMenuCommand3_Text = "Tell me how to &move to the next screen";
  4631. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  4632. // MUST be equal to the name of the function that handles the
  4633. // command.
  4634. g_AgentCharacter.Commands.Add("Agent_OnMouseTutBTellMeWhatToDoNext", L_MouseTutBMenuCommand1_Text);
  4635. g_AgentCharacter.Commands.Add("Agent_OnMouseTutBTellMeAboutThisScreen", L_MouseTutBMenuCommand2_Text);
  4636. g_AgentCharacter.Commands.Add("Agent_OnMouseTutBTellMeHowToMoveToNextScreen", L_MouseTutBMenuCommand3_Text);
  4637. Agent_AddAssistantanceCommand();
  4638. }
  4639. function Agent_OnMouseTutBTellMeWhatToDoNext()
  4640. {
  4641. var L_MouseTutBWhatToDoNext1_Text = "Try picking up your mouse and moving it to another location.";
  4642. Agent_Speak(L_MouseTutBWhatToDoNext1_Text);
  4643. var L_MouseTutBWhatToDoNext2_Text = "Then put it back down and move it around again.";
  4644. Agent_Speak(L_MouseTutBWhatToDoNext2_Text);
  4645. }
  4646. function Agent_OnMouseTutBTellMeAboutThisScreen()
  4647. {
  4648. var L_MouseTutBTellMeAboutThisScreen1_Text = "This screen shows you how to adjust the mouse if you run out of room.";
  4649. Agent_Speak(L_MouseTutBTellMeAboutThisScreen1_Text);
  4650. if (g.document.dir == "rtl")
  4651. Agent_GestureAtElement(g.document.all("image"), "LeftCenter");
  4652. else
  4653. Agent_GestureAtElement(g.document.all("image"), "RightCenter");
  4654. var L_MouseTutBTellMeAboutThisScreen2_Text = "Just pick the mouse up and move it to a more comfortable spot.";
  4655. Agent_Speak(L_MouseTutBTellMeAboutThisScreen2_Text);
  4656. Agent_Play("RestPose");
  4657. var L_MouseTutBTellMeAboutThisScreen3_Text = "When you put it back down and move it, the pointer follows your movements.";
  4658. Agent_Speak(L_MouseTutBTellMeAboutThisScreen3_Text);
  4659. var L_MouseTutBTellMeAboutThisScreen4_Text = "Notice that the pointer moves only when you move the mouse across a flat surface!";
  4660. Agent_Speak(L_MouseTutBTellMeAboutThisScreen4_Text);
  4661. }
  4662. function Agent_OnMouseTutBTellMeHowToMoveToNextScreen() {
  4663. MouseTut_HowToMoveToNextScreen();
  4664. }
  4665. // --------------- mouse_c.htm Page Scripts ---------------- //
  4666. function Agent_MouseTutCAddCommands() {
  4667. var L_MouseTutCMenuCommand1_Text = "Tell me what to do &next";
  4668. var L_MouseTutCMenuCommand2_Text = "Tell me about this &screen";
  4669. var L_MouseTutCMenuCommand3_Text = "Tell me how to &move to the next screen";
  4670. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  4671. // MUST be equal to the name of the function that handles the
  4672. // command.
  4673. g_AgentCharacter.Commands.Add("Agent_OnMouseTutCTellMeWhatToDoNext", L_MouseTutCMenuCommand1_Text);
  4674. g_AgentCharacter.Commands.Add("Agent_OnMouseTutCTellMeAboutThisScreen", L_MouseTutCMenuCommand2_Text);
  4675. g_AgentCharacter.Commands.Add("Agent_OnMouseTutCTellMeHowToMoveToNextScreen", L_MouseTutCMenuCommand3_Text);
  4676. Agent_AddAssistantanceCommand();
  4677. }
  4678. function Agent_MouseTutCIntro() {
  4679. // no code for now
  4680. }
  4681. function Agent_OnMouseTutCTellMeWhatToDoNext()
  4682. {
  4683. var L_MouseTutCWhatToDoNext1_Text = "Try moving the mouse to move the pointer over the graphic buttons on this screen.";
  4684. Agent_Speak(L_MouseTutCWhatToDoNext1_Text);
  4685. }
  4686. function Agent_OnMouseTutCTellMeAboutThisScreen()
  4687. {
  4688. var L_MouseTutCTellMeAboutThisScreen1_Text = "This screen enables you to practice moving the pointer with your mouse.";
  4689. Agent_Speak(L_MouseTutCTellMeAboutThisScreen1_Text);
  4690. Agent_GestureAtElement(g.document.all("toolbar"), "LeftCenter");
  4691. var L_MouseTutCTellMeAboutThisScreen2_Text = "Use your mouse to move the pointer over these graphic buttons.";
  4692. Agent_Speak(L_MouseTutCTellMeAboutThisScreen2_Text);
  4693. Agent_Play("RestPose");
  4694. var L_MouseTutCTellMeAboutThisScreen3_Text = "Notice that when you move the pointer over the button it changes its appearance!";
  4695. Agent_Speak(L_MouseTutCTellMeAboutThisScreen3_Text);
  4696. var L_MouseTutCTellMeAboutThisScreen4_Text = "The button returns to its original appearance when you move the pointer off its image.";
  4697. Agent_Speak(L_MouseTutCTellMeAboutThisScreen4_Text);
  4698. }
  4699. function Agent_OnMouseTutCTellMeHowToMoveToNextScreen() {
  4700. MouseTut_HowToMoveToNextScreen();
  4701. }
  4702. // --------------- mouse_d.htm Page Scripts ---------------- //
  4703. function Agent_MouseTutDAddCommands() {
  4704. var L_MouseTutDMenuCommand1_Text = "Tell me what to do &next";
  4705. var L_MouseTutDMenuCommand2_Text = "Tell me about this &screen";
  4706. var L_MouseTutDMenuCommand3_Text = "Tell me how to &move to the next screen";
  4707. // NOTE NOTE NOTE!!! The command name (i.e. the first parameter)
  4708. // MUST be equal to the name of the function that handles the
  4709. // command.
  4710. g_AgentCharacter.Commands.Add("Agent_OnMouseTutDTellMeWhatToDoNext", L_MouseTutDMenuCommand1_Text);
  4711. g_AgentCharacter.Commands.Add("Agent_OnMouseTutDTellMeAboutThisScreen", L_MouseTutDMenuCommand2_Text);
  4712. g_AgentCharacter.Commands.Add("Agent_OnMouseTutDTellMeHowToMoveToNextScreen", L_MouseTutDMenuCommand3_Text);
  4713. Agent_AddAssistantanceCommand();
  4714. }
  4715. function Agent_OnMouseTutDTellMeWhatToDoNext()
  4716. {
  4717. var L_MouseTutDWhatToDoNext1_Text = "Try clicking your mouse left button.";
  4718. Agent_Speak(L_MouseTutDWhatToDoNext1_Text);
  4719. }
  4720. function Agent_OnMouseTutDTellMeAboutThisScreen()
  4721. {
  4722. var L_MouseTutDTellMeAboutThisScreen1_Text = "This part of the mouse tutorial is about learning to click the mouse.";
  4723. Agent_Speak(L_MouseTutDTellMeAboutThisScreen1_Text);
  4724. var elem = g.document.all("image");
  4725. Agent_MoveToElement(elem, "LeftCenter");
  4726. var L_MouseTutDTellMeAboutThisScreen2_Text = "To select an item on the screen, use the mouse to move the pointer over the item,";
  4727. Agent_Speak(L_MouseTutDTellMeAboutThisScreen2_Text);
  4728. Agent_GestureAtElement(g.document.all("image"), "LeftCenter");
  4729. var L_MouseTutDTellMeAboutThisScreen3_Text = "Then press and release the mouse button like you see here.";
  4730. Agent_Speak(L_MouseTutDTellMeAboutThisScreen3_Text);
  4731. Agent_Play("RestPose");
  4732. var L_MouseTutDTellMeAboutThisScreen4_Text = "This is called clicking!";
  4733. Agent_Speak(L_MouseTutDTellMeAboutThisScreen4_Text);
  4734. }
  4735. function Agent_OnMouseTutDTellMeHowToMoveToNextScreen() {
  4736. MouseTut_HowToMoveToNextScreen();
  4737. }
  4738. // --------------- mouse_e.htm Page Scripts ---------------- //
  4739. function Agent_MouseTutEAddCommands() {
  4740. var L_MouseTutEMenuCommand1_Text = "Tell me what to do &next";
  4741. var L_MouseTutEMenuCommand2_Text = "Tell me about this &screen";
  4742. var L_MouseTutEMenuCommand3_Text = "Tell me how to &move to the next screen";
  4743. g_AgentCharacter.Commands.Add("Agent_OnMouseTutETellMeWhatToDoNext", L_MouseTutEMenuCommand1_Text);
  4744. g_AgentCharacter.Commands.Add("Agent_OnMouseTutETellMeAboutThisScreen", L_MouseTutEMenuCommand2_Text);
  4745. g_AgentCharacter.Commands.Add("Agent_OnMouseTutETellMeHowToMoveToNextScreen", L_MouseTutEMenuCommand3_Text);
  4746. Agent_AddAssistantanceCommand();
  4747. }
  4748. function Agent_OnMouseTutETellMeWhatToDoNext()
  4749. {
  4750. var L_MouseTutEWhatToDoNext1_Text = "Practice clicking your mouse left button on the graphic buttons on this screen.";
  4751. Agent_Speak(L_MouseTutEWhatToDoNext1_Text);
  4752. }
  4753. function Agent_OnMouseTutETellMeAboutThisScreen()
  4754. {
  4755. var L_MouseTutETellMeAboutThisScreen1_Text = "This screen enables you to practice clicking with your mouse.";
  4756. Agent_Speak(L_MouseTutETellMeAboutThisScreen1_Text);
  4757. Agent_GestureAtElement(g.document.all("toolbar"), "LeftCenter");
  4758. var L_MouseTutETellMeAboutThisScreen2_Text = "Use your mouse to point to one of these graphic buttons.";
  4759. Agent_Speak(L_MouseTutETellMeAboutThisScreen2_Text);
  4760. Agent_Play("RestPose");
  4761. var L_MouseTutETellMeAboutThisScreen3_Text = "And click the left mouse button.";
  4762. Agent_Speak(L_MouseTutETellMeAboutThisScreen3_Text);
  4763. var L_MouseTutETellMeAboutThisScreen4_Text = "Then try it with the other graphic buttons.";
  4764. Agent_Speak(L_MouseTutETellMeAboutThisScreen4_Text);
  4765. }
  4766. function Agent_OnMouseTutETellMeHowToMoveToNextScreen() {
  4767. MouseTut_HowToMoveToNextScreen();
  4768. }
  4769. function Agent_OnMouseTutEElementClick(elem) {
  4770. Agent_MoveToElement(elem, "TopCenterWidth", 0);
  4771. Agent_StartLookingAtElement(elem, "LookDown");
  4772. }
  4773. // --------------- mouse_f.htm Page Scripts ---------------- //
  4774. function Agent_MouseTutFAddCommands() {
  4775. var L_MouseTutFMenuCommand1_Text = "Tell me what to do &next";
  4776. var L_MouseTutFMenuCommand2_Text = "Tell me about this &screen";
  4777. var L_MouseTutFMenuCommand3_Text = "Tell me how to &move to the next screen";
  4778. g_AgentCharacter.Commands.Add("Agent_OnMouseTutFTellMeWhatToDoNext", L_MouseTutFMenuCommand1_Text);
  4779. g_AgentCharacter.Commands.Add("Agent_OnMouseTutFTellMeAboutThisScreen", L_MouseTutFMenuCommand2_Text);
  4780. g_AgentCharacter.Commands.Add("Agent_OnMouseTutFTellMeHowToMoveToNextScreen", L_MouseTutFMenuCommand3_Text);
  4781. Agent_AddAssistantanceCommand();
  4782. }
  4783. function Agent_OnMouseTutFTellMeWhatToDoNext() {
  4784. MouseTut_WhatToDoNext()
  4785. }
  4786. function Agent_OnMouseTutFTellMeAboutThisScreen()
  4787. {
  4788. var L_MouseTutFTellMeAboutThisScreen1_Text = "Great job!";
  4789. Agent_Speak(L_MouseTutFTellMeAboutThisScreen1_Text);
  4790. var L_MouseTutFTellMeAboutThisScreen2_Text = "So far you've learned how to point and click with your mouse.";
  4791. Agent_Speak(L_MouseTutFTellMeAboutThisScreen2_Text);
  4792. var L_MouseTutFTellMeAboutThisScreen3_Text = "Now you will practice these skills to interact with other elements you will find in Windows or on Web pages.";
  4793. Agent_Speak(L_MouseTutFTellMeAboutThisScreen3_Text);
  4794. var L_MouseTutFTellMeAboutThisScreen4_Text = "Click the Next button when you are ready to move on.";
  4795. Agent_Speak(L_MouseTutFTellMeAboutThisScreen4_Text);
  4796. }
  4797. function Agent_OnMouseTutFTellMeHowToMoveToNextScreen() {
  4798. MouseTut_HowToMoveToNextScreen();
  4799. }
  4800. // --------------- mouse_g.htm Page Scripts ---------------- //
  4801. function Agent_MouseTutGAddCommands() {
  4802. var L_MouseTutGMenuCommand1_Text = "Tell me what to do &next";
  4803. var L_MouseTutGMenuCommand2_Text = "Tell me about this &screen";
  4804. var L_MouseTutGMenuCommand3_Text = "Tell me how to &move to the next screen";
  4805. g_AgentCharacter.Commands.Add("Agent_OnMouseTutGTellMeWhatToDoNext", L_MouseTutGMenuCommand1_Text);
  4806. g_AgentCharacter.Commands.Add("Agent_OnMouseTutGTellMeAboutThisScreen", L_MouseTutGMenuCommand2_Text);
  4807. g_AgentCharacter.Commands.Add("Agent_OnMouseTutGTellMeHowToMoveToNextScreen", L_MouseTutGMenuCommand3_Text);
  4808. Agent_AddAssistantanceCommand();
  4809. }
  4810. function Agent_OnMouseTutGPreDisplayMenu() {
  4811. if (g.btnNext.disabled) {
  4812. var L_MouseTutGMenuCommand4_Text = "Tell me &why the Next button isn't available";
  4813. try {
  4814. g_AgentCharacter.Commands.Insert("Agent_OnMouseTutGWhyNextDisabled","Agent_OnMouseTutGTellMeHowToMoveToNextScreen",false,L_MouseTutGMenuCommand4_Text);
  4815. }
  4816. catch (e) {
  4817. }
  4818. }
  4819. else {
  4820. try {
  4821. g_AgentCharacter.Commands.Remove("Agent_OnMouseTutGWhyNextDisabled");
  4822. }
  4823. catch (e) {
  4824. }
  4825. }
  4826. }
  4827. function Agent_OnMouseTutGWhyNextDisabled()
  4828. {
  4829. var L_MouseTutGWhyNextNotAvailable1_Text = "The Next button is not available because you have not yet chosen a city.";
  4830. Agent_Speak(L_MouseTutGWhyNextNotAvailable1_Text);
  4831. Agent_GestureAtElement(g.document.all("selCity"),"LeftCenter");
  4832. var L_MouseTutGWhyNextNotAvailable2_Text = "You must first click one of these cities.";
  4833. Agent_Speak(L_MouseTutGWhyNextNotAvailable2_Text);
  4834. Agent_Play("RestPose");
  4835. if (window.parent.document.dir == "rtl")
  4836. {
  4837. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4838. }
  4839. else
  4840. {
  4841. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4842. }
  4843. var L_MouseTutGWhyNextNotAvailable3_Text = "Then you will be able to click the Next button to go on.";
  4844. Agent_Speak(L_MouseTutGWhyNextNotAvailable3_Text);
  4845. Agent_Play("RestPose");
  4846. }
  4847. function Agent_OnMouseTutGTellMeWhatToDoNext() {
  4848. if (g.document.dir == "rtl")
  4849. Agent_GestureAtElement(g.document.all("selCity"), "LeftCenter");
  4850. else
  4851. Agent_GestureAtElement(g.document.all("selCity"), "RightCenter");
  4852. var L_MouseTutGWhatToDoNext1_Text = "Click the up and down arrows to scroll through the list of cities.";
  4853. Agent_Speak(L_MouseTutGWhatToDoNext1_Text);
  4854. Agent_Play("RestPose");
  4855. if (g.document.dir == "rtl")
  4856. Agent_Play("RestPose");
  4857. else
  4858. Agent_GestureAtElement(g.document.all("selCity"), "LeftCenter");
  4859. var L_MouseTutGWhatToDoNext2_Text = "Then select a city by clicking its name.";
  4860. Agent_Speak(L_MouseTutGWhatToDoNext2_Text);
  4861. Agent_Play("RestPose");
  4862. var L_MouseTutGWhatToDoNext3_Text = "Then try clicking other cities in the list!";
  4863. Agent_Speak(L_MouseTutGWhatToDoNext3_Text);
  4864. Agent_MoveToElement(document.all("AssistImg"),"BottomCenterWidthExactBottom");
  4865. }
  4866. function Agent_OnMouseTutGTellMeAboutThisScreen() {
  4867. var L_MouseTutGTellMeAboutThisScreen1_Text = "On this screen you can practice clicking to select an item from a list.";
  4868. Agent_Speak(L_MouseTutGTellMeAboutThisScreen1_Text);
  4869. Agent_GestureAtElement(g.document.all("selCity"), "LeftCenter");
  4870. var L_MouseTutGTellMeAboutThisScreen2_Text = "When you click a city from this list,";
  4871. Agent_Speak(L_MouseTutGTellMeAboutThisScreen2_Text);
  4872. Agent_Play("RestPose");
  4873. if (g.document.dir == "rtl")
  4874. Agent_GestureAtElement(g.document.all("imgTable"), "LeftCenter");
  4875. else
  4876. Agent_GestureAtElement(g.document.all("imgTable"), "RightCenter");
  4877. var L_MouseTutGTellMeAboutThisScreen3_Text = "Its picture will appear here.";
  4878. Agent_Speak(L_MouseTutGTellMeAboutThisScreen3_Text);
  4879. Agent_Play("RestPose");
  4880. }
  4881. function Agent_OnMouseTutGTellMeHowToMoveToNextScreen() {
  4882. if (g.btnNext.disabled) {
  4883. Agent_GestureAtElement(g.document.all("selCity"), "LeftCenter");
  4884. var L_MouseTutGHowToMoveToNextScreen1_Text = "You need to click a city here,";
  4885. Agent_Speak(L_MouseTutGHowToMoveToNextScreen1_Text);
  4886. Agent_Play("RestPose");
  4887. if (window.parent.document.dir == "rtl")
  4888. {
  4889. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  4890. }
  4891. else
  4892. {
  4893. Agent_GestureAtElement(g.btnNext, "TopLeft");
  4894. }
  4895. var L_MouseTutGHowToMoveToNextScreen2_Text = "Then click the Next button.";
  4896. Agent_Speak(L_MouseTutGHowToMoveToNextScreen2_Text);
  4897. Agent_Play("RestPose");
  4898. }
  4899. else
  4900. MouseTut_HowToMoveToNextScreen();
  4901. }
  4902. // --------------- mouse_h.htm Page Scripts ---------------- //
  4903. function Agent_MouseTutHAddCommands() {
  4904. var L_MouseTutHMenuCommand1_Text = "Tell me what to do &next";
  4905. var L_MouseTutHMenuCommand2_Text = "Tell me about this &screen";
  4906. var L_MouseTutHMenuCommand3_Text = "Tell me how to &move to the next screen";
  4907. g_AgentCharacter.Commands.Add("Agent_OnMouseTutHTellMeWhatToDoNext", L_MouseTutHMenuCommand1_Text);
  4908. g_AgentCharacter.Commands.Add("Agent_OnMouseTutHTellMeAboutThisScreen", L_MouseTutHMenuCommand2_Text);
  4909. g_AgentCharacter.Commands.Add("Agent_OnMouseTutHTellMeHowToMoveToNextScreen", L_MouseTutHMenuCommand3_Text);
  4910. Agent_AddAssistantanceCommand();
  4911. }
  4912. function Agent_OnMouseTutHTellMeWhatToDoNext() {
  4913. Agent_GestureAtElement(g.document.all("bwsel"), "Left");
  4914. var L_MouseTutHWhatToDoNext1_Text = "Select one of the options by clicking the circle next to it.";
  4915. Agent_Speak(L_MouseTutHWhatToDoNext1_Text);
  4916. Agent_Play("RestPose");
  4917. var L_MouseTutHWhatToDoNext2_Text = "This will change how the picture appears.";
  4918. Agent_Speak(L_MouseTutHWhatToDoNext2_Text);
  4919. var L_MouseTutHWhatToDoNext3_Text = "Then try clicking the other option!";
  4920. Agent_Speak(L_MouseTutHWhatToDoNext3_Text);
  4921. Agent_MoveToElement(document.all("AssistImg"), "BottomCenterWidthExactBottom");
  4922. Agent_Play("RestPose");
  4923. }
  4924. function Agent_OnMouseTutHTellMeAboutThisScreen() {
  4925. 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.";
  4926. Agent_Speak(L_MouseTutHTellMeAboutThisScreen1_Text);
  4927. Agent_GestureAtElement(g.document.all("bwsel"), "Left");
  4928. var L_MouseTutHTellMeAboutThisScreen2_Text = "When you click the circles here,";
  4929. Agent_Speak(L_MouseTutHTellMeAboutThisScreen2_Text);
  4930. Agent_Play("RestPose");
  4931. if (g.document.dir == "rtl")
  4932. Agent_GestureAtElement(g.document.all("cityImg"), "LeftCenter");
  4933. else
  4934. Agent_GestureAtElement(g.document.all("cityImg"), "RightCenter");
  4935. var L_MouseTutHTellMeAboutThisScreen3_Text = "It changes the way the picture here appears.";
  4936. Agent_Speak(L_MouseTutHTellMeAboutThisScreen3_Text);
  4937. Agent_Play("RestPose");
  4938. Agent_MoveToElement(document.all("AssistImg"), "BottomCenterWidthExactBottom");
  4939. Agent_Play("RestPose");
  4940. }
  4941. function Agent_OnMouseTutHTellMeHowToMoveToNextScreen() {
  4942. MouseTut_HowToMoveToNextScreen();
  4943. }
  4944. // --------------- mouse_i.htm Page Scripts ---------------- //
  4945. function Agent_MouseTutIAddCommands() {
  4946. var L_MouseTutIMenuCommand1_Text = "Tell me what to do &next";
  4947. var L_MouseTutIMenuCommand2_Text = "Tell me about this &screen";
  4948. var L_MouseTutIMenuCommand3_Text = "Tell me how to &move to the next screen";
  4949. g_AgentCharacter.Commands.Add("Agent_OnMouseTutITellMeWhatToDoNext", L_MouseTutIMenuCommand1_Text);
  4950. g_AgentCharacter.Commands.Add("Agent_OnMouseTutITellMeAboutThisScreen", L_MouseTutIMenuCommand2_Text);
  4951. g_AgentCharacter.Commands.Add("Agent_OnMouseTutITellMeHowToMoveToNextScreen", L_MouseTutIMenuCommand3_Text);
  4952. Agent_AddAssistantanceCommand();
  4953. }
  4954. function Agent_OnMouseTutITellMeWhatToDoNext() {
  4955. Agent_GestureAtElement(g.document.all("mattesel"), "Left");
  4956. var L_MouseTutIWhatToDoNext1_Text = "Click one or more of the options here and see the effect on the picture.";
  4957. Agent_Speak(L_MouseTutIWhatToDoNext1_Text);
  4958. Agent_Play("RestPose");
  4959. var L_MouseTutIWhatToDoNext2_Text = "Click an option again to clear the option.";
  4960. Agent_Speak(L_MouseTutIWhatToDoNext2_Text);
  4961. Agent_MoveToElement(document.all("AssistImg"), "BottomCenterWidthExactBottom");
  4962. Agent_Play("RestPose");
  4963. }
  4964. function Agent_OnMouseTutITellMeAboutThisScreen() {
  4965. var L_MouseTutITellMeAboutThisScreen1_Text = "Sometimes you can select multiple options in a set of choices.";
  4966. Agent_Speak(L_MouseTutITellMeAboutThisScreen1_Text);
  4967. var L_MouseTutITellMeAboutThisScreen2_Text = "On this screen you can choose different display styles for your picture.";
  4968. Agent_Speak(L_MouseTutITellMeAboutThisScreen2_Text);
  4969. Agent_GestureAtElement(g.document.all("mattesel"), "Left");
  4970. var L_MouseTutITellMeAboutThisScreen3_Text = "Just click the boxes next to the options here.";
  4971. Agent_Speak(L_MouseTutITellMeAboutThisScreen3_Text);
  4972. Agent_Play("RestPose");
  4973. Agent_MoveToElement(document.all("AssistImg"), "BottomCenterWidthExactBottom");
  4974. Agent_Play("RestPose");
  4975. }
  4976. function Agent_OnMouseTutITellMeHowToMoveToNextScreen() {
  4977. MouseTut_HowToMoveToNextScreen();
  4978. }
  4979. // --------------- mouse_j.htm Page Scripts ---------------- //
  4980. function Agent_MouseTutJAddCommands() {
  4981. var L_MouseTutJMenuCommand1_Text = "Tell me what to do &next";
  4982. var L_MouseTutJMenuCommand2_Text = "Tell me about this &screen";
  4983. var L_MouseTutJMenuCommand3_Text = "Tell me how to &move to the next screen";
  4984. g_AgentCharacter.Commands.Add("Agent_OnMouseTutJTellMeWhatToDoNext", L_MouseTutJMenuCommand1_Text);
  4985. g_AgentCharacter.Commands.Add("Agent_OnMouseTutJTellMeAboutThisScreen", L_MouseTutJMenuCommand2_Text);
  4986. g_AgentCharacter.Commands.Add("Agent_OnMouseTutJTellMeHowToMoveToNextScreen", L_MouseTutJMenuCommand3_Text);
  4987. Agent_AddAssistantanceCommand();
  4988. }
  4989. function Agent_OnMouseTutJTellMeWhatToDoNext() {
  4990. if (g.document.dir == "rtl")
  4991. Agent_GestureAtElement(g.document.all("caption"), "Left");
  4992. else
  4993. Agent_GestureAtElement(g.document.all("CaptionLabel"), "Left");
  4994. var L_MouseTutJWhatToDoNext1_Text = "Click the box here,";
  4995. Agent_Speak(L_MouseTutJWhatToDoNext1_Text);
  4996. Agent_Play("RestPose");
  4997. var L_MouseTutJWhatToDoNext2_Text = "And then type the text you want to appear as your caption.";
  4998. Agent_Speak(L_MouseTutJWhatToDoNext2_Text);
  4999. }
  5000. function Agent_OnMouseTutJTellMeAboutThisScreen() {
  5001. var L_MouseTutJTellMeAboutThisScreen1_Text = "Sometimes you can personalize a choice with your own words.";
  5002. Agent_Speak(L_MouseTutJTellMeAboutThisScreen1_Text);
  5003. var L_MouseTutJTellMeAboutThisScreen2_Text = "On this screen you can type in a caption for your picture.";
  5004. Agent_Speak(L_MouseTutJTellMeAboutThisScreen2_Text);
  5005. if (g.document.dir == "rtl")
  5006. Agent_GestureAtElement(g.document.all("caption"), "Left");
  5007. else
  5008. Agent_GestureAtElement(g.document.all("CaptionLabel"), "Left");
  5009. var L_MouseTutJTellMeAboutThisScreen3_Text = "Just click the box here and type in your caption.";
  5010. Agent_Speak(L_MouseTutJTellMeAboutThisScreen3_Text);
  5011. Agent_Play("RestPose");
  5012. }
  5013. function Agent_OnMouseTutJTellMeHowToMoveToNextScreen() {
  5014. MouseTut_HowToMoveToNextScreen();
  5015. }
  5016. // --------------- mouse_k.htm Page Scripts ---------------- //
  5017. function Agent_MouseTutKAddCommands() {
  5018. var L_MouseTutKMenuCommand1_Text = "Tell me what to do &next";
  5019. var L_MouseTutKMenuCommand2_Text = "Tell me about this &screen";
  5020. var L_MouseTutKMenuCommand3_Text = "Tell me how to &move to the next screen";
  5021. g_AgentCharacter.Commands.Add("Agent_OnMouseTutKTellMeWhatToDoNext", L_MouseTutKMenuCommand1_Text);
  5022. g_AgentCharacter.Commands.Add("Agent_OnMouseTutKTellMeAboutThisScreen", L_MouseTutKMenuCommand2_Text);
  5023. g_AgentCharacter.Commands.Add("Agent_OnMouseTutKTellMeHowToMoveToNextScreen", L_MouseTutKMenuCommand3_Text);
  5024. Agent_AddAssistantanceCommand();
  5025. }
  5026. function Agent_OnMouseTutKTellMeWhatToDoNext() {
  5027. var L_MouseTutKWhatToDoNext1_Text = "Congratulations! You have completed this mouse tutorial!";
  5028. Agent_Speak(L_MouseTutKWhatToDoNext1_Text);
  5029. var L_MouseTutKWhatToDoNext2_Text = "Click the Next button to go on to the next screen.";
  5030. Agent_Speak(L_MouseTutKWhatToDoNext2_Text);
  5031. }
  5032. function Agent_OnMouseTutKTellMeAboutThisScreen() {
  5033. var L_MouseTutKTellMeAboutThisScreen1_Text = "Good job! Your vacation picture is finished!";
  5034. Agent_Speak(L_MouseTutKTellMeAboutThisScreen1_Text);
  5035. var L_MouseTutKTellMeAboutThisScreen2_Text = "You have completed the mouse tutorial.";
  5036. Agent_Speak(L_MouseTutKTellMeAboutThisScreen2_Text);
  5037. 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.";
  5038. Agent_Speak(L_MouseTutKTellMeAboutThisScreen3_Text);
  5039. Agent_Play("RestPose");
  5040. }
  5041. function Agent_OnMouseTutKTellMeHowToMoveToNextScreen() {
  5042. MouseTut_HowToMoveToNextScreen();
  5043. }
  5044. //------------- general mouse tutorial functions --------------- //
  5045. function MouseTut_WhatToDoNext()
  5046. {
  5047. var L_MouseTutTellMeWhatToDoNext1_Text = "Just click the Next button to proceed to the next screen,";
  5048. Agent_Speak(L_MouseTutTellMeWhatToDoNext1_Text);
  5049. var L_MouseTutTellMeWhatToDoNext2_Text = "Or click the Skip button to skip the rest of this tutorial.";
  5050. Agent_Speak(L_MouseTutTellMeWhatToDoNext2_Text);
  5051. }
  5052. function MouseTut_HowToMoveToNextScreen()
  5053. {
  5054. if (window.parent.document.dir == "rtl")
  5055. {
  5056. Agent_GestureAtElement(g.btnNext, "TopCenterWidth");
  5057. }
  5058. else
  5059. {
  5060. Agent_GestureAtElement(g.btnNext, "TopLeft");
  5061. }
  5062. var L_MouseTutTellMeHowToMoveToNextScreen1_Text = "Click Next to move to the next screen,";
  5063. Agent_Speak(L_MouseTutTellMeHowToMoveToNextScreen1_Text);
  5064. Agent_Play("RestPose");
  5065. if (window.parent.document.dir == "rtl")
  5066. {
  5067. Agent_GestureAtElement(g.btnSkip, "TopCenterWidth");
  5068. }
  5069. else
  5070. {
  5071. Agent_GestureAtElement(g.btnSkip, "TopLeft");
  5072. }
  5073. var L_MouseTutTellMeHowToMoveToNextScreen2_Text = "Or click Skip to skip this tutorial.";
  5074. Agent_Speak(L_MouseTutTellMeHowToMoveToNextScreen2_Text);
  5075. Agent_Play("RestPose");
  5076. }
  5077. // ************************* Home Network Prompt Page (hnwprmpt.htm) Scripts ************************* //
  5078. function Agent_2nicsAddCommands()
  5079. {
  5080. var L_2nicsMenuCommand1_Text = "&Tell me about this step";
  5081. g_AgentCharacter.Commands.Add("Agent_On2nicsAboutThisStep", L_2nicsMenuCommand1_Text);
  5082. Agent_AddWhatToDoNextCommand();
  5083. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  5084. {
  5085. Agent_AddAssistantanceCommand();
  5086. }
  5087. }
  5088. function Agent_On2nicsAboutThisStep()
  5089. {
  5090. var L_2nicsAboutThisScreen1_Text = "This screen explains that there is more than one possible way for your computer to connect to the Internet.";
  5091. Agent_Speak(L_2nicsAboutThisScreen1_Text);
  5092. var L_2nicsAboutThisScreen2_Text = "You can choose which connection you want to use after you finish setting up Windows.";
  5093. Agent_Speak(L_2nicsAboutThisScreen2_Text);
  5094. }
  5095. // ************************* UserName Page (username.htm) Scripts ************************* //
  5096. function Agent_UserNameAddCommands()
  5097. {
  5098. var L_UserNameCommand1_Text = "&Tell me about this step";
  5099. var L_UserNameCommand2_Text = "Wh&ere does my name appear?";
  5100. var L_UserNameCommand3_Text = "H&ow can I change my name later?";
  5101. var L_UserNameCommand4_Text = "&What should I do next?";
  5102. g_AgentCharacter.Commands.Add("Agent_OnUserNameAboutThisStep", L_UserNameCommand1_Text);
  5103. g_AgentCharacter.Commands.Add("Agent_OnUserNameWhereIsName", L_UserNameCommand2_Text);
  5104. g_AgentCharacter.Commands.Add("Agent_OnUserNameHowToChangeName", L_UserNameCommand3_Text);
  5105. g_AgentCharacter.Commands.Add("Agent_OnUserNameWhatToDoNext", L_UserNameCommand4_Text);
  5106. if (!window.external.get_RetailOOBE()) //Check to see if product is OEM
  5107. {
  5108. Agent_AddAssistantanceCommand();
  5109. }
  5110. }
  5111. function Agent_OnUserNameAboutThisStep()
  5112. {
  5113. 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.";
  5114. Agent_Speak(L_UserNameAboutThisStep1_Text);
  5115. }
  5116. function Agent_OnUserNameWhereIsName()
  5117. {
  5118. var L_UserNameWhereIsName1_Text = "Your first name will appear on the Welcome screen, which appears when you start Windows.";
  5119. Agent_Speak(L_UserNameWhereIsName1_Text);
  5120. var L_UserNameWhereIsName2_Text = "It will also at the top of the Start menu when you're logged on.";
  5121. Agent_Speak(L_UserNameWhereIsName2_Text);
  5122. 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.";
  5123. Agent_Speak(L_UserNameWhereIsName3_Text);
  5124. var L_UserNameWhereIsName4_Text = "For example, the folder will appear as \"David's Documents\" so that other users know this folder belongs to you.";
  5125. Agent_Speak(L_UserNameWhereIsName4_Text);
  5126. 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.";
  5127. Agent_Speak(L_UserNameWhereIsName5_Text);
  5128. }
  5129. function Agent_OnUserNameHowToChangeName()
  5130. {
  5131. var L_UserNameHowToChangeName1_Text = "To change your name once you're logged on to Windows, click Control Panel on the Start menu.";
  5132. Agent_Speak(L_UserNameHowToChangeName1_Text);
  5133. var L_UserNameHowToChangeName2_Text = "Then click User Accounts.";
  5134. Agent_Speak(L_UserNameHowToChangeName2_Text);
  5135. var L_UserNameHowToChangeName3_Text = "You'll be able to change your name as well as the names of other users of this computer.";
  5136. Agent_Speak(L_UserNameHowToChangeName3_Text);
  5137. }
  5138. function Agent_OnUserNameWhatToDoNext()
  5139. {
  5140. var L_UserNameWhatToDoNext1_Text = "Click the Next button to try reconnecting to the Internet.";
  5141. Agent_Speak(L_UserNameWhatToDoNext1_Text);
  5142. var L_UserNameWhatToDoNext2_Text = "Or click Skip to continue without connecting to the Internet.";
  5143. Agent_Speak(L_UserNameWhatToDoNext2_Text);
  5144. }